Package de.fu_berlin.inf.dpp.videosharing.VideoSharing

Examples of de.fu_berlin.inf.dpp.videosharing.VideoSharing.VideoSharingSession


        Utils.runSafeSWTAsync(log, new Runnable() {
            public void run() {
                List<User> participants = SelectionRetrieverFactory
                    .getSelectionRetriever(User.class).getSelection();
                if (participants.size() == 1) {
                    VideoSharingSession videoSharingSession = sessionObservable
                        .getValue();
                    if (videoSharing.ready()) {
                        try {
                            setEnabled(false);
                            videoSharing.startSharing(participants.get(0));
                        } catch (final SarosCancellationException e) {
                            Utils.popUpFailureMessage(
                                Messages.VideoSharingAction_error_could_not_establish_screensharing_text,
                                e.getMessage(), false);
                            log.error("Could not establish screensharing: ", e); //$NON-NLS-1$
                        }
                    } else {
                        switch (videoSharingSession.getMode()) {
                        case LOCAL:
                        case HOST: // $FALL-THROUGH$
                            break;
                        case CLIENT:
                            videoSharingSession.requestStop();
                            break;
                        }
                        videoSharingSession.dispose();
                    }
                    updateEnablement();
                } else {
                    log.warn("More than one participant selected."); //$NON-NLS-1$
                }
View Full Code Here


        bitrate.setText(""); //$NON-NLS-1$
        delay.setText(""); //$NON-NLS-1$
    }

    protected void updateStatusbar() {
        VideoSharingSession session = videoSharingSessionObservable.getValue();
        if (session == null)
            return;

        Decoder decoder = session.getDecoder();
        if (decoder == null)
            return;

        DecodingStatisticPacket statistic = decoder.getLastDecodingStatistic();
        if (statistic == null || statistic == lastShownStatus)
View Full Code Here

        @Override
        public void run() {
            Utils.runSafeAsync(log, new Runnable() {
                public void run() {
                    VideoSharingSession session = VideoPlayerView.this.videoSharingSessionObservable
                        .getValue();
                    if (session != null) {
                        session.requestChangeImageSourceMode();
                    }
                }
            });
        }
View Full Code Here

        @Override
        public void run() {
            Utils.runSafeAsync(log, new Runnable() {
                public void run() {
                    VideoSharingSession session = VideoPlayerView.this.videoSharingSessionObservable
                        .getValue();
                    if (session != null) {
                        session.requestStop();
                        setEnabled(false);
                    }
                }
            });
        }
View Full Code Here

        @Override
        public void run() {
            Utils.runSafeAsync(log, new Runnable() {
                public void run() {
                    VideoSharingSession session = VideoPlayerView.this.videoSharingSessionObservable
                        .getValue();
                    if (session != null) {
                        session.pause();
                        updateState();
                    }
                }
            });
        }
View Full Code Here

                }
            });
        }

        protected void updateState() {
            VideoSharingSession session = videoSharingSessionObservable
                .getValue();
            boolean enabled = session != null
                && (session.getMode().equals(Mode.CLIENT) || session.getMode()
                    .equals(Mode.LOCAL));
            setEnabled(enabled);
            if (enabled && session != null) {
                if (session.isPaused()) {
                    setImageDescriptor(ImageManager
                        .getImageDescriptor("icons/elcl16/resumevideo.gif")); //$NON-NLS-1$
                    setToolTipText(Messages.VideoPlayerView_resume);
                } else {
                    setImageDescriptor(ImageManager
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.videosharing.VideoSharing.VideoSharingSession

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.