This is a message.

AutoPlay - Ok.. I give up! Created Jun 5, 2009

This thread is solved

Views: 5536     Replies: 16     Last reply Jun 8, 2009  
You must login first before you can use this feature

LeeMahn

Posts: 9

Registered:
Jun 5, 2009

AutoPlay - Ok.. I give up!

Posted: Jun 5, 2009

I have tried every possible way I can think of to get the video NOT to autoplay. Either it won't load, or it loads and plays immediately.

Here's the code:



<object id="flowplayer" width="300" height="200" data="/media/flowplayer-3.1.1.swf"  
    type="application/x-shockwave-flash"> 
     
    <param name="movie" value="/swf/flowplayer-3.1.1.swf" />  
    <param name="allowfullscreen" value="true" /> 
     
    <param name="flashvars"  
        value="config={'clip':'http://www.feedmevideo.com/clips/paxton_tagged.flv','autoPlay':false}" /> 
</object>

What the *&$#$* am i doing wrong here?

TTAI

LeeMahn

Posts: 9

Registered:
Jun 5, 2009

» AutoPlay - Ok.. I give up!

Posted: Jun 6, 2009

Reply to: AutoPlay - Ok.. I give up!, from LeeFuller
Even tried this...



<param name="flashvars"  
    	value="config={"clip":{"http://www.feedmevideo.com/clips/":"Paxtons460.flv","autoPlay":false}}"


s_hustle

Posts: 2

Registered:
Dec 12, 2008

» » AutoPlay - Ok.. I give up!

Posted: Jun 6, 2009

Reply to: » AutoPlay - Ok.. I give up!, from LeeFuller
I'm having the same issue with version 3.1.1. Autoplay: false doesn't seem to work.

Christian Ebert
Flowplayer support

Posts: 3024

Registered:
May 27, 2008

» » AutoPlay - Ok.. I give up!

Posted: Jun 7, 2009

Reply to: » AutoPlay - Ok.. I give up!, from LeeFuller
It works if you are willing to use a splash image (might be nicer looking anyway):


<param name="flashvars"
  value="config={'playlist':['/splash.jpg',{'url':'/video.flv','autoPlay':false]}" />

Also take care to use either double quotes outside and single quotes inside config or vice versa.

Here is a small working sample.

LeeMahn

Posts: 9

Registered:
Jun 5, 2009

» » » AutoPlay - Ok.. I give up!

Posted: Jun 7, 2009

Reply to: » » AutoPlay - Ok.. I give up!, from blacktrash
Yeah.. I tried both double quotes inside with single out, and vice-versa.. didn't make any difference.

Will try this.. Thanks.

I'm assuming the EMBED variable is the same, only using EMBED syntax.

Thanks again -- will report back here.

LeeMahn

Posts: 9

Registered:
Jun 5, 2009

» » » AutoPlay - Ok.. I give up!

Posted: Jun 7, 2009

Reply to: » » AutoPlay - Ok.. I give up!, from blacktrash
Nope.. no dice.

Here's what I'm using for code:


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="460" height="259">
<param name="movie" value="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf" /> 
<param name="flashvars" 
 value="config={'playlist':['/media/Splash_Paxton.jpg',{'url':'/media/Paxtons460.flv','autoPlay':false]}" />

<!-- EMBED tag for Netscape Navigator 2.0+ and mozilla compatible browsers -->
<embed type="application/x-shockwave-flash" width="460" height="259" 
 src="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf"
 flashvars='config={'playlist':['/media/Splash_Paxton.jpg',{'url':'/media/Paxtons460.flv','autoPlay':false]}'/>
 

</object>

All I get is a big white box. I have confirmed (triple-checked) the existence of the files and their spelling.

Christian Ebert
Flowplayer support

Posts: 3024

Registered:
May 27, 2008

» » » » AutoPlay - this works

Posted: Jun 7, 2009

Reply to: » » » AutoPlay - Ok.. I give up!, from LeeFuller
  1. You mix absolute and local urls; use baseUrl for splash and video
  2. Your <embed> code is lacking a closing brace and is not quoted correctly

This works:


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="460"
  height="259"> 
  <param name="movie"
  value="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf" />
  <param name="flashvars"  
  value="config={'baseUrl':'http://dev.militarybrat.com/media','playlist':['Splash_Paxton.jpg',{'url':'Paxtons460.flv','autoPlay':false}]}"
   /> 
    
   <!-- EMBED tag for Netscape Navigator 2.0+ and mozilla compatible browsers
   --> 
 <embed type="application/x-shockwave-flash" width="460" height="259"  
  src="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf" 
  flashvars="config={'baseUrl':'http://dev.militarybrat.com/media','playlist':['Splash_Paxton.jpg',{'url':'Paxtons460.flv','autoPlay':false}]}"/> 
</object>

And here is the proof.

LeeMahn

Posts: 9

Registered:
Jun 5, 2009

» » » » » AutoPlay - this works

Posted: Jun 7, 2009

