Aspect Ratio Change in Video Player
PermalinkI'm just starting to work with Concrete5, and learning as I go. I've never designed a website before, so I'm completely new to this game. I'm having a good time with it, but I'm stumped as to one thing lately: I've been able to upload video to my newly created website, most of which are native 16x9 HD dimensions. However, one of my videos is native 4x3, uploaded to it's own page, and it's being stretched to 16x9 dimensions. Changing the dimensions in the video player block itself does nothing. This is 5.3.1.1. Any help or insight you can give would be greatly appreciated. Thanks! in advance!
I think the player in the core should be replaced..
flowplayer doesn't seem to be a good choice since it's published under GPL which makes it impossible to ship with the core, but fine if you install it on your own.
I generally don't like my videos all autoplaying if I have more than one on the page. This attached file modifies your attached view.php so that all players (flv,wmv,mpg,mov, etc.) shouldn't autoplay.
I was having the same aspect ratio issues and both of your solutions did exactly what I wanted.
Can't thank you guys enough!
Thanks for your post.
I have changed the script a bit so when you select the video and set the size you can select if you want it to auto start or not.
Find attached.
add the files to the griebel's download earlier.
Nothing shows up on the page after I have added the video block with an mpeg4 video and I'm not too sure why. I'm on Version 5.3.2 and using the latest update to the flow video player by edbeeny.
Would you please be able to indicate what code is required to disable the the auto play function in the standard video player?
Thanks
Thanks so much for this!
I had to add the following in two locations in addition to id="player<?=$bID?>">:
change the following :
flowplayer("player", "<?=$this->getBlockU
to :
flowplayer("player<?=$bID?>", "<?=$this->getBlockU
now, if I have multiple flv videos, it appears to work.
--------------------------------------
by adding id="player<?=$bID?>"> is not helping.
any other ideas??
i modified that in the view.php file in cms/blocks/video
The Flowplayer is a lot more attractive than the core player, however, I'm having trouble getting more than one clip on a page.
Being new to C5 I may have followed the instructions wrongly, I did the following:
Downloaded both Griebel's and Edbeeny's attachments
Copied the contents of Edbeeny's zip into Griebel's video folder
Replaced the core video folder with the new combined video folder.
Now, when I add a second video to a page I just get a black block of the correct looking size.
Any clues?
3D Hack
Should I put griebel's files in /blocks/video, or /concrete/blocks/video? Based on the description, it sounds like /blocks/video.
If I put it in either or both directories my page renders fine except for the video block, which is sized properly, but spews out the following.
getFileObject(); $rel_file_path=$file->getRelativePath(); ?>
width); $vHeight=intval($controller->height); if ($c->isEditMode()) { ?>
getFilename()).'
'; if( strstr(strtolower($file->getFilename()),'.flv') ){ if($controller->autoplay == "true") { ?>
getFilename()),'.wmv') || strstr(strtolower($file->getFilename()),'.mpg') || strstr(strtolower($file->getFilename()),'.mpeg') ){ ?>getFilename()),'.avi') ){ ?> getFilename()),'.mov') || strstr(strtolower($file->getFilename()),'.qt') ){ ?>
It looks like a pathing issue? Suggestions? Thanks.
great contributions thanks. I have about 50 videos to put on a client website I'm building with C5 and these updates to the video player are fantastic.
Create a splash image by including an img tag after the anchor href in the view file. This image can be a 'branded' style player just point the img ref to an image of your choice as below:
<a href="<?=$rel_file_path?>" style="display:block;width:<?=$controller->width?>px;height:<?=$controller->height?>px" id="player">
// Image added here between anchor tags
<img src="mysplashimage.png" alt="My player" />
</a>
The issue I had is the player id's must be unique on the page
To resolve this issue I changed
id="player"> to
id="player<?=$bID?>">
This makes it unique and it should work.
Installation:
1) Unpack attached video.zip to yourdomain.com/blocks/video
2) Add "Video Player" block to page
Have fun :)