YouTube player video

Website: http://videojs.com/

How can I use the YouTube skin on the home page? I would really like to configure the player so that it looks on the main page.

Can someone explain how to do this?

PS: I have to be blind, I can not find the youtube skin on the web page: /

+4
source share
1 answer

CSS for the skin is available in the source code: http://www2.videojs.com/css/tube-css/tube.css .
The sprite used in css is available here: http://www2.videojs.com/css/tube-css/tubesprite.png .
According to the doc, you just need to replace the default vjs-default-skin class with a new one, in your case: tubecss

So, include the appropriate css in your page and do something like:

 <video class="video-js tubecss" ...> 

Note. On the videojs website, the skin class is applied to the video tag wrapper. I have not tested this, but both solutions must be valid.

+9
source

Source: https://habr.com/ru/post/1401752/


All Articles