Programmatically force YouTube desktop player on mobile

时间:2019-05-31 11:37:05

标签: javascript html css video.js youtube-iframe-api

I am aware that <meta name="viewport" content="width=1024, initial-scale=1, shrink-to-fit=yes" /> will fit my desktop-based web app into a mobile/tablet device instead of having to manually switch on "Desktop Site" in browser, however, in Android at least, Chrome still uses the default HTML5 player instead of Youtube's desktop player which I absolutely need for my YouTube iframe embedded player.

I don't want to force users to select "Desktop Site" before usage. Is there a way to programmatically (CSS and/or Javascript) enable the YouTube desktop player in my YouTube iframe embedded player for any device?

Thanks for permanent solution.

0 个答案:

没有答案