View Full Version : Need help with embed and flash player
gaydemon
05-08-2009, 02:19 PM
Any ideas how I can stop a embedded flash video clip from autoplaying. I've tried all kinds of extra options and flashvars in the code, but no matter what I try it keeps starting to play as soon as the page its on is loaded.
For example:
<embed src='http://www.queerpixels.com/player/player.swf' width='490' height='430' allowscriptaccess='always' allowfullscreen='true' allowtransparency='true' wmode='transparent' flashvars='xml=http://www.queerpixels.com/player/data/configs/bangbangboys.xml&videoUrl=http://www.queerpixels.com/videos/flv/3/12513-2120.flv&autoplay=false' /></embed>
Can autoplay be hardcoded into the player?
Should not a flashvar option over ride it.
Or is that the option to switch it off could be named something else? (ive tried with play=false, autoPlay = false, autostart = false etc..
Any ideas? Already wasted hours on this.. :bang:
pocoloco
05-08-2009, 02:24 PM
Try to add autostart="false" OR autostart="0" to the code
gaydemon
05-08-2009, 02:39 PM
No, doesnt seem to work either. :(
Try to add autostart="false" OR autostart="0" to the code
rawTOP
05-08-2009, 02:42 PM
Use a player + FLVs and you'll have more control. The problem is the swf has autorun hard coded into it.
pocoloco
05-08-2009, 02:50 PM
Ok, you might want to try this wizzard and set your own settings: http://www.longtailvideo.com/support/jw-player-setup-wizard
FisHY
05-08-2009, 03:43 PM
Do you know what player you are using? Might have to go to their site and ask.
Actually since you edited the player before I believe you have .fla file. You can edit autoplay option there and regenerate the player.
I was experiencing the same thing a while back. I fixed it by having the swf read an outside flv.
gaydemon
05-09-2009, 12:47 AM
It's my own player and hosted FLV clip (QueerPixels is my site). So i guess it might be hardcoded and I got to get the player redone then? I did try and dig around in the source file for the Shockwave player but its A LOT of files and not easy to find the string that might be causing the issue.
Use a player + FLVs and you'll have more control. The problem is the swf has autorun hard coded into it.
Do you know what player you are using? Might have to go to their site and ask.
Actually since you edited the player before I believe you have .fla file. You can edit autoplay option there and regenerate the player.
gaydemon
05-09-2009, 12:47 AM
I dont understand this one? What you mean read an outside flv?
I was experiencing the same thing a while back. I fixed it by having the swf read an outside flv.
rawTOP
05-09-2009, 05:38 AM
I dont understand this one? What you mean read an outside flv?
With Flash the video can be embedded in a swf or it can be in an flv that's used by a swf. In the latter case the swf is the player and the flv the video. The player can be hard coded to use only one flv or it can be a generic player that plays any flv you tell it to. When it's hard coded then it typically plays an flv that's in the same directory and has the same file name, just an flv extension rather than a swf extension.
I'm a big fan of having the flv separate and using a generic player. With that approach you can reskin all your videos pretty easily, or change to a completely different player if you want to...
Michael B
05-09-2009, 06:12 AM
Bjorn,
without being able to see the action script it is difficult to give you exact advice on this. The first thing i would check is that in the first frame is there a stop(); statement??
are you embedding this as an object to the page?
if you use something like dream weaver and insert a flash video there is a part in that that says rewind that should be clicked if you are doing that. as you can see without seeing exactly what you are doing its hard to give exact advice. also if you are embedding into a custom flash player then the others are right it is in the action scripting part of your .fla and without seeing the action script it is hard to see where it is going wrong (need more info).
Michael B
Michael B
05-09-2009, 06:15 AM
also is this a php web page?
i notice ampersands and that can confuse the parameters sometimes
Any ideas how I can stop a embedded flash video clip from autoplaying. I've tried all kinds of extra options and flashvars in the code, but no matter what I try it keeps starting to play as soon as the page its on is loaded.
For example:
<embed src='http://www.queerpixels.com/player/player.swf' width='490' height='430' allowscriptaccess='always' allowfullscreen='true' allowtransparency='true' wmode='transparent' flashvars='xml=http://www.queerpixels.com/player/data/configs/bangbangboys.xml&videoUrl=http://www.queerpixels.com/videos/flv/3/12513-2120.flv&autoplay=false' /></embed>
Can autoplay be hardcoded into the player?
Should not a flashvar option over ride it.
Or is that the option to switch it off could be named something else? (ive tried with play=false, autoPlay = false, autostart = false etc..
Any ideas? Already wasted hours on this.. :bang:
gaydemon
05-09-2009, 09:05 AM
Thanks found it! I've managed to make so it does not start playing.. however its still downloading the file which I don't want.
Back to the programmers, getting to complex for me to figure out.
Thanks for the help though!