thelevicole / youtube-to-html5-loader

Load YouTube videos with the HTLML5 <video> element without needing iframes or the YouTube JS API.
https://thelevicole.com/youtube-to-html5-loader/
138 stars 25 forks source link

No audio #8

Closed gjbertele closed 3 years ago

gjbertele commented 3 years ago

The video appears however there isnt any audio

thelevicole commented 3 years ago

Some streams from YouTube have no audio channel so this might be where the issue lies. Because of this there has been added a new option to the library (v4) which will only select streams with audio avialable. This can be use like so:

new YouTubeToHtml5({
    withAudio: true
});

A working example of this can be found here: https://thelevicole.com/youtube-to-html5-loader/