All Projects → thelevicole → youtube-to-html5-loader

thelevicole / youtube-to-html5-loader

Licence: other
Load YouTube videos with the HTLML5 <video> element without needing iframes or the YouTube JS API.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to youtube-to-html5-loader

Lightgallery.js
Full featured JavaScript image & video gallery. No dependencies
Stars: ✭ 5,168 (+6611.69%)
Mutual labels:  youtube, html5-video
Lightgallery
A customizable, modular, responsive, lightbox gallery plugin.
Stars: ✭ 4,829 (+6171.43%)
Mutual labels:  youtube, html5-video
Plyr
A simple HTML5, YouTube and Vimeo player
Stars: ✭ 20,859 (+26989.61%)
Mutual labels:  youtube, html5-video
Youtube Extension
🔴YouTube Extension🧰>80 Features ⭐Please document, code or donate📌Tidy📌Longest-standing(2012)(Users>350000)⋮🎞️🎛️🎧⚙️🎬🔊☕🎨🧩🧪📈⏯️(Player: Repeat Screenshot Rotate; Hide related video distraction. Always expand video Description. Playback speed. Video Quality bandwidth H.264 electricity. Player Size Full Window. Themes Customization. Statistics. Reverse Playlist YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube Youtube enhancer YouTube app YouTube video YouTube YouTube YouTube api v3 YouTube playback YouTube player VP8 VP9 AV1 vidIQ tubebuddy download adblocker adblock ads sponsorblock addon youtube music ⭐ youtube premium css css4 html5 ytdl youtube-dl invidious iridium ParticleCore youtube+ youtube++ youtube-plus maia-yt youtube nonstop youtube control center vlogger vlog h264ify h264 m.youtube.com music.youtube.com studio.youtube youtube mobile youtube studio ⭐ kids Vanced gaming.youtube.com gaming youtubecenter freetube lite-youtube-embed newpipe youtube-dl-gui mps-youtube nuclear pytube awesome youtubers youtube downloader 8k 4k 60fps 30fps youtubeexplode vidgear k-lite tubebuddy adobe apple ios iphone design simplify ffmpeg premiere designer annoyance youtube upload
Stars: ✭ 1,027 (+1233.77%)
Mutual labels:  youtube, html5-video
hosts
🄯Curated lists of hosts files with various domain blocks.🄯
Stars: ✭ 15 (-80.52%)
Mutual labels:  youtube
YouTube-Downloader
An easy-to-use, YouTube video downloader, without pesky ads or malware.
Stars: ✭ 22 (-71.43%)
Mutual labels:  youtube
TogetherStream
A social and synchronized streaming experience
Stars: ✭ 16 (-79.22%)
Mutual labels:  youtube
laravel-video-api
Laravel (Youtube/Vimeo) Video Data API
Stars: ✭ 53 (-31.17%)
Mutual labels:  youtube
YouTubeDownloader
A simple to use youtube playlists/videos/audios downloader.
Stars: ✭ 33 (-57.14%)
Mutual labels:  youtube
coding-projects
The coding projects which have been covered in the YouTube videos
Stars: ✭ 21 (-72.73%)
Mutual labels:  youtube
DraggablePanel
Android library used to create an awesome Android UI based on a draggable element similar to the last YouTube New graphic component.
Stars: ✭ 94 (+22.08%)
Mutual labels:  youtube
download audioset
📁 This repo makes it easy to download the raw audio files from AudioSet (32.45 GB, 632 classes).
Stars: ✭ 53 (-31.17%)
Mutual labels:  youtube
podpodge
Convert YouTube playlists to audio-only RSS feeds for podcast apps to consume.
Stars: ✭ 32 (-58.44%)
Mutual labels:  youtube
alternative-front-ends
Overview of alternative open source front-ends for popular internet platforms (e.g. YouTube, Twitter, etc.)
Stars: ✭ 1,664 (+2061.04%)
Mutual labels:  youtube
mpv-youtube-download
A userscript for MPV that allows you to download youtube audio and video with one key press 💾
Stars: ✭ 16 (-79.22%)
Mutual labels:  youtube
youtube-transcriber
Automatically transcribes YouTube videos
Stars: ✭ 71 (-7.79%)
Mutual labels:  youtube
ytqck.github.io
YouTube quick ⚡ Search and Download Music for Free.
Stars: ✭ 18 (-76.62%)
Mutual labels:  youtube
AnnotationsRestored
Brings annotation support back to YouTube
Stars: ✭ 39 (-49.35%)
Mutual labels:  youtube
YoutubePlayer
Play and download YouTube videos. Extract audio from video. With minimalist beautiful gui.
Stars: ✭ 19 (-75.32%)
Mutual labels:  youtube
ytmparty
Listen to music with your friends in Youtube Music.
Stars: ✭ 27 (-64.94%)
Mutual labels:  youtube

Load YoutTube videos as HTML5 emebed element

Latest Stable Version Total Downloads

Basic usage example

Replacing YOUTUBE_URL_OR_ID_GOES_HERE with your video URL or ID.

<video data-yt2html5="YOUTUBE_URL_OR_ID_GOES_HERE"></video>
<script src="YouTubeToHtml5.js"></script>
<script>new YouTubeToHtml5();</script>

NPM

npm i @thelevicole/youtube-to-html5-loader
const YouTubeToHtml5 = require('@thelevicole/youtube-to-html5-loader');
new YouTubeToHtml5();

jsDelivr CDN

<script src="https://cdn.jsdelivr.net/npm/@thelevicole/[email protected]/dist/YouTubeToHtml5.min.js"></script>

Options example

<video class="youtube-video" data-yt="https://youtube.com/watch?v=ScMzIvxBSi4"></video>
    
<script src="YouTubeToHtml5.js"></script>
<script>
  new YouTubeToHtml5({   
    selector: '.youtube-video',
    attribute: 'data-yt'
  });
</script>

Internal API example

<video data-yt2html5="YOUTUBE_URL_OR_ID_GOES_HERE"></video>
    
<script src="YouTubeToHtml5.js"></script>
<script>   
  var player = new YouTubeToHtml5({
    autoload: false // Disable loading videos on init, `.load()` method is required.
  });

  // Add loading class to video element
  player.addAction('api.before', function(element) {   
    element.classList.add('is-loading');
  });

  // Remove loading class after API HTTP request completes.
  player.addAction('api.after', function(element) {
    element.classList.remove('is-loading');
  });

  // Now we can load videos.
  player.load();
</script>

Accepted URL patterns

Below is a list of varying YouTube url patterns, which include http/s and www/non-www.

youtube.com/watch?v=ScMzIvxBSi4
youtube.com/watch?vi=ScMzIvxBSi4
youtube.com/v/ScMzIvxBSi4
youtube.com/vi/ScMzIvxBSi4
youtube.com/?v=ScMzIvxBSi4
youtube.com/?vi=ScMzIvxBSi4
youtu.be/ScMzIvxBSi4
youtube.com/embed/ScMzIvxBSi4
youtube.com/v/ScMzIvxBSi4
youtube.com/watch?v=ScMzIvxBSi4&wtv=wtv
youtube.com/watch?dev=inprogress&v=ScMzIvxBSi4&feature=related
m.youtube.com/watch?v=ScMzIvxBSi4
youtube-nocookie.com/embed/ScMzIvxBSi4
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].