BASS.NET API for the Un4seen BASS Audio LibraryBassHlsBASS_HLS_StreamCreateFile Method (IntPtr, Int64, Int64, BASSFlag)BASS.NET API for the Un4seen BASS Audio Library
Creates a sample stream from a local HLS playlist.

This overload implements streaming from memory.

Namespace: Un4seen.Bass.AddOn.Hls
Assembly: Bass.Net (in Bass.Net.dll) Version:

public static int BASS_HLS_StreamCreateFile(
	IntPtr memory,
	long offset,
	long length,
	BASSFlag flags


Type: SystemIntPtr
An unmanaged pointer to the memory location as an IntPtr.
Type: SystemInt64
Offset to begin streaming from (unused for memory streams, set to 0).
Type: SystemInt64
Data length (needs to be set to the length of the memory streams in bytes which should be played).
Type: Un4seen.BassBASSFlag
Any combination of these flags: see BASSFlag.

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.

Works in the same way BASS_StreamCreateFile(String, Int64, Int64, BASSFlag) does - so for details look there.

This is a local file version of the BASS_HLS_StreamCreateURL(String, BASSFlag, DOWNLOADPROC, IntPtr) function. Although the HLS playlist can be a local file, the media segments in the playlist must be URLs.

See Also