0.0.5 • Published 4 years ago

ngx-dailymotion v0.0.5

Weekly downloads
21
License
-
Repository
-
Last release
4 years ago

NgxDailymotion

npm version CircleCI codecov

Dailymotion player component for Angular.

Usage

// app.component.ts
import { NgxDailymotionModule } from 'ngx-dailymotion';
<!-- app.component.html -->
<dailymotion
  video="xwr14q"
  uiTheme="light"
  autoplay="true"
></dailymotion>
...
<script src="https://api.dmcdn.net/all.js"></script>

API

Components

NameTypeDescription
videostringThe Dailymotion video ID that identifies the video that the player will load
widthstringThe width of the video player. The default value is 480
heightstringThe height of the video player. The default value is 270
autoplaybooleanStarts the playback of the video automatically after the player loads.
controlsbooleanWhether 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).
mutebooleanWhether to mute the video or not.
quality'auto', '240', '380', '480', '720', '1080', '1440', '2160'Specify the suggested playback quality for the video.
sharing-enablebooleanWhether to display the sharing button or not.
startnumberSpecify the time (in seconds) from which the video should start playing.
ui-logobooleanWhether to display the Dailymotion logo or not.
ui-theme'dark', 'light'Choose the default base colour theme.
0.0.5

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago