Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

irsyadadl's avatar

Video JS Youtube on HD Quality

Hi guys. I am trying to embed my youtube video with Video JS Youtube. The only problem I got here is I can't watch it in HD Mode, while in youtube I can switch it.

This is my code to display that youtube video.

<video autoplay poster="{{ asset('screencasts_thumbnail/' . $series->thumbnail) }}" 
    id="vid1" class="video-js vjs-default-skin vjs-big-play-centered" 
    preload="auto" controls data-setup='{ "techOrder": ["youtube"],"aspectRatio":"16:9", "sources": [{ "type": "video/youtube", "src": "https://www.youtube.com/watch?v={{ $video->unique_id }}"}] }'></video>

Can you guys fix if I have any problem here ?

0 likes
3 replies
irsyadadl's avatar

I try to put it on my bootstrap.js file, and nothing happened. Mean it's not working!

Please or to participate in this conversation.