mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
update
This commit is contained in:
parent
52b9347299
commit
badd0369e8
16 changed files with 1203 additions and 2 deletions
32
node_modules/videojs-youtube/examples/global-parameters.html
generated
vendored
Normal file
32
node_modules/videojs-youtube/examples/global-parameters.html
generated
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link type="text/css" rel="stylesheet" href="../node_modules/video.js/dist/video-js.min.css" />
|
||||
</head>
|
||||
<body>
|
||||
<video
|
||||
id="vid1"
|
||||
class="video-js vjs-default-skin"
|
||||
width="640" height="264"
|
||||
data-setup='{ "techOrder": ["youtube"], "sources": [{ "type": "video/youtube", "src": "https://www.youtube.com/watch?v=xjS6SftYQaQ"}] }'
|
||||
>
|
||||
</video>
|
||||
|
||||
<script src="../node_modules/video.js/dist/video.js"></script>
|
||||
<script src="../dist/Youtube.js"></script>
|
||||
<script>
|
||||
// You can use any YouTube player parameters
|
||||
// https://developers.google.com/youtube/player_parameters?playerVersion=HTML5#Parameters
|
||||
// To use YouTube controls, you must use ytControls instead
|
||||
// To use the loop or autoplay, use the video.js settings
|
||||
// The language is set to the same as video.js by default
|
||||
videojs.setGlobalOptions({
|
||||
youtube: {
|
||||
ytControls: 2,
|
||||
rel: 1,
|
||||
autohide: 0
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue