Dailymotion player component for React.
Install - Usage - Demo - Props
npm install --save react-dailymotion
import Dailymotion from 'react-dailymotion'; <Dailymotion video="x2to0hs" uiTheme="light" autoplay />Name Type Default Description video string A string representing a video ID – of the form xID (e.g. xwr14q) for public-accessible videos or kID (e.g. kABCD1234) for private-accessible videos. id string DOM ID for the player element. className string CSS className for the player element. width number, string Width of the player element. height number, string Height of the player element. paused bool Pause the video. autoplay bool Starts the playback of the video automatically after the player loads. controls bool Whether to display the player controls or not. This parameter only removes the control bar, but keeps the startscreen and the endscreen (useful on mobile devices where the video tag needs a direct user interaction to start the playback). showEndScreen bool Whether to enable the end screen or not. mute bool Whether to mute the video or not. origin string The domain of the page hosting the Dailymotion player. You might want to specify origin for extra security. quality enum:
play
method returns. onPlaying function Sent when the content media resource playback has started. onProgress function Sent when the browser is fetching the media data. onQualitiesAvailable function Sent when qualities are available – see qualities
for accepted values. onQualityChange function Sent when the current quality changes. onSeeked function Sent when the player has completed a seeking operation. onSeeking function Sent when the player is starting to seek to another position in the video. onSubtitleChange function Sent when the current subtitle changes. onSubtitlesAvailable function Sent when subtitles are available. onStart function Sent the first time the player attempts to start the playback, either because of a user interaction, an autoplay parameter, or an API call (e.g play(), load(), etc.). onTimeUpdate function Sent when the playback position changes as part of normal playback or because of some other condition. onVideoStart function Sent when the player starts to play the content media resource. onVideoEnd function Sent when the player reaches the end of the content media resource. onVolumeChange function Sent when the player volume or mute state has changed. onWaiting function Sent when the player has to stop video playback for further buffering of content.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4