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

@ -15,15 +15,13 @@ package org.webrtc;
* {@link VideoSource#getCapturerObserver}.
*
* All callbacks must be executed on a single thread.
*
* @note This will replace the deprecated VideoCapturer.CapturerObserver interface.
*/
public interface CapturerObserver extends VideoCapturer.CapturerObserver {
public interface CapturerObserver {
/** Notify if the capturer have been started successfully or not. */
@Override void onCapturerStarted(boolean success);
void onCapturerStarted(boolean success);
/** Notify that the capturer has been stopped. */
@Override void onCapturerStopped();
void onCapturerStopped();
/** Delivers a captured frame. */
@Override void onFrameCaptured(VideoFrame frame);
void onFrameCaptured(VideoFrame frame);
}