Creates a sample stream from a MPC file on the internet, optionally receiving the downloaded data in a callback.
Assembly: Bass.Net (in Bass.Net.dll) Version: 188.8.131.52
public static int BASS_MPC_StreamCreateURL( string url, int offset, BASSFlag flags, DOWNLOADPROC proc, IntPtr user )
Public Shared Function BASS_MPC_StreamCreateURL ( url As String, offset As Integer, flags As BASSFlag, proc As DOWNLOADPROC, user As IntPtr ) As Integer
- Type: SystemString
URL of the file to stream. Should begin with "http://" or "ftp://".
- Type: SystemInt32
File position to start streaming from. This is ignored by some servers, specifically when the file length is unknown.
- Type: Un4seen.BassBASSFlag
Any combination of these flags: see BASSFlag.
- Type: Un4seen.BassDOWNLOADPROC
Callback function to receive the file as it is downloaded... = no callback.
- Type: SystemIntPtr
User instance data to pass to the callback function.
Return ValueType: Int32
If successful, the new stream's handle is returned, else 0 is returned. Use BASS_ErrorGetCode to get the error code.
Seeking is only possible once the entire file has been downloaded.