Reply to: » » » » AutoPlay - this works, from blacktrash
Actually, it doesn't work here. That's the odd part. I visited your link, and saw the video with no problem. Then I copied and pasted your code into my page, and I ended up with the player, but an error appeared

303: Failed to load a resource: Unable to load resources: Error #2035

I had changed nothing but copying and pasting your code. So, then I decided that things were a bit spread out, so I moved the movie and the splash jpg into a directory of their own, called "Paxton". So, I made changes to your code, and put in the code as you see here:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="460" 
  height="259">  
  <param name="movie" 
  value="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf" /> 
  <param name="flashvars"   
  value="config={'baseUrl':'http://dev.militarybrat.com/media','playlist':['/Paxton/Splash_Paxton.jpg',{'url':'/Paxton/Paxtons460.flv','autoPlay':false}]}" 
   />  
     
   <!-- EMBED tag for Netscape Navigator 2.0+ and mozilla compatible browsers 
   -->  
 <embed type="application/x-shockwave-flash" width="460" height="259"   
  src="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf"  
  flashvars="config={'baseUrl':'http://dev.militarybrat.com/media','playlist':['/Paxton/Splash_Paxton.jpg',{'url':'/Paxton/Paxtons460.flv','autoPlay':false}]}"/>  
</object> 
Still the same error. I did try removing the "/" in front of "Paxton" and also putting the "/" after "media" in the baseurl setting. Neither made a difference.

Here's what I have now.. and same error:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="460" 
  height="259">  
  <param name="movie" 
  value="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf" /> 
  <param name="flashvars"   
  value="config={'baseUrl':'http://dev.militarybrat.com/media/Paxton','playlist':['Splash_Paxton.jpg',{'url':'Paxtons460.flv','autoPlay':false}]}" 
   />  
     
   <!-- EMBED tag for Netscape Navigator 2.0+ and mozilla compatible browsers 
   -->  
 <embed type="application/x-shockwave-flash" width="460" height="259"   
  src="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf"  
  flashvars="config={'baseUrl':'http://dev.militarybrat.com/media/Paxton','playlist':['Splash_Paxton.jpg',{'url':'Paxtons460.flv','autoPlay':false}]}"/>  
</object>

Christian Ebert
Flowplayer support

Posts: 3024

Registered:
May 27, 2008

» » » » » » AutoPlay - this works

Posted: Jun 7, 2009

Reply to: » » » » » AutoPlay - this works, from LeeFuller
You got me confused ;-) Even though it worked I made a mistake in the code I gave you as baseUrl is a clip property, not a player property. It should have looked like this:


<param name="flashvars"    
value="config={'clip:{'baseUrl':'http://dev.militarybrat.com/media/Paxton'},'playlist':['Splash_Paxton.jpg',{'url':'Paxtons460.flv','autoPlay':false}]}"  
   />

Anyway, I don't know what you're doing at your end, but as your first question was about not autoPlay and without splash, I've got this simple setup working:


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="460"
  height="259"> 
  <param name="movie"
  value="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf" />
  <param name="flashvars"  
  value="config={'clip':{'url':'http://dev.militarybrat.com/media/Paxton/Paxtons460.flv','autoPlay':false}}" /> 
    
 <embed type="application/x-shockwave-flash" width="460" height="259"  
  src="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf" 
  flashvars="config={'clip':{'url':'http://dev.militarybrat.com/media/Paxton/Paxtons460.flv','autoPlay':false}}"/> 
</object>

As usual, here is the proof. At least, until you fiddle with the files on your end ...

LeeMahn

Posts: 9

Registered:
Jun 5, 2009

» » » » » » » AutoPlay - this works

Posted: Jun 8, 2009

Reply to: » » » » » » AutoPlay - this works, from blacktrash
Ok, so the video does not play on load now. That's great.. Thanks.

However, we now have a blank white screen with no splash image. So, is that not possible then? We can have one or the other.. but not both?

Thanks very much for all your help.

Christian Ebert
Flowplayer support

Posts: 3024

Registered:
May 27, 2008

» » » » » » » » AutoPlay - this works

Posted: Jun 8, 2009

Reply to: » » » » » » » AutoPlay - this works, from LeeFuller
Both (demo):


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="460"
  height="259"> 
  <param name="movie"
  value="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf" />
  <param name="flashvars"  
  value="config={'clip':{'url':'http://dev.militarybrat.com/media/Paxton/Paxtons460.flv','autoPlay':false}}" /> 
    
 <embed type="application/x-shockwave-flash" width="460" height="259"  
  src="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf" 
  flashvars="config={'clip':{'url':'http://dev.militarybrat.com/media/Paxton/Paxtons460.flv','autoPlay':false}}"/> 
</object>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="460"
  height="259"> 
  <param name="movie"
  value="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf" />
  <param name="flashvars"  
  value="config={'clip':{'baseUrl':'http://dev.militarybrat.com/media/Paxton'},'playlist':['Splash_Paxton.jpg',{'url':'Paxtons460.flv','autoPlay':false}]}" /> 
    
 <embed type="application/x-shockwave-flash" width="460" height="259"  
  src="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf" 
  flashvars="config={'clip':{'baseUrl':'http://dev.militarybrat.com/media/Paxton'},'playlist':['Splash_Paxton.jpg',{'url':'Paxtons460.flv','autoPlay':false}]}" /> 
