Twitter Video Height

Posted in: Newspaper
Post count: 11

I would like to have same player height for youtube and twitter videos. There is no problem with youtube but Twitter vertical orientation videos with 100% width are looking very bad, too big. How to get 16/9 player ratio with black video borders?

Post count: 20688

Hi,

The aspect ratio depends on the source video format itself, so you can not change a video from one aspect ratio to another, only by using a converter probably or by other methods. Please correct me if I misunderstand and provide more details and a link to your website pointing to the problem.

Thanks

Post count: 11

Ok, forget the aspect ratio. Height, how to change the height of twitter video? Default height is 100%. I want to make it 600 px

Post count: 20688

Hi,

Please provide a link to your website, pointing to this video an I will try to give you a solution if possible.

Thanks

Post count: 11
Post count: 20688

Hi,

I have embedded the video you mention in a post, and it looks like this for me
https://www.screencast.com/t/phBSxMI4
https://www.screencast.com/t/wOU64g8I
https://www.screencast.com/t/CtYvyykj4yat
In your case there seems to be some custom code that is setting the twitter video to not have a max-width limit
https://www.screencast.com/t/q44OZtYxN
If you would like to limit the video to 600px in height, you could try this code
https://www.screencast.com/t/mwJajIrDDaJ
Just enter it in Theme panel->Custom Css

.single .twitter-video iframe,
.single .twitter-video {
height: 600px!important;
}

Thanks

Post count: 11

Thank you, that’s working ! Is there a way to remove this inline margin 10px ?

div id=”twitter-widget-1″ class=”twitter-video twitter-video-rendered” style=”min-width: 320px; position: relative; margin: 10px 0px; max-width: 281.25px;” data-tweet-id=”879048292088283136″

Post count: 20688

Hi,

If you need to, you could override that 10px margin with a code like this
https://www.screencast.com/t/4iVTfA5g

#twitter-widget-1 {
margin: 0!important;
}

Thanks

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.