Jump to content
miranda121

Video.js Wordpress

Recommended Posts

miranda121

Boa tarde estou a usar o plugin Video.js para wordpress mas estou com a seguinte duvida.

eu tenho este codigo onde ele insere o video com autoplay etc etc. e tenho o codigo css para ele ficar esticado pelo ecra em width 100%. Só que ao iniciar o video ele aparece umas bordas de lado pretas do video. como posso retirar de maneira a ficar o video de uma ponta a outra?

<?php
echo do_shortcode('[videojs  autoplay="true" loop="true" controls="false" muted="true" youtube="https://www.youtube.com/watch?v=cu2ApTImBKc"]');

 ?>

iframe,object,embed,video,.videoWrapper,.video-js {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.video-js, img.vjs-poster {
width: 100% !important;
height: 100% !important; /*these need !important because IE wants to set height/width to 100px*/
}

Podia-me dar uma ajuda?

Obrgiado

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.