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

This overload implements UNICODE filenames. The BASS_UNICODE flag will be added automatically, since all .Net strings are always unicode.

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

public static int BASS_HLS_StreamCreateFile(
	string file,
	long offset,
	long length,
	BASSFlag flags


Type: SystemString
Filename for which a stream should be created.
Type: SystemInt64
File offset to begin streaming from.
Type: SystemInt64
Data length... 0 = use all data up to the end of the file.
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