Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: talk/examples/android/src/org/appspot/apprtc/AppRTCClient.java

Issue 1235563006: Move talk/examples/* to webrtc/examples. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 201508051337 Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: talk/examples/android/src/org/appspot/apprtc/AppRTCClient.java
diff --git a/talk/examples/android/src/org/appspot/apprtc/AppRTCClient.java b/talk/examples/android/src/org/appspot/apprtc/AppRTCClient.java
deleted file mode 100644
index 30451bf867d63b33befe7acc2590f00bfb2287b4..0000000000000000000000000000000000000000
--- a/talk/examples/android/src/org/appspot/apprtc/AppRTCClient.java
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
- * libjingle
- * Copyright 2013 Google Inc.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * 3. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
- * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
- * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.appspot.apprtc;
-
-import org.webrtc.IceCandidate;
-import org.webrtc.PeerConnection;
-import org.webrtc.SessionDescription;
-
-import java.util.List;
-
-/**
- * AppRTCClient is the interface representing an AppRTC client.
- */
-public interface AppRTCClient {
-
- /**
- * Struct holding the connection parameters of an AppRTC room.
- */
- public static class RoomConnectionParameters {
- public final String roomUrl;
- public final String roomId;
- public final boolean loopback;
- public RoomConnectionParameters(
- String roomUrl, String roomId, boolean loopback) {
- this.roomUrl = roomUrl;
- this.roomId = roomId;
- this.loopback = loopback;
- }
- }
-
- /**
- * Asynchronously connect to an AppRTC room URL using supplied connection
- * parameters. Once connection is established onConnectedToRoom()
- * callback with room parameters is invoked.
- */
- public void connectToRoom(RoomConnectionParameters connectionParameters);
-
- /**
- * Send offer SDP to the other participant.
- */
- public void sendOfferSdp(final SessionDescription sdp);
-
- /**
- * Send answer SDP to the other participant.
- */
- public void sendAnswerSdp(final SessionDescription sdp);
-
- /**
- * Send Ice candidate to the other participant.
- */
- public void sendLocalIceCandidate(final IceCandidate candidate);
-
- /**
- * Disconnect from room.
- */
- public void disconnectFromRoom();
-
- /**
- * Struct holding the signaling parameters of an AppRTC room.
- */
- public static class SignalingParameters {
- public final List<PeerConnection.IceServer> iceServers;
- public final boolean initiator;
- public final String clientId;
- public final String wssUrl;
- public final String wssPostUrl;
- public final SessionDescription offerSdp;
- public final List<IceCandidate> iceCandidates;
-
- public SignalingParameters(
- List<PeerConnection.IceServer> iceServers,
- boolean initiator, String clientId,
- String wssUrl, String wssPostUrl,
- SessionDescription offerSdp, List<IceCandidate> iceCandidates) {
- this.iceServers = iceServers;
- this.initiator = initiator;
- this.clientId = clientId;
- this.wssUrl = wssUrl;
- this.wssPostUrl = wssPostUrl;
- this.offerSdp = offerSdp;
- this.iceCandidates = iceCandidates;
- }
- }
-
- /**
- * Callback interface for messages delivered on signaling channel.
- *
- * <p>Methods are guaranteed to be invoked on the UI thread of |activity|.
- */
- public static interface SignalingEvents {
- /**
- * Callback fired once the room's signaling parameters
- * SignalingParameters are extracted.
- */
- public void onConnectedToRoom(final SignalingParameters params);
-
- /**
- * Callback fired once remote SDP is received.
- */
- public void onRemoteDescription(final SessionDescription sdp);
-
- /**
- * Callback fired once remote Ice candidate is received.
- */
- public void onRemoteIceCandidate(final IceCandidate candidate);
-
- /**
- * Callback fired once channel is closed.
- */
- public void onChannelClose();
-
- /**
- * Callback fired once channel error happened.
- */
- public void onChannelError(final String description);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698