Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefAudioHandler

CefBaseRefCounted
   |
   +--CefAudioHandler

   in cef_audio_handler.h

class CefAudioHandler
extends CefBaseRefCounted

Implement this interface to handle audio events All methods will be called on the UI thread


Inner Classes, Typedefs, and Enums
typedef CefAudioHandler::ChannelLayout
          
 
Method Summary
 virtual void OnAudioStreamPacket( CefRefPtr< CefBrowser > browser, int audio_stream_id, const float** data, int frames, int64 pts )= 0
          Called when a PCM packet is received for the stream identified by |audio_stream_id|.
 virtual void OnAudioStreamStarted( CefRefPtr< CefBrowser > browser, int audio_stream_id, int channels, CefAudioHandler::ChannelLayout channel_layout, int sample_rate, int frames_per_buffer )= 0
          Called when the stream identified by |audio_stream_id| has started.
 virtual void OnAudioStreamStopped( CefRefPtr< CefBrowser > browser, int audio_stream_id )= 0
          Called when the stream identified by |audio_stream_id| has stopped.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

OnAudioStreamPacket

public virtual void OnAudioStreamPacket( CefRefPtr< CefBrowser > browser, int audio_stream_id, const float** data, int frames, int64 pts )= 0;
Called when a PCM packet is received for the stream identified by |audio_stream_id|. |data| is an array representing the raw PCM data as a floating point type, i.e. 4-byte value(s). |frames| is the number of frames in the PCM packet. |pts| is the presentation timestamp (in milliseconds since the Unix Epoch) and represents the time at which the decompressed packet should be presented to the user. Based on |frames| and the |channel_layout| value passed to OnAudioStreamStarted you can calculate the size of the |data| array in bytes.

OnAudioStreamStarted

public virtual void OnAudioStreamStarted( CefRefPtr< CefBrowser > browser, int audio_stream_id, int channels, CefAudioHandler::ChannelLayout channel_layout, int sample_rate, int frames_per_buffer )= 0;
Called when the stream identified by |audio_stream_id| has started. |audio_stream_id| will uniquely identify the stream across all future CefAudioHandler callbacks. OnAudioSteamStopped will always be called after OnAudioStreamStarted; both methods may be called multiple times for the same stream. |channels| is the number of channels, |channel_layout| is the layout of the channels and |sample_rate| is the stream sample rate. |frames_per_buffer| is the maximum number of frames that will occur in the PCM packet passed to OnAudioStreamPacket.

OnAudioStreamStopped

public virtual void OnAudioStreamStopped( CefRefPtr< CefBrowser > browser, int audio_stream_id )= 0;
Called when the stream identified by |audio_stream_id| has stopped. OnAudioSteamStopped will always be called after OnAudioStreamStarted; both methods may be called multiple times for the same stream.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2016 Marshall A. Greenblatt