</object>

Please start reading the docs.

LeeMahn

Posts: 9

Registered:
Jun 5, 2009

» » » » » » » » » AutoPlay - this works

Posted: Jun 8, 2009

Reply to: » » » » » » » » AutoPlay - this works, from blacktrash
I've read them.. over and over and over. Along with a couple others who I've asked. And we've all tried various things.

Interesting..

This works:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="460"
  height="259"> 
  <param name="movie"
  value="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf" />

  <param name="flashvars"  
  value="config={'clip':{'baseUrl':'http://dev.militarybrat.com/media/Paxton'},'playlist':['Splash_Paxton.jpg',{'url':'Paxtons460.flv','autoPlay':false}]}" /> 
    
 <embed type="application/x-shockwave-flash" width="460" height="259"  
  src="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf" 
  flashvars="config={'clip':{'baseUrl':'http://dev.militarybrat.com/media/Paxton'},'playlist':['Splash_Paxton.jpg',{'url':'Paxtons460.flv','autoPlay':false}]}" /> 
</object>
This does NOT:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="460" 
  height="259">  
  <param name="movie" 
  value="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf" /> 
  <param name="flashvars"   
  value="config={'clip':{'baseUrl':'http://dev.militarybrat.com/media/Paxton'},'playlist':['Splash_Paxton.jpg',{'url':'Paxtons460.flv','autoPlay':false}]}" />  
     
 <embed type="application/x-shockwave-flash" width="460" height="259"   
  src="http://dev.militarybrat.com/media/flowplayer-3.1.1.swf"  
  flashvars="config={'clip':{'baseUrl':'http://dev.militarybrat.com/media/Paxton'},'playlist':['Splash_Paxton.jpg',{'url':'Paxtons460.flv','autoPlay':false}]}" />  
</object>  

Odd.. wondering why the docs can't tell us why this is??

Christian Ebert
Flowplayer support

Posts: 3024

Registered:
May 27, 2008

» » » » » » » » » » AutoPlay - this works

Posted: Jun 8, 2009

Reply to: » » » » » » » » » AutoPlay - this works, from LeeFuller
Heh, are you serious? This is twice the same code except for one more empty line (yes, I copied and pasted and diffed).

Perhaps your code editor does strange things, like inserting a byte order mark (BOM) at the wrong place, or ... I don't know. Or you are just make a fool of me ;-)

LeeMahn

Posts: 9

Registered:
Jun 5, 2009

» » » » » » » » » » » AutoPlay - this works

Posted: Jun 8, 2009

Reply to: » » » » » » » » » » AutoPlay - this works, from blacktrash
Nope.. I thought something similar. However, it's simply Dreamweaver. And so I then I copied and pasted the strict code from DW into a text document. Renamed that as the file.. and got the exact same result.

So.. the issue is.. the "flashvars" line MUST be on a line by itself.. right? Is that what we've come down to?

Christian Ebert
Flowplayer support

Posts: 3024

Registered:
May 27, 2008

» » » » » » » » » » » » AutoPlay - this works

Posted: Jun 8, 2009

Reply to: » » » » » » » » » » » AutoPlay - this works, from LeeFuller
If by "on a line by itself" you mean it must have an empty line before and after, then no, you can look at the source of my sample where this is not the case; I've updated it so that the objects do not contain any empty lines. Note that by copying and pasting from a GUI still strange things might happen with hidden characters etc. Graphical interfaces seem to make things easier but when something goes wrong you grope blindly around in the dark.

LeeMahn

Posts: 9

Registered:
Jun 5, 2009

» » » » » » » » » » » » » AutoPlay - this works

Posted: Jun 8, 2009

Reply to: » » » » » » » » » » » » AutoPlay - this works, from blacktrash
Actually, I didn't copy from the GUI. I opened the file itself, manually, then copied and put that in another text file. Then saved and renamed that.

So I'm stumped. It's very odd. It's all WAY too difficult to deal with, in my opinion. But.. it's been a great exercise.

I am hoping to create my own, embeddable, flash player solution that can be done solely from the Flash program itself.. one that allows this all to be done by simply creating the file in Flash and publishing the SWF.

But thank you so much for all your help and work!

Christian Ebert
Flowplayer support

Posts: 3024

Registered:
May 27, 2008

» » » » » » » » » » » » » » AutoPlay - this works

Posted: Jun 8, 2009

Reply to: » » » » » » » » » » » » » AutoPlay - this works, from LeeFuller
Hm, you'd still have to actually embed your flash object.

flowplayer-3.1.1 also allows you to load the player config from an external file. That eases things a lot, as you can share 1 configuration with several players ... much less typing.

I have object players on my pages as fallback for users that have JavaScript turned off; works fine.

Ok, let's consider this solved, at least from the flowplayer point of view ;-)