media_playing(var handle)
Returns the current frame of the running
multimedia stream. If the stream is not running 0 returns.Parameters:
handle - The handle of the multimedia stream
that returns from Media_play or Media_loop.
Returns:
Current frame number of the multimedia file, or 0 if it's not running.
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_pause(mhandle); // pause the stream with handle x
...
if(media_playing(mhandle) == 0)
{
media_start(mhandle); // start new
}
See also:
media_play,
media_pause, media_start,
media_stop, media_tune,
media_layer
► latest
version online