Object function reference

open_stream

A reference entry for open_stream

Object function · AudioStream

open_stream(string string) ⇒ boolean

Opens an audio stream from a URL or file path and prepares it for playback. Returns true if the stream was successfully opened, otherwise false.

Example

YASS
$audio->open_stream("music.mp3")