All Projects β†’ videojs β†’ Videojs Youtube

videojs / Videojs Youtube

YouTube playback technology for Video.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Videojs Youtube

Vue Video Player
🎞 @videojs component for @vuejs
Stars: ✭ 4,026 (+324.68%)
Mutual labels:  youtube, videojs
Scalajs Videojs
Scala.js bindings for Video.js
Stars: ✭ 7 (-99.26%)
Mutual labels:  youtube, videojs
Youtub.ly Android
An android app to download πŸ“Ή videos and songs from youtube to phone internal storage
Stars: ✭ 17 (-98.21%)
Mutual labels:  youtube
Youtube Dl Gui
A cross platform front-end GUI of the popular youtube-dl written in wxPython.
Stars: ✭ 7,914 (+734.81%)
Mutual labels:  youtube
Peapod
A personal podcast service.
Stars: ✭ 24 (-97.47%)
Mutual labels:  youtube
Thegeekpath
The Geek Path = a community manifesto
Stars: ✭ 18 (-98.1%)
Mutual labels:  tech
Skytube
An open-source YouTube app for Android.
Stars: ✭ 938 (-1.05%)
Mutual labels:  youtube
Ytdl
YouTube download library and CLI written in Go
Stars: ✭ 833 (-12.13%)
Mutual labels:  youtube
Youtube Auto Subtitle To Chinese Subtitle Download
δΈ‹θ½½ Youtube θ‡ͺεŠ¨ε­—εΉ•ηΏ»θ―‘ζˆδΈ­ζ–‡ε­—εΉ•εŽηš„ε­—εΉ•ζ–‡δ»Ά
Stars: ✭ 29 (-96.94%)
Mutual labels:  youtube
Alltomp3 App
Download and Convert YouTube, SoundCloud & Spotify in MP3 with full tags (title, artist, genre, cover, lyrics πŸ”₯)
Stars: ✭ 920 (-2.95%)
Mutual labels:  youtube
Music
Life is Tech!γͺ音ζ₯½γ‚’γΎγ¨γ‚γŸ"ιžε…¬εΌ"γƒͺγƒγ‚Έγƒˆγƒͺです!
Stars: ✭ 13 (-98.63%)
Mutual labels:  youtube
Channels
The Mac App for YouTube Channels.
Stars: ✭ 23 (-97.57%)
Mutual labels:  youtube
V Playback
A Vue2 plugin to make video play easier
Stars: ✭ 19 (-98%)
Mutual labels:  videojs
Weaponessentials4.6
Weapon Essentials from my YouTube tutorial Series
Stars: ✭ 9 (-99.05%)
Mutual labels:  youtube
Virtualproduction Vrchat
Multicam Virtual Reality Production Rig + Crane + Overlays for VRChat
Stars: ✭ 18 (-98.1%)
Mutual labels:  youtube
Blog Post Workflow
Show your latest blog posts from any sources or StackOverflow activity or Youtube Videos on your GitHub profile/project readme automatically using the RSS feed
Stars: ✭ 910 (-4.01%)
Mutual labels:  youtube
Techgames
TechGames is a complete gaming news portal to stay on top of everything in the gaming world.
Stars: ✭ 23 (-97.57%)
Mutual labels:  tech
Pyjumpcutterv2
carykh's but with improvements and a GUI!
Stars: ✭ 25 (-97.36%)
Mutual labels:  youtube
Clinet
Official repository for Clinet, a Discord bot intended for assistance and control within your guilds.
Stars: ✭ 28 (-97.05%)
Mutual labels:  youtube
Video.js
Video.js - open source HTML5 & Flash video player
Stars: ✭ 32,478 (+3325.95%)
Mutual labels:  videojs

YouTube Playback Technology
for Video.js

Greenkeeper badge

Install

You can use bower (bower install videojs-youtube), npm (npm install videojs-youtube) or the source and build it using npm run build. Then, the only file you need is dist/Youtube.min.js.

Version Note

Use branch vjs4 if you still using old VideoJS v4.x.

Example

<!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
    autoplay
    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.min.js"></script>
  <script src="../dist/Youtube.min.js"></script>
</body>
</html>

See the examples folder for more

How does it work?

Including the script Youtube.min.js will add the YouTube as a tech. You just have to add it to your techOrder option. Then, you add the option src with your YouTube URL.

It supports:

Options

It supports every regular Video.js options. Additionally, you can change any YouTube parameter. Here is an example of setting the iv_load_policy parameter to 1.

<video
  id="vid1"
  class="video-js vjs-default-skin"
  controls
  autoplay
  width="640" height="264"
  data-setup='{ "techOrder": ["youtube"], "sources": [{ "type": "video/youtube", "src": "https://www.youtube.com/watch?v=xjS6SftYQaQ"}], "youtube": { "iv_load_policy": 1 } }'
>
</video>

YouTube controls

Because controls is already a Video.js option, to use the YouTube controls, you must set the ytControls parameter.

<video
  id="vid1"
  class="video-js vjs-default-skin"
  controls
  autoplay
  width="640" height="264"
  data-setup='{ "techOrder": ["youtube"], "sources": [{ "type": "video/youtube", "src": "https://www.youtube.com/watch?v=xjS6SftYQaQ"}], "youtube": { "ytControls": 2 } }'
>
</video>

Custom Player Options

If you need to set any additional options on the YouTube player, you may do so with the customVars parameter:

<video
  id="vid1"
  class="video-js vjs-default-skin"
  controls
  autoplay
  width="640" height="264"
  data-setup='{ "techOrder": ["youtube"], "sources": [{ "type": "video/youtube", "src": "https://www.youtube.com/watch?v=xjS6SftYQaQ"}], "youtube": { "customVars": { "wmode": "transparent" } } }'
>
</video>

Special Thank You

Thanks to Steve Heffernan for the amazing Video.js and to John Hurliman for the original version of the YouTube tech

License

The MIT License (MIT)

Copyright (c) Benoit Tremblay [email protected] and videojs-youtube contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].