BASS.NET API for the Un4seen BASS Audio Library

BassWebMBASS_WEBM_StreamCreateURL Method

BASS.NET API for the Un4seen BASS Audio Library
Creates a sample stream from a WebM file on the internet, optionally receiving the downloaded data in a callback.

Namespace:  Un4seen.Bass.AddOn.WebM
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.7
Syntax

public static int BASS_WEBM_StreamCreateURL(
	string url,
	int offset,
	BASSFlag flags,
	DOWNLOADPROC proc,
	IntPtr user,
	int track
)

Parameters

url
Type: SystemString
URL of the file to stream. Should begin with "http://" or "ftp://".
offset
Type: SystemInt32
File position to start streaming from. This is ignored by some servers, specifically when the file length is unknown.
flags
Type: Un4seen.BassBASSFlag
Any combination of these flags: see BASSFlag.
proc
Type: Un4seen.BassDOWNLOADPROC
Callback function to receive the file as it is downloaded... = no callback.
user
Type: SystemIntPtr
User instance data to pass to the callback function.
track
Type: SystemInt32
The track to play from the file... 1 = first, 0 = first playable track. When requesting the first playable track, all tracks will be checked in numerical order until a playable one is found. The active track is available via the BASS_ATTRIB_WEBM_TRACK attribute.

Return Value

Type: Int32
If successful, the new stream's handle is returned, else 0 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

Works almost in the same way BASS_StreamCreateURL(String, Int32, BASSFlag, DOWNLOADPROC, IntPtr) does - so for details look there.
See Also

Reference