mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
update
This commit is contained in:
parent
52b9347299
commit
badd0369e8
16 changed files with 1203 additions and 2 deletions
27
node_modules/videojs-youtube/examples/youtube-javascript.html
generated
vendored
Normal file
27
node_modules/videojs-youtube/examples/youtube-javascript.html
generated
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!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"
|
||||
controls
|
||||
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>
|
||||
// An example of playing with the Video.js javascript API
|
||||
// You can look at the doc there: http://docs.videojs.com/docs/guides/api.html
|
||||
videojs('vid1').ready(function() {
|
||||
var myPlayer = this;
|
||||
myPlayer.src({ type: 'video/youtube', src: 'https://www.youtube.com/watch?v=y6Sxv-sUYtM' });
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue