Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.1 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.1 KB

Provider: Youtube

Supports for Youtube player with the Youtube player API.

Note The Youtube API is automatically loaded by the provider.

Overview

Name youtube
Path vlitejs/providers/youtube
Entry point vlitejs/providers/youtube.js

Usage

HTML

<div id="player" data-youtube-id="<video_id>"></div>

JavaScript

import 'vlitejs/vlite.css';
import Vlitejs from 'vlitejs';
import VlitejsYoutube from 'vlitejs/providers/youtube.js';

Vlitejs.registerProvider('youtube', VlitejsYoutube);

new Vlitejs('#player', {
  provider: 'youtube'
});

Demo

See the Youtube provider demo.

SDK documentation

See the Youtube player API documentation.