Supports for Youtube player with the Youtube player API.
Note The Youtube API is automatically loaded by the provider.
Name | youtube |
Path | vlitejs/providers/youtube |
Entry point | vlitejs/providers/youtube.js |
<div id="player" data-youtube-id="<video_id>"></div>
import 'vlitejs/vlite.css';
import Vlitejs from 'vlitejs';
import VlitejsYoutube from 'vlitejs/providers/youtube.js';
Vlitejs.registerProvider('youtube', VlitejsYoutube);
new Vlitejs('#player', {
provider: 'youtube'
});
See the Youtube provider demo.
See the Youtube player API documentation.