loop([loop])
Class: MediaPlayer.
Description:
Sets or get value if media should be looping. Valid values are true, false, or a positive integer how many times it should be looped.
The stream continues even though video or audio repeats, after first iteration current time stops updating because it would show time of the
total playback, not the current media time. If you need correct media progress time, implement your own loop by starting video again when it stops.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
boolean | number |
Loop or not to loop |
Returns:
When setting a value, an instance of this object is returned; otherwise a current value is returned.
Type: boolean | number | MediaPlayer
