media_stop(var handle)
Stops the media stream with the given handle. If a movie was rendered onto a texture, it's last frame will remain.
Parameters:
handle |
The handle of the multimedia stream returned from media_play or media_loop, or 0 for stopping all media streams. |
Example:
// Play movie "news.avi" on the entities' texture tv_model with the maximum loudness
var mhandle = media_play("news.avi",bmap_for_entity(tv_model,0),100);
...
media_stop(mhandle); // stops the stream
See also:
media_play,
media_pause, media_playing,
media_start, media_tune, media_layer
► latest
version online