- Posts: 1
COMMUNITY FORUM
Thumbnail or two different sizes for same video
- jstalnecker
-
Topic Author
- Offline
- New Member
Less
More
13 years 2 days ago #48723
by jstalnecker
Thumbnail or two different sizes for same video was created by jstalnecker
I am trying to use Allvideos to display the videos embedded in articles. The issue I am having is that I need either a thumbnail of the video or I need to be able to show the video in two different sizes. The reason for this is that on my front page I want to show a list of articles that contain videos but only show a thumbnail or small video and when the user clicks on the article they are redirected to the full article on another page and here I want to show the video in a large size.
Currently I am using the DisplayNews extension in conjunction with the AllVideos extensions to load the frontpage module. This works fine but I can only have one size of video. And I can't change the size through css because the player width and height are hardcoded in the generated HTML.
So is there a way to:
1) Make a thumbnail automatically from a video (like Multithumb does with images)
2) Specify two different sizes for the video based on the page
3) override the hardcoded css width and height so I can set them myself using css
Any of these options would be OK for what I need. Any help would be greatly appreciated.
Currently I am using the DisplayNews extension in conjunction with the AllVideos extensions to load the frontpage module. This works fine but I can only have one size of video. And I can't change the size through css because the player width and height are hardcoded in the generated HTML.
So is there a way to:
1) Make a thumbnail automatically from a video (like Multithumb does with images)
2) Specify two different sizes for the video based on the page
3) override the hardcoded css width and height so I can set them myself using css
Any of these options would be OK for what I need. Any help would be greatly appreciated.
Please Log in or Create an account to join the conversation.
- renklint
-
- Offline
- New Member
Less
More
- Posts: 2
12 years 11 months ago #48724
by renklint
This would be a good option if you want to use allvideos in a responsive layout (I do).
Replied by renklint on topic Re: Thumbnail or two different sizes for same video
3) override the hardcoded css width and height so I can set them myself using css
This would be a good option if you want to use allvideos in a responsive layout (I do).
Please Log in or Create an account to join the conversation.
- renklint
-
- Offline
- New Member
Less
More
- Posts: 2
12 years 11 months ago #48725
by renklint
Replied by renklint on topic Re: Thumbnail or two different sizes for same video
Found info about overriding css here: www.joomlaworks.net/content/view/35/41/
In the Classic folder described in the link above I changed default.php to use % instead of px.
But in /plugins/content/jw_allvideos/jw_allvideos/includes/sources.php AllVideos will send maxwidth in pixels to Soundcloud. Don't know much about overriding, so for now I'm hacking that file and simply deleting maxwidth.
But it would be very nice to be able to use percentages instead of pixels.
The html5 player from SoundCloud resizes perfectly on my responsive site with those changes.
http://xn--villbergakren-rmb.se/
In the Classic folder described in the link above I changed default.php to use % instead of px.
But in /plugins/content/jw_allvideos/jw_allvideos/includes/sources.php AllVideos will send maxwidth in pixels to Soundcloud. Don't know much about overriding, so for now I'm hacking that file and simply deleting maxwidth.
But it would be very nice to be able to use percentages instead of pixels.
The html5 player from SoundCloud resizes perfectly on my responsive site with those changes.
http://xn--villbergakren-rmb.se/
Please Log in or Create an account to join the conversation.
- JDevise
-
- Offline
- Junior Member
12 years 7 months ago #48726
by JDevise
What it's mean ?
Replied by JDevise on topic Re: Thumbnail or two different sizes for same video
And I can't change the size through css because the player width and height are hardcoded in the generated HTML
What it's mean ?
Please Log in or Create an account to join the conversation.