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:
| var= |
current frame number of the multimedia file |
| var= 0 |
if it's not runnig |
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 handle x
...
if(media_playing(x) == 0) // the stream will be not played by handle x
{
media_start(x); // start new
}
See also:
media_play,
media_pause, media_start,
media_stop, media_tune,
media_layer, media_handle