Prepare for removal of PeerConnectionObserver::OnError.
Prepare for removal of constraints to PeerConnection::AddStream. OnError has never been implemented and has been removed from the spec. Also, constraints to PeerConnection::AddStream has also been removed from the spec and have never been implemented. R=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/23319004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7605 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -110,7 +110,7 @@ public class PeerConnectionClient {
|
||||
if (videoConstraints != null) {
|
||||
videoMediaStream = factory.createLocalMediaStream("ARDAMSVideo");
|
||||
videoMediaStream.addTrack(createVideoTrack(useFrontFacingCamera));
|
||||
pc.addStream(videoMediaStream, new MediaConstraints());
|
||||
pc.addStream(videoMediaStream);
|
||||
}
|
||||
|
||||
if (appRtcParameters.audioConstraints != null) {
|
||||
@@ -118,7 +118,7 @@ public class PeerConnectionClient {
|
||||
lMS.addTrack(factory.createAudioTrack(
|
||||
"ARDAMSa0",
|
||||
factory.createAudioSource(appRtcParameters.audioConstraints)));
|
||||
pc.addStream(lMS, new MediaConstraints());
|
||||
pc.addStream(lMS);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -409,7 +409,7 @@ public class PeerConnectionClient {
|
||||
useFrontFacingCamera = !useFrontFacingCamera;
|
||||
VideoTrack newTrack = createVideoTrack(useFrontFacingCamera);
|
||||
videoMediaStream.addTrack(newTrack);
|
||||
pc.addStream(videoMediaStream, new MediaConstraints());
|
||||
pc.addStream(videoMediaStream);
|
||||
|
||||
SessionDescription remoteDesc = pc.getRemoteDescription();
|
||||
if (localSdp == null || remoteDesc == null) {
|
||||
@@ -440,11 +440,6 @@ public class PeerConnectionClient {
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError() {
|
||||
reportError("PeerConnection error!");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSignalingChange(
|
||||
PeerConnection.SignalingState newState) {
|
||||
|
||||
Reference in New Issue
Block a user