• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Responsive height for player

Started by mihai,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mihaiTopic starter

Hi!
Can i make the height of the player responsive with media queries or to change it from 500px to 50%?
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

mihaiTopic starter

If you figure out how to do that can you post here:)?
  •  

Marius P.

I think is very hard to find an solution on this build, since some of the players are gonna go 1 pixel height when removing the min-height on containing divs, I'm trying this with the new framework for 4.0
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

mihaiTopic starter

I am using JPLAYER AND YOUTUBE PLAYER and i can edit the height of the video-player by integrate thouse in media queries ////.video-player #video-content////.I found that it's possible and i will try it and come with the result for you guys
  •  

mihaiTopic starter

@media(min-width:2300px) and (max-width:2600px) {
.video-player,#video-content {
height:935px!important;
}

@media(min-width:1900px) and (max-width:2299px) {
.video-player,#video-content {
height:732px!important;
}

@media(min-width:1700px) and (max-width:1899px) {
.video-player,#video-content {
height:685px!important;
}

@media(min-width:1610px) and (max-width:1699px) {
.video-player,#video-content {
height:642px!important;
}

@media(min-width:1500px) and (max-width:1609px) {
.video-player,#video-content {
height:935px!important;
}

@media(min-width:1430px) and (max-width:1499px) {
.video-player,#video-content {
height:935px!important;
}

@media(min-width:1390px) and (max-width:1429px) {
.video-player,#video-content {
height:935px!important;
}

@media(min-width:1300px) and (max-width:1389px) {
.video-player,#video-content {
height:935px!important;
}

@media(min-width:1200px) and (max-width:1299px) {
.video-player,#video-content {
height:935px!important;
}

@media(min-width:1100px) and (max-width:1199px) {
.video-player,#video-content {
height:935px!important;
}

@media(min-width:1000px) and (max-width:1099px) {
.video-player,#video-content {
height:935px!important;
}





IS THERE SOMETHING WRONG WITH THE CODE???BECOUSE IT DOESN'T READ IT
  •  

Marius P.

harcoded styles/heights are always bypassing css definitions.
open video.php and remove the max-height from the divs.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

mihaiTopic starter

Quote from: @Mario on
harcoded styles/heights are always bypassing css definitions.
open video.php and remove the max-height from the divs.
[/quote]<div class="video-player pull-left" style="height:<?php echo $height;?>px"> and <div id="video-content" class="<?php if(has_list()){ echo "span77";} else {echo "row-fluid block";}?>" style="height:<?php echo $height;?>px">  so i must remove the styles???[code]
  •  

mihaiTopic starter

  •  

Marius P.

You've just posted it previously...

style="height:<?php echo $height;?>px"



it's not max- but it's height.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

mihaiTopic starter

I did that and the @media is still hidden.So now i don't longer have the player height.
It's ok now i can add the .video-player and #video-content but the codes that into responsive.css are not working
  •  

Marius P.

If I didn't bump onto issues, I would have not left it like that on the making, also :)
Having more time this time, to test and see...
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

mihaiTopic starter

I can change it for the resolutions that are already there but i can't make a new one and add it there.

  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

mihaiTopic starter

I don't know how to install that.I will try:)

1   i must add the jquery plugin into js and the add the code into tpl.globals
2   I must edit the video.php(i don't know what to edit in video.php)
And i don't know much more about what should i do to install that:)
  •  

mihaiTopic starter

  •  

Marius P.

Let me know if you have conflicts, I've tried it months back and it had some conflicts, but I assume they've update it.
Plan to test it also.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)