Creates a sample stream from an WebM or Matroska file on the internet, optionally receiving the downloaded data in a callback.
HSTREAM BASS_WEBM_StreamCreateURL( char *url, DWORD offset, DWORD flags, DOWNLOADPROC *proc, void *user, DWORD track );
url | URL of the file to stream. Should begin with "http://" or "https://" or "ftp://". | ||||||||||||||||||||
offset | File position to start streaming from. This is ignored by some servers, specifically when the file length is unknown. | ||||||||||||||||||||
flags | A combination of these flags.
| ||||||||||||||||||||
proc | Callback function to receive the file as it is downloaded... NULL = no callback. | ||||||||||||||||||||
user | User instance data to pass to the callback function. | ||||||||||||||||||||
track | 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. |
BASS_ERROR_INIT | BASS_Init has not been successfully called. |
BASS_ERROR_NOTAVAIL | The BASS_STREAM_AUTOFREE flag cannot be combined with the BASS_STREAM_DECODE flag. |
BASS_ERROR_NONET | No internet connection could be opened. |
BASS_ERROR_ILLPARAM | url is not a valid URL. |
BASS_ERROR_PROTOCOL | The protocol in url is not supported. |
BASS_ERROR_SSL | SSL/HTTPS support is not available. See BASS_CONFIG_LIBSSL. |
BASS_ERROR_TIMEOUT | The server did not respond to the request within the timeout period, as set with the BASS_CONFIG_NET_TIMEOUT config option. |
BASS_ERROR_FILEOPEN | The file could not be opened. |
BASS_ERROR_FILEFORM | The file's format is not recognised/supported. |
BASS_ERROR_NOTAUDIO | The track or file does not contain audio. |
BASS_ERROR_CODEC | The file uses a codec that is not available/supported. |
BASS_ERROR_FORMAT | The sample format is not supported. |
BASS_ERROR_SPEAKER | The specified SPEAKER flags are invalid. |
BASS_ERROR_MEM | There is insufficent memory. |
BASS_ERROR_NO3D | Could not initialize 3D support. |
BASS_ERROR_WEBM_TRACK | track is invalid. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
If the file has tags located at the end of it then they will not be available until the entire file has been downloaded. If the file does not contain duration information in its headers then the length will not be available from BASS_ChannelGetLength until the end.
BASS_ChannelGetInfo, BASS_ChannelGetLength, BASS_ChannelGetTags, BASS_ChannelPlay, BASS_ChannelSetAttribute, BASS_ChannelSetDSP, BASS_ChannelSetFX, BASS_StreamFree, BASS_StreamGetFilePosition, DOWNLOADPROC callback, BASS_CONFIG_NET_AGENT, BASS_CONFIG_NET_BUFFER, BASS_CONFIG_NET_PREBUF, BASS_CONFIG_NET_PROXY, BASS_CONFIG_NET_TIMEOUT