Video Player

A component for playing media files and content from YouTube, SoundCloud and Vimeo.

Example:

<VideoPlayer
    url="https://www.youtube.com/watch?v=UzxYlbK2c7E"
    playing
/>

Open interactive preview

Options:

  • url | string: URL of the video. Default: ''.
  • controls | boolean: indicates whether to display control elements of the video player. Default: false.
  • playing | boolean: indictes whether to automatically start playing the video. Default: false.
  • volume | number: volume of the player. Default: 0.8.
  • center | boolean: controls whether to center the video player. Default: true.
  • height | (string|number): height of the player. Default: 360.
  • width | (string|number): width of the player. Default: 640.
  • loop | boolean: controls whether to start the video anew after it was played. Default: false.
  • voiceID | string: voice control identifier. Default: none.
  • style | object: CSS inline styles. Default: {}.
  • onEnded | function: callback invoked once the video ends. Default: onEnded() {}.
  • onPause | function: callback invoked once the video pauses. Default: onPause() {}.
  • onPlay | function: callback invoked once the video starts or resumes playing after pausing. Default: onPlay() {}.

results matching ""

    No results matching ""