Deprecate PeerConnectionFactory#createVideoSource(VideoCapturer).

This is done in preparation of moving VideoCapturer out of
video_api_java. Clients should update to using
createVideoSource(boolean).

CapturerObserver is moved to a separate file because it needs to stay
in video_api_java to allow VideoSource to depend on it.

Bug: webrtc:9496
Change-Id: I3c93f6bc4df553919dcbe05b00ef4c68f2c9ab60
Reviewed-on: https://webrtc-review.googlesource.com/87305
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23868}
This commit is contained in:
Sami Kalliomäki
2018-07-05 17:06:51 +02:00
committed by Commit Bot
parent 80e7a7fd1a
commit 05b552f76a
7 changed files with 50 additions and 7 deletions

View File

@ -357,6 +357,7 @@ public class PeerConnectionFactory {
return new VideoSource(nativeCreateVideoSource(nativeFactory, isScreencast));
}
@Deprecated
public VideoSource createVideoSource(VideoCapturer capturer) {
final EglBase.Context eglContext =
localEglbase == null ? null : localEglbase.getEglBaseContext();