This story is not configured to handle controls. Learn how to add controls
Name | Description | Default | Control |
---|---|---|---|
props | |||
id | Used to specify where the player should be attached using a id of one DOM element. string | 'player' | - |
source* | Sets media source URL to play. You can set the media source accordingly to existing playbacks. stringobject | - | - |
externalPlugins | A list of Clappr Plugins that you want to register. Check the Plugins Page for more information on plugins present in this component and how to use them. Check other external plugins in clappr docs array | [] | - |
options | An object | () => {} | - |
aspectRatio | Aspect ratio of the player.
It wil check the number | - | - |
height | Height of the player.
You can use a number or a string with numberstring | - | - |
width | Width of the player.
You can use a number or a string with numberstring | '100%' | - |
events | |||
error | Fired when player receives an error unknown | - | - |
resize | unknown | - | - |
play | Fired when player starts to play unknown | - | - |
pause | Fired when player pauses unknown | - | - |
stop | Fired when player stops unknown | - | - |
seek | Fired when player seeks the video unknown | - | - |
ended | Fired when player seeks the video unknown | - | - |
time-update | Fired when the time is updated on player unknown | - | - |
volume-update | Fired when player updates its volume unknown | - | - |
subtitle-available | Fired when subtitles is available unknown | - | - |