Sami Kalliomäki | 05b552f | 2018-07-05 17:06:51 +0200 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2018 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | package org.webrtc; |
| 12 | |
| 13 | /** |
| 14 | * Interface for observering a capturer. Passed to {@link VideoCapturer#initialize}. Provided by |
| 15 | * {@link VideoSource#getCapturerObserver}. |
| 16 | * |
| 17 | * All callbacks must be executed on a single thread. |
| 18 | * |
| 19 | * @note This will replace the deprecated VideoCapturer.CapturerObserver interface. |
| 20 | */ |
| 21 | public interface CapturerObserver extends VideoCapturer.CapturerObserver { |
| 22 | /** Notify if the capturer have been started successfully or not. */ |
| 23 | @Override void onCapturerStarted(boolean success); |
| 24 | /** Notify that the capturer has been stopped. */ |
| 25 | @Override void onCapturerStopped(); |
| 26 | |
| 27 | /** Delivers a captured frame. */ |
| 28 | @Override void onFrameCaptured(VideoFrame frame); |
| 29 | } |