- Posts: 4
COMMUNITY FORUM
How make dynamic resizing player
- Vlad
-
Topic Author
- Offline
- New Member
Less
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
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.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 5 months ago #134202
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.
- Vlad
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
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
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.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 5 months ago #134209
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.
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.
- Vlad
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
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.
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.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 5 months ago #134238
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.
- Vlad
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
10 years 4 months ago #134353
by Vlad
Replied by Vlad on topic [Solved] How make dynamic resizing player
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.2. Add two classes to template css.Of course you can experiment with styles.
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>
.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;
}
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 4 months ago #134356
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.