Click or drag to resize

IAudioHandlerOnAudioStreamStarted Method

Version 75.1.140
Called when the stream identified by audioStreamId has started. [!:IAudioHandler.OnAudioSteamStopped] will always be called after OnAudioStreamStarted(IWebBrowser, IBrowser, Int32, Int32, ChannelLayout, Int32, Int32); both methods may be called multiple times for the same stream.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 75.1.140.0 (75.1.140.0)
Syntax
void OnAudioStreamStarted(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	int audioStreamId,
	int channels,
	ChannelLayout channelLayout,
	int sampleRate,
	int framesPerBuffer
)

Parameters

chromiumWebBrowser
Type: CefSharpIWebBrowser
the ChromiumWebBrowser control
browser
Type: CefSharpIBrowser
the browser object
audioStreamId
Type: SystemInt32
will uniquely identify the stream across all future IAudioHandler callbacks
channels
Type: SystemInt32
is the number of channels
channelLayout
Type: CefSharp.EnumsChannelLayout
is the layout of the channels
sampleRate
Type: SystemInt32
is the stream sample rate
framesPerBuffer
Type: SystemInt32
is the maximum number of frames that will occur in the PCM packet passed to OnAudioStreamPacket
See Also