Examples of SessionErrorVideoActivity


Examples of de.fu_berlin.inf.dpp.videosharing.activities.SessionErrorVideoActivity

                    public void run() {
                        try {
                            Object errorRaw = connectionFactory
                                .getClientErrorIn().readObject();
                            if (errorRaw instanceof SessionErrorVideoActivity) {
                                SessionErrorVideoActivity error = (SessionErrorVideoActivity) errorRaw;
                                if (!(error.getException() instanceof IOException))
                                    // IOE are just confusing
                                    VideoSharing.reportErrorToUser(
                                        error.getException(),
                                        "Screensharing: Inviter got an exception");
                            }
                        } catch (IOException e) {
                            // ignore
                        } catch (ClassNotFoundException e) {
View Full Code Here

Examples of de.fu_berlin.inf.dpp.videosharing.activities.SessionErrorVideoActivity

                VideoSharing.reportErrorToUser(e,
                    "Screensharing: An error occured");

            // inform the other user
            try {
                SessionErrorVideoActivity sessionError = new SessionErrorVideoActivity(
                    e);
                if (mode.equals(Mode.HOST) || mode.equals(Mode.LOCAL)) {

                    connectionFactory.getHostErrorOut().writeObject(
                        sessionError);
View Full Code Here

Examples of de.fu_berlin.inf.dpp.videosharing.activities.SessionErrorVideoActivity

                        case SESSION_PAUSE:
                            videoSharingSession.pause();
                            break;
                        case SESSION_ERROR:
                            if (activity instanceof SessionErrorVideoActivity) {
                                SessionErrorVideoActivity error = (SessionErrorVideoActivity) activity;
                                VideoSharing.reportErrorToUser(
                                    error.getException(),
                                    "Screensharing: Buddy had an exception");
                                videoSharingSession.dispose();
                                return;
                            }
                            break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.