コード例 #1
0
        /// <summary>
        /// This will be invoked when it is time to start capturing frames.
        /// </summary>
        /// <param name="videoFormat"> the video format of the frames to be captured. </param>
        /// <param name="listener"> capturer listener. </param>
        public override void startCapture(VideoFormat videoFormat, Listener listener)
        {
            // Store the capturer listener
            this.videoCapturerListener = listener;
            this.started.set(true);

            // Notify capturer API that the capturer has started
            bool capturerStarted = handler.postDelayed(viewCapturer, VIEW_CAPTURER_FRAMERATE_MS);

            this.videoCapturerListener.onCapturerStarted(capturerStarted);
        }
コード例 #2
0
		/// <summary>
		/// This will be invoked when it is time to start capturing frames.
		/// </summary>
		/// <param name="videoFormat"> the video format of the frames to be captured. </param>
		/// <param name="listener"> capturer listener. </param>
		public override void startCapture(VideoFormat videoFormat, Listener listener)
		{
			// Store the capturer listener
			this.videoCapturerListener = listener;
			this.started.set(true);

			// Notify capturer API that the capturer has started
			bool capturerStarted = handler.postDelayed(viewCapturer, VIEW_CAPTURER_FRAMERATE_MS);
			this.videoCapturerListener.onCapturerStarted(capturerStarted);
		}