Context Menu/Loop/Stop

Back to Main

Video Player

Context Menu

This plugin disabled the default context menu, and generates a custom one when performing mouse left click.

By default, it creates the following actions:

API

Parameter Type Default Description
contextMenuItems array [] An array of objects with format { render (player) { }, click (player) {} } to render and perform click menu items, or { isSeparator: true } to separate items

Loop

This plugin creates a loop button in the control bar to turn on/off the loop effect. If activated, it will restart media once it finishes.

This button mimics the HTML5's loop attribute in the video/audio tags.

API

Parameter Type Default Description
loopText string null Title for Loop button for WARIA purposes when loop feature is activated

Stop

This plugin enables a Stop button in the control bar, which basically pauses media and loads an empty source.

Once this is done, user must implement his own mechanism to resume since the reference to the original source will get lost.

If a stop method is detected, the button will fire its functionality.

API

Parameter Type Default Description
stopText string null Title for Stop button for WARIA purposes