Keyword

How make dynamic resizing player

More
10 years 5 months ago #134197 by Vlad
How make dynamic resizing player was created by Vlad
Dear AllVideos developers.
Thanks for a wonderful plugin.
I use responsive function, but the player window is created on the entire width of the page.
How can I do the trick with dynamic window grow to a certain size (or maximum width) after the click on the image "play".
As implemented here for example.

Vlad

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #134202 by Lefteris
Replied by Lefteris on topic How make dynamic resizing player
Hi. This cannot be done with AllVideos. It is something that requires customization and programming skills. AllVideos responsive layout will expand it's width according to the width of it's parent element. So if your template is responsive then AllVideos will also be responsive.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #134203 by Vlad
Replied by Vlad on topic How make dynamic resizing player
Thanks for the response.

Yes, Allvideo is responsive - great.
But on the desktop screen responsive player takes a lot of space. Resizing before viewing improves design.
Perhaps such option will appear in the new releases. I think - this is useful. ;)

Vlad

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #134209 by Lefteris
Replied by Lefteris on topic How make dynamic resizing player
Probably you didn't completely got what i wrote. Responsive player does not take a lot of space. It takes all the space available by it's parent element. If you put the player inside a container of let's say 600px width the player in desktop will also be displayed at 600px. This is how the responsive layout works.
Now, regarding to the "resizing before viewing" this is a different story but unfortunately currently is not available in AllVideos.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #134222 by Vlad
Replied by Vlad on topic How make dynamic resizing player
Many thanks. I got it.
I mean that player window first is 200-300px of width , resize to max width (not full screen) after play click.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #134238 by Lefteris
Replied by Lefteris on topic How make dynamic resizing player
You are welcome.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #134353 by Vlad
Perhaps it will be useful to someone.
Added resizing for the viewer by clicking. Certainly not perfect, but it works.

1. Put a placeholder in the div.
<div class="smallit" onclick="javascript: $(this).toggleClass('largeit');">{mp4}video1{/mp4}</div>
2. Add two classes to template css.
.smallit {
     width:33%;
     float:left;
     padding: 0 45px 10px 0;
    -webkit-transition: width 1s ease-in-out;
    -moz-transition: width 1s ease-in-out;
    -o-transition: width 1s ease-in-out;
    transition: width 1s ease-in-out; 
 }
 
.largeit {
     width:100%;
     
    -webkit-transition: width 1s ease-in-out;
    -moz-transition: width 1s ease-in-out;
    -o-transition: width 1s ease-in-out;
    transition: width 1s ease-in-out; 
 }
Of course you can experiment with styles.

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #134356 by Lefteris
Replied by Lefteris on topic [Solved] How make dynamic resizing player
Great. Thank you for providing the code. It might help other users.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum