Video Player Autostart

Permalink
Hello All,

I've been trying to get the video player to work, with moderate success...I fixed the aspect ratio in the player, which was always showing hd dimensions, but the one simple annoying thing i can't seem to find is how to stop the autostart? I tried checking out the site of the guy who made this player, but he has since removed any documentation for it. Parameters I tried in the embed code didn't seem to work.

ericb
 
jonathan replied on at Permalink Reply
i actually found a file called view.php in blocks/video/ that has a few variables called 'autostart' and 'autoloop' etc. that are set to 'true' near the end of the file.

toggling these values would probably fix the autostart problem. only thing is, i upgraded to ubuntu 9.04 last night and now my system won't even recognize the player... and i tried viewing the player on a vista computer using google chrome and it kept spitting error messages at me.

so i resorted to imbedding a vimeo video. works great. all i really wanted was a way around that annoying youtube watermark.

jonathan
racerza replied on at Permalink Reply
thanks for the tip about editing view.php - it would however be nice to have this as one of the options when inserting a video, so that it can be different for every video. eg, i would like the video on my front page to autostart, but not all 10 on my video page.

-r
frz replied on at Permalink Reply
frz
if you stick this in feature requests, we'll remember it eventually.. its a good idea. ;)

http://www.concrete5.org/community/features...
Audiopusher replied on at Permalink Reply
Hi,

How did you manage to fix the aspect ratio settings in the player? I'm having this same issue, and have no idea where to start in terms of fixing it. It's annoying as I have demo reel content at various aspect ratios and they're getting stretched in bad ways...

Thanks!
ericb replied on at Permalink Reply
ericb
You need to modify the actionscript in the fla file for the actual video player (which is located in the concrete/blocks/video/src/ folder) and then re-export/replace the player(swf). I think that worked for me, I eventually gave up and created a new video block that uses the JWPlayer instead for various reasons (it is a better player, but not free for commercial use). Let me know if you can't figure out the action script and I'll try to help you further. You should only see one instance of it-

var video:Video = new Video();
video.attachNetStream(stream);
video.width = 640;
video.height = 360;
video.x = 70;
video.y = 0;
video_mc.addChild(video);


Change it to what you want or just try deleting it since you have many different sizes (i didn't experiment with deleting it).
Styves replied on at Permalink Reply
Styves
Would you summit to the author of JWPlayer, as it is specified in the terms and conditions, at this address:

http://www.longtailvideo.com/addons/submitregister.html...

Thanks.
Audiopusher replied on at Permalink Reply
Thank you, thank you, thank you!!!! :-)

It's much appreciated. I'll be on the fix in a couple of days. Out of town at the moment!
Jarno replied on at Permalink Reply
Jarno
Hello,

I'm trying to fix this autostart problem but it still keeps on playing automatically.

I've edited the view.php in blocks/video, autoplay and autostart are set to false.

I've tested the Flv's and they dont autoplay...

Does anyone have an idea?
mario replied on at Permalink Reply
mario
Griebel posted a good fix that works for me for playing flv's:

http://www.concrete5.org/index.php?cID=12580...

I posted a modified the video view.php there too so that other files like mov's don't autoplay one you get the player files into the the folder structure described below.

Put it into the root level -->blocks-->video to override the current settings in the core concrete/blocks/video folder.
Jarno replied on at Permalink Reply
Jarno
Hey Argie,

Thanks for the reply. I tested the player that Griebel posted and your view.php and it still won't work... Tested it also in combination with the original player.

For now I'm going to fix this on a less sophisticated way because the deadline is soon.

Thx!
enque replied on at Permalink Reply 1 Attachment
enque
You need to to tell the stream to pause in actionscript like this
stream.pause();

which can be added just below your the code for the width and height.
You will also need to make changes to the flash file by swapping the play and pause around.
Anyway I've attached the swf and source files with the changes made so you can use the videoPlayer.swf directly or change the aspect ratio and then use it.
You may also want to comment out the wmode(line 32) in view.php so you get a background.
Comment this out.
params.wmode="transparent";

and add your own BG color
params.bgcolor = "#CCCCCC";



Hope this helps.
drroller replied on at Permalink Reply
drroller
This post was really helpful, now how do we have it show a thumbnail instead of just a gray background?