Removing old channel code from a few more places.
Plus adding peer connection close event. R=jiayl@webrtc.org Review URL: https://webrtc-codereview.appspot.com/37509004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7982 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -246,6 +246,8 @@ public class PeerConnectionClient {
|
||||
factory.dispose();
|
||||
factory = null;
|
||||
}
|
||||
Log.d(TAG, "Closing peer connection done.");
|
||||
events.onPeerConnectionClosed();
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -276,10 +278,16 @@ public class PeerConnectionClient {
|
||||
*/
|
||||
public void onIceDisconnected();
|
||||
|
||||
/**
|
||||
* Callback fired once peer connection is closed.
|
||||
*/
|
||||
public void onPeerConnectionClosed();
|
||||
|
||||
/**
|
||||
* Callback fired once peer connection error happened.
|
||||
*/
|
||||
public void onPeerConnectionError(String description);
|
||||
|
||||
}
|
||||
|
||||
private void reportError(final String errorMessage) {
|
||||
|
||||
Reference in New Issue
Block a user