Click or drag to resize

IAudioHandlerOnAudioStreamPacket Method

Version 75.1.140
Called when a PCM packet is received for the stream identified by audioStreamId Based on and the ChannelLayout value passed to OnAudioStreamStarted(IWebBrowser, IBrowser, Int32, Int32, ChannelLayout, Int32, Int32) you can calculate the size of the data array in bytes.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 75.1.140.0 (75.1.140.0)
Syntax
void OnAudioStreamPacket(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	int audioStreamId,
	IntPtr data,
	int noOfFrames,
	long pts
)

Parameters

chromiumWebBrowser
Type: CefSharpIWebBrowser
browser
Type: CefSharpIBrowser

[Missing <param name="browser"/> documentation for "M:CefSharp.IAudioHandler.OnAudioStreamPacket(CefSharp.IWebBrowser,CefSharp.IBrowser,System.Int32,System.IntPtr,System.Int32,System.Int64)"]

audioStreamId
Type: SystemInt32
will uniquely identify the stream across all future IAudioHandler callbacks
data
Type: SystemIntPtr
is an array representing the raw PCM data as a floating point type, i.e. 4-byte value(s)
noOfFrames
Type: SystemInt32
is the number of frames in the PCM packet
pts
Type: SystemInt64
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
See Also