Video Plugin
If a Picture is Worth a Thousand Words, Then Is a Video Worth a Million?
#
Usage#
Video Config APIViewer disableDownload (deprecated!)
#
#
disableDownload should be set in the mediaSettings of the editor.Showcase of video without download
getVideoUrl
#
This function take the pathname and form a full URL (invoked when rendering video which has relative URL).
onProgress
#
Callback containing
played
andloaded
progress as a fraction.playedSeconds
andloadedSeconds
in seconds.id
of video
progressInterval
#
The time between onProgress callbacks, in milliseconds (default 1000
)
toolbar
#
The toolbar setting refers to the plugin functionality toolbar, it is an object which may consist of the following keys:
hidden
- An array of toolbar button keynames to be removed from toolbar
icons
- An object of toolbar button keynames to custom icons map (e.g { replace: MyCustomReplaceIcon }, { InsertPluginButtonIcon: MyCustomInsertIcon } etc...)
enableCustomUploadOnMobile
#
Apply the extended input modal styles in mobile (if handleFileSelection
is available)
handleFileSelection
#
Here you can call your custom video upload functionality
handleFileUpload
#
Use for native file upload
#
Sound Cloud PluginSoundCloud toolbar button is part of the Video plugin. To use it we need to expose a button with exposeButtons
:
see documentation above.
exposeButtons
#
The buttons exposed by the plugin
Example value:
#
YouTube PluginYouTube toolbar button is part of the Video plugin. To use it we need to expose a button with exposeButtons
:
see documentation above.
exposeButtons
#
The buttons exposed by the plugin
Example value: