Package de.fu_berlin.inf.dpp.videosharing.net

Examples of de.fu_berlin.inf.dpp.videosharing.net.ConnectionFactory


        requestingSession = true;
        try {
            if (videoSharingSessionObservable.getValue() != null) {
                return;
            }
            ConnectionFactory connectionFactory = null;
            StreamSession streamSession = null;

            try {
                if (to.isLocal()) {
                    connectionFactory = new ConnectionFactory();
                    videoSharingSessionObservable
                        .setValue(new VideoSharingSession(connectionFactory, to));
                    return;
                }
                try {
                    streamSession = streamServiceManager.createSession(
                        videoSharingService, to, VideoSharingInit.create(this),
                        null);
                    connectionFactory = new ConnectionFactory(streamSession,
                        Mode.HOST);
                    videoSharingSessionObservable
                        .setValue(new VideoSharingSession(streamSession,
                            connectionFactory, to));
                } catch (InterruptedException e) {
View Full Code Here


     *
     * @param streamSession
     *            established session
     */
    protected synchronized void startSharing(StreamSession streamSession) {
        ConnectionFactory connectionFactory = null;
        try {
            connectionFactory = new ConnectionFactory(streamSession,
                Mode.CLIENT);
            videoSharingSessionObservable.setValue(new VideoSharingSession(
                streamSession, connectionFactory, sarosSessionObservable
                    .getValue().getUser(streamSession.getRemoteJID())));
        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.videosharing.net.ConnectionFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.