This object allows you to play media files.
Added in Actiona 3.12.0
Constructor function.
var myObject = new MediaPlayer();
Sets the playback rate.
myObject.setPlaybackRate(rate);
Sets the volume.
myObject.setVolume(volume);
Sets the position of the current playing item.
myObject.setPosition(position);
Mutes or unmutes the current playing media.
myObject.setMuted(muted);
Returns the duration of the current media.
myObject.duration();
Returns true if the current media has audio.
myObject.hasAudio();
Returns true if the current media has video.
myObject.hasVideo();
Returns the current playback rate.
myObject.playbackRate();
Returns the current volume.
myObject.volume();
Returns the current position.
myObject.position();
Returns true if the current media is muted.
myObject.isMuted();
Returns true if the current media is seekable. Seekable means that you can seek to a specific position to play.
myObject.isSeekable();
Returns the percentage of filled buffer.
myObject.bufferStatus();
Begins playing.
myObject.play();
Pauses the playing.
myObject.pause();
Stops the playing.
myObject.stop();
Plays a local media.
myObject.setLocalMedia(path);
Plays a distant media.
myObject.setDistantMedia(url);
The playback rate. (float)
The volume. (float)
The position in milliseconds. (integer)
If the media is muted. (boolean)