mdm.MediaPlayer |
Constructor |
The following table lists the constructors for the MediaPlayer class |
Constructor | Description | Availability |
---|---|---|
mdm.MediaPlayer() | Inserts a Windows Media Player instance using the speci... | ![]() |
Methods |
The following table lists the methods for the MediaPlayer class |
Method | Description | Availability |
---|---|---|
MediaPlayer.close() | Closes the video file. | ![]() |
MediaPlayer.fastForward() | Fast forwards the video clip. | ![]() |
MediaPlayer.fastReverse() | Fast rewinds the video clip. | ![]() |
MediaPlayer.featureAvailable() | Queries the loaded MediaPlayer instance about the available features for the selected media and... | ![]() |
MediaPlayer.hide() | Hides the MediaPlayer instance. | ![]() |
MediaPlayer.mute() | Mutes or unmutes the MediaPlayer instance. | ![]() |
MediaPlayer.pause() | Pauses the video clip. | ![]() |
MediaPlayer.play() | Plays the file loaded in the MediaPlayer instance. | ![]() |
MediaPlayer.show() | Shows the MediaPlayer instance. | ![]() |
MediaPlayer.stop() | Stops the playback of the loaded file. | ![]() |
Properties |
The following table lists the properties for the MediaPlayer class |
Method | Description | Availability |
---|---|---|
MediaPlayer.balance | Contains the balance of the specified Instanc... | ![]() |
MediaPlayer.canScan | Contains a boolean indicating whether or not ... | ![]() |
MediaPlayer.canSeek | Contains a boolean indicating whether or not ... | ![]() |
MediaPlayer.currentMarker | Sets the current marker in the MediaPlayer in... | ![]() |
MediaPlayer.duration | Contains the total length in whole seconds of... | ![]() |
MediaPlayer.height | Contains the height of the MediaPlayer instan... | ![]() |
MediaPlayer.isInstalled | Contains a boolean indicating whether or not ... | ![]() |
MediaPlayer.markerCount | Contains the number of markers inside the cur... | ![]() |
MediaPlayer.mediaHeight | Contains the height of the current media in t... | ![]() |
MediaPlayer.mediaName | Contains the name of the current media in the... | ![]() |
MediaPlayer.mediaWidth | Contains the width of the current media in th... | ![]() |
MediaPlayer.position | Contains the current position of the video fi... | ![]() |
MediaPlayer.source | Contains the source URL of the current media ... | ![]() |
MediaPlayer.visible | Contains a boolean indicating whether or not ... | ![]() |
MediaPlayer.volume | Contains the volume of the MediaPlayer instan... | ![]() |
MediaPlayer.width | Contains the width of the MediaPlayer instanc... | ![]() |
MediaPlayer.x | Contains the x position of the MediaPlayer in... | ![]() |
MediaPlayer.y | Contains the x position of the MediaPlayer in... | ![]() |
Events |
The following table lists the events for the MediaPlayer class |
Method | Description | Availability |
---|---|---|
onWMPBuffering | Dispatched when the state of buffering change... | ![]() |
onWMPChangeState | Dispatched when the state of the MediaPlayer ... | ![]() |
onWMPError | Dispatched when an error occurs. | ![]() |
onWMPPositionChanged | Dispatched when the position of the current m... | ![]() |