Web Development with jQuery (2015)
Part IV. Appendices
Appendix U. MediaElement
MediaElement Options |
||
Option |
Description |
Type |
alwaysShowControls |
Determines whether controls are hidden when the mouse cursor leaves a video. |
Boolean |
alwaysShowHours |
Determines whether the hour marker is present in video time, for example, HH:MM:SS. This option shows the HH: portion. |
Boolean |
AndroidUseNativeControls |
Determines whether native controls are used on Android devices. |
Boolean |
audioWidth |
If a value is provided, it overrides the width of the <audio> element. |
Integer |
audioHeight |
If a value is provided, it overrides the height of the <audio> element. |
Integer |
autosizeProgress |
Determines whether the size of the progress bar should be automatically calculated based on the size of other elements. |
Boolean |
autoRewind |
Returns to the beginning when media ends. |
Boolean |
clickToPlayPause |
Determines whether clicking a <video> element toggles play/pause. |
Boolean |
defaultAudioHeight |
The default height in pixels of an <audio> player. This value is used if no height is specified on the element. |
Integer |
defaultAudioWidth |
The default width in pixels of an <audio> player. This value is used if no width is specified on the element. |
Integer |
defaultSeekBackwardInterval |
The default amount of time to move backward when a key is pressed. |
Function |
defaultSeekForwardInterval |
The default amount of time to move forward when a key is pressed. |
Function |
defaultVideoHeight |
The default height in pixels of a <video> player. This value is used if no height is specified on the element. |
Integer |
defaultVideoWidth |
The default width in pixels of a <video> player. This value is used if no width is specified on the element. |
Integer |
enableAutosize |
Enables Flash and Silverlight players to resize to content size. |
Boolean |
enableKeyboard |
Enables and disables keyboard support. |
Boolean |
features |
The order of controls or plugins on the control bar. |
Array |
framesPerSecond |
This option is used when the showTimecodeFrameCount option is set to true. It indicates the number of frames per second. |
Integer |
hideVideoControlsOnLoad |
Determines whether video controls should hide when a video loads. |
Boolean |
iPadUseNativeControls |
Determines whether to use native controls on an iPad. |
Boolean |
iPhoneUseNativeControls |
Determines whether to use native controls on an iPhone. |
Boolean |
keyActions |
An array of keyboard commands. |
Array |
loop |
Determines whether to loop an audio track. |
Boolean |
pauseOtherPlayers |
Determines whether to pause other players on the page when the player starts. |
Boolean |
poster |
URL to a poster image. |
String |
showPosterWhenEnded |
Determines whether to show the poster when the video has ended. |
Boolean |
showTimecodeFrameCount |
Show the frame rate in the time code. FF:HH:MM:SS. This option adds the FF: portion. The framesPerSecond option determines the value. |
Boolean |
startVolume |
The volume level when the player starts. |
Float |
videoWidth |
If a value is provided, it overrides the width of the <video> element. |
Integer |
videoHeight |
If a value is provided, it overrides the height of the <video> element. |
Integer |