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 that returns from Media_play or Media_loop. |
| handle = 0 |
Stops all multimedia streams |
Example:
var x;
...
// Play film"news.avi" on the entities' texture tv_model with the maximum loudness
media_play("news.avi",bmap_for_entity(tv_model,0),100);
x = media_handle; // save the handle at X
...
media_stop(x); // pause the stream with x
See also:
media_play,
media_pause, media_playing,
media_start, media_tune, media_layer,
media_handle