Move VideoCapturer to video_api and cleanup.

This should only be landed after clients have been given time to
upgrade to the new interface.

Bug: webrtc:9496, webrtc:9181
Change-Id: Ideb37637d9f0b9a3a9748811879c263c64f81d11
Reviewed-on: https://webrtc-review.googlesource.com/87308
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Reviewed-by: Paulina Hensman <phensman@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24080}
This commit is contained in:
Sami Kalliomäki
2018-07-24 10:53:28 +02:00
committed by Commit Bot
parent 213618e37e
commit 903bd4145f
7 changed files with 25 additions and 88 deletions

View File

@ -399,17 +399,6 @@ public class PeerConnectionFactory {
return new VideoSource(nativeCreateVideoSource(nativeFactory, isScreencast));
}
@Deprecated
public VideoSource createVideoSource(VideoCapturer capturer) {
final SurfaceTextureHelper surfaceTextureHelper = SurfaceTextureHelper.create(
VIDEO_CAPTURER_THREAD_NAME, MediaCodecVideoEncoder.getEglContext());
final VideoSource videoSource = new VideoSource(
nativeCreateVideoSource(nativeFactory, capturer.isScreencast()), surfaceTextureHelper);
capturer.initialize(surfaceTextureHelper, ContextUtils.getApplicationContext(),
videoSource.getCapturerObserver());
return videoSource;
}
public VideoTrack createVideoTrack(String id, VideoSource source) {
return new VideoTrack(nativeCreateVideoTrack(nativeFactory, id, source.nativeSource));
}