OnClientSoundStream
From Multi Theft Auto: Wiki
This event is triggered when a sound has just finished initial streaming. For file streams, this means the sound will now start playing, but isn't done downloading yet. For live streams, this just means the stream will start playing. This event will also trigger when, for some reason, the streaming failed.
Parameters
- success: A boolean indicating whether the stream was a success or not
- length: The length of the stream in milliseconds. Always returns 0 for a live stream
- streamName: The name of the stream. Note that this isn't the filename. Also note that this isn't always provided
Source
The source of this event is the sound which either successfully streamed or failed to stream.
Example
--TODOSee Also
Client player events
- onClientSoundChangedMeta
- onClientSoundFinishedDownload
- onClientSoundStream
FROM VERSION 1.4 ONWARDS
Client event functions
- addEvent
- addEventHandler
- cancelEvent
- removeEventHandler
- triggerEvent
- triggerServerEvent
- wasEventCanceled
FROM VERSION 1.3.1 ONWARDS