Sign In  |  Cart  |  Join Now

Aspect Ratio Change in Video Player

May 14, 2009
Hello,

I'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!

FLV / Video player block with Flowplayer included

Jun 06, 2009 at 10:19 AM
This block use the open source Flowplayer to play .flv files. See screenshot. You have height and width detected, and fullscreen option.

Installation:
1) Unpack attached video.zip to yourdomain.com/blocks/video
2) Add "Video Player" block to page

Have fun :)
 

remove core player

Jun 07, 2009 at 4:04 AM
Joshua published an alternative player a while ago too..

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.
 

for those who don't want their videos to autoplay

Jun 10, 2009 at 9:20 PM
Thanks Griebel! sizing actually works now.

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.
 

perfect!

Oct 03, 2009 at 8:33 PM
Thanks to both Remo and mario.
I was having the same aspect ratio issues and both of your solutions did exactly what I wanted.
Can't thank you guys enough!
 

checkbox to turn autoplay on or off

Oct 08, 2009 at 11:27 AM
mario
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.
 

MPEG-4

Nov 03, 2009 at 10:46 PM
Any ideas on getting mpeg4 to play or show.
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.
 

re: checkbox to turn autoplay on or off

Nov 12, 2009 at 12:44 PM
thanks for the update edbeeny. i'l check it out :)
 

re: checkbox to turn autoplay on or off

Apr 21, 2010 at 6:23 AM
Hi 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
 

re: FLV / Video player block with Flowplayer included

Apr 19, 2010 at 3:22 PM
Any way to get a replay button at the end of the video? Also, the circle that's supposed to follow the line/length of the stream is sitting at the beginning, so you can't fast forward/rewind. Any way to fix that?

Thanks so much for this!
 

re: FLV / Video player block with Flowplayer included

Apr 19, 2010 at 5:30 PM
[SOLVED]

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
 

re: Aspect Ratio Change in Video Player

Nov 12, 2009 at 9:52 PM
Thanks for this useful thread.

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
 

re: Aspect Ratio Change in Video Player

Nov 22, 2009 at 1:10 PM
Me too. I installed the updates listed eariler in this post and while any one instance of the player works perfectly with no autoplay, any second or subsequent players I add to the same page just don't show up at all.
 

re: Video player fix doesn't work for me?

Mar 18, 2010 at 1:31 AM
I can't get the above methods to work. I'm using 5.4.0RC1. Compatibility issue?

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.
 

re: Video player fix doesn't work for me?

May 28, 2010 at 12:06 AM
I have the same problem, I think it needs an update to work on the most current Concrete5
 

Making a Splash image for the video

Apr 01, 2010 at 7:35 AM
Hi,

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>
 

Player id issue

Apr 15, 2010 at 3:33 AM
I had this problem too.
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.
 

re: Making a Splash image for the video

Jun 18, 2010 at 1:46 PM
Hi mikeb, any way to add an individual splash image for each video. I'm having website with a lot of videos too, and I would like a thumbnail image/splash image for each specific video. Any ideas??
 
 

Hot Spots...

ForumsPartners | Contact | Blog

Search site