• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 public interface CapturerObserver {
20   /** Notify if the capturer have been started successfully or not. */
onCapturerStarted(boolean success)21   void onCapturerStarted(boolean success);
22   /** Notify that the capturer has been stopped. */
onCapturerStopped()23   void onCapturerStopped();
24 
25   /** Delivers a captured frame. */
onFrameCaptured(VideoFrame frame)26   void onFrameCaptured(VideoFrame frame);
27 }
28