Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 604 Bytes

context-menu.md

File metadata and controls

22 lines (15 loc) · 604 Bytes

Context Menu

Overview

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

By default, it creates the following actions:

  • Turn on/off fullscreen
  • Turn on/off mute
  • Download media

Keyword to use it

features: [..., 'contextmenu']

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