Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Spinning wheel - have to click twice to start video (stop/start)


I am testing your code in a wordpress implementation. No matter what I do, I have to start, then stop, then start the videos (of all formats- FLV, F4V, M4V) to get them to start. They play fine after that, but I have to do this on every movie.

I tried autostart it starts with the spinning wheel. I stop it with a click, then click play again and they work. Any ideas?

Here is a sample page: http://tinyurl.com/36fvfzo

59 Community Answers

Andrew

JW Player Support Agent  
-1 rated :

I’m having the same problem – only I have two embedded videos on the page – one plays on the 1st click, and the other you have to click once, get the spinning wheel, then if you click pause, and play again, it loads correctly.

The embed code for the two videos is exactly the same except for the file path, the only difference I can see is that the correctly playing video is a FLV, and the incorrectly playing video is a F4V.

Here’s the generated embed code, with the site URL’s replaced with *

<p>	 <div id="jwplayer-2-div" name="jwplayer-2-div">
<div id="jwplayer-2" class=" swfobject"></div>
</div>
<script type="text/javascript">

               swfobject.embedSWF("http://***/wp-content/plugins/jw-player-plugin-for-wordpress/player.swf", "jwplayer-2", "540", "350", "9", "/expressinstall.swf", {"width":"540", "height":"350", "file":"/media/WattSavers2.f4v", "volume":"100", "config":"http://***/wp-content/plugins/jw-player-plugin-for-wordpress/configs/Custom Player.xml"}, {"width":"520", "height":"348", "allowfullscreen":"true", "allowscriptaccess":"always", "wmode":"transparent", "version":"9", "type":"movie", "bgcolor":"#FFFFFF", "express_redirect":"/expressinstall.swf", "class":""}, {"id":"jwplayer-2", "name":"jwplayer-2"});

              </script>	</p>
<h3 >Educators</h3>
<p>	 <div id="jwplayer-4-div" name="jwplayer-4-div">
<div id="jwplayer-4" class=" swfobject"></div>
</div>
<script type="text/javascript">

               swfobject.embedSWF("http://***/wp-content/plugins/jw-player-plugin-for-wordpress/player.swf", "jwplayer-4", "540", "350", "9", "/expressinstall.swf", {"width":"540", "height":"350", "file":"/media/imatteractionteam.flv", "volume":"100", "config":"http://***/wp-content/plugins/jw-player-plugin-for-wordpress/configs/Custom Player.xml"}, {"width":"520", "height":"348", "allowfullscreen":"true", "allowscriptaccess":"always", "wmode":"transparent", "version":"9", "type":"movie", "bgcolor":"#FFFFFF", "express_redirect":"/expressinstall.swf", "class":""}, {"id":"jwplayer-4", "name":"jwplayer-4"});

              </script></p>



The first video requires the 3 clicks, the bottom plays fine.  I'm going to try and replace the F4V with a FLV and see if that fixes anything. 

Andrew

JW Player Support Agent  
0 rated :

Yep – that’s an affirmative. After replacing the .f4v with a .flv – the problem went away.

Strange.

Ethan Feldman

JW Player Support Agent  
0 rated :

Hi Maurice,

Your video plays perfectly for me in Firefox / XP. No double clicking required.

What are you using?

Best,
-Ethan

JW Player

User  
0 rated :

I am having the same problem in Firefox and in IE8 http://motionmediasolutions.com/client/lsypo/index.html

You have to click 2 times to get it to play.

Any resolution yet. I am using flv files

Ethan Feldman

JW Player Support Agent  
0 rated :

@CJ – Try to run this application your FLVs – http://www.buraks.com/flvmdi/

Darjan

JW Player Support Agent  
0 rated :

CJ,

I am not able to replicate the issue. When I click it once it plays for me.

I do, however, get the following error in firebug upon entering your site: “NetworkError: 404 Not Found – http://www.motionmediasolutions.com/crossdomain.xml”
crossdomain.xml

Best Regards,

Darjan

Andrew

JW Player Support Agent  
0 rated :

An update to my issue – I installed the JWplayer plugin on another wordpress site, and embedded the exact same videos using the exact same embed code. Now on the new Wordpress site (in Safari 4.05 and in Firefox 3.6.3 – both in OSX) the videos require two clicks to play.

The new video page is at: http://everywattmatters.com/video/

I noticed that when I pull up Safari’s web inspector and look at resources, when I hit play the 1st time on one of the videos it starts loading the entire .flv – just not playing it.

Any suggestions?

Ethan Feldman

JW Player Support Agent  
0 rated :

Hi Andrew,

I just checked your video on Windows Firefox and it played fine.

I suggest running this application on your flv – http://www.buraks.com/flvmdi/

Best,
-Ethan

JW Player

User  
0 rated :

Easy solution. Just reload abode flash player from adobes website. That helped me. Installing Photoshop CS5 did this problem for me. It updated flash player and installed some media players etc. Try this solution!

Hope this helped.

JW Player

User  
0 rated :

hey javi.. I think that is the issue.. But i tried installed flash again and it didnt help the issue for me..

JW Player

User  
0 rated :

Had this problem too - definately a bug,

Found a workaround, after the SWFobject code i.e.

var so = new SWFObject('player.swf','ply','640','360','10','#000000');
....
so.write('video');

put this in:

var player;
function playerReady(obj) { player = $(obj['id']); player.addControllerListener( "PLAY", "fix_jwplayer" ) };
function fix_jwplayer() { player.sendEvent( "PLAY" ); player.sendEvent( "PLAY" ) };


really unpretty hack, but it seems to work, it basically waits for the player to load, and then adds a listener to check if the play button has been pressed. it then pauses, and replays it - which emulates what we are having to do manually - i.e. click twice

JW Player

User  
0 rated :

I agree, from what I can see its a bug and I too have to click twice. All my software is the latest

Above hack did not work for me howvever

Ethan Feldman

JW Player Support Agent  
0 rated :

@DavidE – Can you provide a link to where you are running this?

JW Player

User  
0 rated :

Hi, Ethan,

I'm having this problem also. Works fine in IE8 but not in FireFox 3.6.3 with Flash 10.1.52.14. With autoplay enabled and whether using a playlist or not, the preloader spins until I click pause/play. This happens with either F4V or FLV, variable or constant bitrates. I applie flvmdi to my FLV video, but no change. BUT... if I add a short FLV from your site to the playlist, it kickstarts the other file and autorun works. Weird.

Here are the samples:

http://www.tvpos.com/autoplay/autoplay1.htm - F4V vbr & video.flv: Must pause/play
http://www.tvpos.com/autoplay/autoplay2.htm - F4V cbr & video.flv: Must pause/play
http://www.tvpos.com/autoplay/autoplay3.htm - FLV cbr & video.flv: Must pause/play
http://www.tvpos.com/autoplay/autoplay4.htm - video.flv & F4V vbr: Works

I can't see what is different about video.flv that would cause it to behave differently.

Ethan Feldman

JW Player Support Agent  
0 rated :

Hi, Can you clear your cache? I tested out all of the links, and they allw ork for me. I have the same exact configuration you are using. I am using XP.

JW Player

User  
0 rated :

Yes, cache cleared and same-same. Maybe one of the installed plugins is interfering? I'll try disabling them.

Ethan Feldman

JW Player Support Agent  
0 rated :

That is possible, but note, it is working for me.

JW Player

User  
0 rated :

OK, works now. I disabled most of my extensions/plugins and restarted FF, when the page went to load it asked to install the Flash player (the same version I had) and now it works with all examples. Even after reenabling the extensions one by one, it still works.

Thanks!

Ethan Feldman

JW Player Support Agent  
0 rated :

NP!

JW Player

User  
0 rated :

BTW, the first two videos at http://everywattmatters.com/video/ weren't working for me before, but are now after the above procedure! Some kinda wonky plug-in interaction, I suppose.

Ethan Feldman

JW Player Support Agent  
0 rated :

What plugins were you running?

JW Player

User  
0 rated :

Adobe DLM, RoboForm, CacheViewer, Download Statusbar, FoxLingo, Google Toolbar, SoThink Web Video Downloader, and a few others that I did not disable. These are all reenabled and the player still works.

Ethan Feldman

JW Player Support Agent  
0 rated :

Thank you.

JW Player

User  
0 rated :

I like the player, but as someone who paid for a license, I'm pretty unhappy with this response.

Imagine the use case: a visitor to your site is unable to play videos, and .... we're supposed to tell them to go through a bunch of convoluted steps because JW Player can't be bothered to fix bugs in their player?

There are a number of other sites that play videos which work just fine after installing Photoshop CS5.

This is a non-solution.

Fix your player!

Ethan Feldman

JW Player Support Agent  
0 rated :

Hi Josh,

I would love to see what issues you are having with the player, and help you out. Please provide a link to where you are running the player, with the issues, and I will help you solve them, thanks.

Best,
-Ethan

JW Player

User  
0 rated :

I'm having the same issue. Everything was fine but suddenly my videos stopped playing automatically and I only see a spinning wheel, then I have to click twice to get the videos playing. I converted my videos to every possible different formats but no luck.

I tried QT Index Swapper 2 but it won't convert my videos since my Atom Moov is in the correct position.

I didn't tried flvmdi cuz I'm a Mac user.

I did upgrade to CS5 as well recently. I'm on a Mac OS 10.6. Safari 5 and Firefox 3.6.3 (having the same issue on both)

I'm in the middle of a project. I need HELP!

Ethan Feldman

JW Player Support Agent  
0 rated :

Hi Joe,

Are you using Flash Player 10.1? Also, can you provide a link to where you are running this?

Thanks,
-Ethan

JW Player

User  
0 rated :

Thanks a lot DAnny since there is no fix yet on this bug this workaround works great and the users can't notice a difference!
Appreciated!

JW Player

User  
1 rated :

Now i'm confused!!! It worked and doesn't seem to work anymore now!!! It still works from within my CMS, but won't work from other browsers unless you are logged as admin in the CMS, strange!

JW Player

User  
0 rated :

Ethan-

I don't think I can share URLs since the project is not launched yet but my Flash player's version is "MAC 10,1,52,15"

For now DAnny's solution worked for me but I had to change the flash version to 10 as in DAnny's sample code, otherwise it didn't work.

Thanks, Joe

JW Player

User  
0 rated :

DAnny's solution seemed work for me 10 min ago but now it's not working anymore on my machine and other machines. I didn't make any changes. Strange.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Joe M, the issues with Flash 10.1 will be fixed in 5.3, if you use the 5.0 on player for the time being, the 10.1 issues will be gone, it appears to only affect 5.1 and 5.2, also if you add a random # to the end of your file, as in file=video.mp4?random=12345, it should work for Flash 10.1

JW Player

User  
0 rated :

Hi Ethan,
I downgraded the player to 5.0 and it looks working properly. Thanks!!!
Joe

Ethan Feldman

JW Player Support Agent  
0 rated :

Np!

JW Player

User  
0 rated :

Stepping in super late, but we've found that the metadata event is not being received in 10.1.52.14. Trying to hack together a method to determine duration in an FLV without it.

-jb

JW Player

User  
0 rated :

I am having this problem as well - the loading graphic just spins when a video is selected or set to autoplay. But, I just noticed that if I set <jwplayer:provider>html</jwplayer:provider> in my playlist (XML) it seems to work again.

JW Player

User  
0 rated :

Update on previous post: the progress bar works again also. But, when the video reaches the end, the progress bar is positioned a bit before the end, then the spinning wheel returns and it does not advance to the next video. Autostart has no effect on this. On a single video file, it seems to work properly.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Jeffery – Do you have a link?

@DavyH – Same, Do you have a link?

JW Player

User  
0 rated :

I also have this problem. Moreover it seems there is just no reliable way to get a video to autostart. I've tried implementing a weird workaround for it and may continue to investigate dynamic creation of the video to see if that helps, but here's the link to test:
http://www2.rohde-schwarz.com/en/products/test_and_measurement/industries/aerospace_and_defense/test_and_measurement_instruments/spectrum_signal_analyzers/FSVR.html

JW Player

User  
0 rated :

I guess my workaround for now is to call the player start thing three times, I must do this since the playerReady function can be called even though the player is not ready to accept the play command:
bc.. setTimeout(function() { player.sendEvent('PLAY'); }, 400);
setTimeout(function() { player.sendEvent('PLAY'); }, 600);
setTimeout(function() { player.sendEvent('PLAY'); }, 800);


Since the playerReady function doesn't work, I've also implemented a workaround for that. The problem with relying on Player ready is that it is usually called when the video is first loaded onto the page. However if you hide the player then show it again, I've found that FF will call the playerReady method again while IE does not reliably. Thus I only allow playerReady to be called once to ensure consistancy and use another function thereafter. It's a terrible solution to an absurd problem, but I hope it helps someone else out there!

In my case, I'm going to continue to play around with the code to see if perhaps I can only load the player when I really want it to play or something.

Ethan Feldman

JW Player Support Agent  
0 rated :

@CharlieRS – You have – ‘autostart’: ‘false’,

If you set it to true, shouldn’t that work?

JW Player

User  
0 rated :

Unfortunately it does not. The problem is that because the instance is created then hidden. The audio will play in the background with that setting true. In addition, the autostart did not work reliably for us in IE during testing. Rather, tt incured the aforementioned eternal loading wheel of doom (Can I coin that term?). Thus I had to hack away another solution. Effectively I replaced autostart: true with the code I posted above to help IE along.

Ethan Feldman

JW Player Support Agent  
0 rated :

Why is the instance hidden?

JW Player

User  
0 rated :

Because we want to load the video for the first time a user visits the page. Thereafter, we hide the video and only show it to people if they click on a picture.

As many problems as the javascript API have cause me though, I think this disgresses from the original posters topic. There are two seperate problems. 1) InstanceReady firing doesn't work properly. (I should be able to send the play command right after instance ready correct?) and 2) when playing a video in IE, it will sometimes not load until you pause and play the video again.

Possibly related bugs:
http://developer.longtailvideo.com/trac/ticket/879
http://developer.longtailvideo.com/trac/ticket/818 (This was part of our problem, but appears to be fixed in 5.2)

I just noticed we still had 5.1, so I've upgraded to 5.2 and will try to fix some things up now and see if I can't get a better solution working. I think the problem of showing and hiding the player will persist though.

JW Player

User  
0 rated :

My described problem still persists in 5.2, when sending the play command (or clicking play for first time) it usually shows the loading wheel forever in IE. Hrmmph. I don't get it.

JW Player

User  
0 rated :

I, too, am experiencing this issue, however, mine is sporadic (not every time) and it may take more than a second click to actually start the video. There are several videos on the following page and I can usually produce the error on the first couple of videos I try to view.

http://www.containerstore.com/videos/index.htm

The error, specifically, is:

1) Click the video (or the play button in the control bar).
-> The progress indicator will display briefly and then stop. The poster is re-displayed.
2) Clicking another X number of times and the video will eventually start.

Note, I have tried each of the workarounds noted in this forum, all to no avail.
* Added a random number to the .swf and the .flv - there was no change in behavior.
* Tried FLV MetaData Injector on one of the videos (the Grid-It Organizer) and I can still produce the error with that video.
* I do not want the videos to auto play so playerReady() fix is not an option.

Note, I am running Firefox 3.6.6, Flash 10.1.85.3
I am using JW Player 5.1, embedded via SWFObject. All videos are .flv.

One further note, Ethan mentioned that this issue is fixed with 5.3. In my development environment, I have upgraded to JW Player 5.3 and have converted the pages to use JW Embedder and am still seeing the same behavior.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Chris Romack – I am using Firefox 3.6.10, Win XP, Flash 10.1, and I cannot replicate this issue.

JW Player

User  
0 rated :

@Ethan - That is not a surprise based on your previous responses. Although the length of this page seems to point to the existence of some sort of issue?

With JW Player 5.1 and SWFObject, adding "provider=http" to the flashvars appears to have resolved the issue.

With JW Player 5.3 and JW Embedder, it does not resolve the issue.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Chris – Where are you using the 5.3 player? You should be able to specify the provider as well, with the new embedding method.

JW Player

User  
0 rated :

It is in a development environment, so unfortunately I can not post a link. I tried specifying a provider, but it did not fix the issue. Here is my current embed code:

bc.. jwplayer("videocontainer").setup({
flashplayer: "/swf/jwplayer/5.3/player.swf?random="+(new Date()).getTime(),
controlbar: "bottom",
stretching: "fill",
provider: "http"
});



If I switch back to SWFObject for the embedding (with the added provider parameter), the issue is resolved. I noticed that the JW player creates an <object> tag versus the <embed> created by SWFObject so it must be differences in behavior between the two? I would love to use the new embedder, but obviously can't until I figure out what's going on.

JW Player

User  
0 rated :

Ethan, disregard my last post. Specifying the "provider" does fix the "start, then stop" behavior. When you click a video link in our library, the video is updated via the load() method, so I also need to specify the provider then.

bc.. jwplayer("videocontainer").load({
file: videoUrl,
image: previewImageUrl,
provider: "http"
});



Everything appears to be working correctly now. Thanks.

Ethan Feldman

JW Player Support Agent  
0 rated :

Where is the “file” variable here? Please put up a test page…

JW Player

User  
0 rated :

I have the new beta html5 jwplayer5 working at www.steffansoule.com/video and in IE8, I must click 3 times on the video screen (not the control bar) to get it to go from one to another to a third state. In this third state, it plays.

Three clicks for IE

One click for other browsers (FFox and iPad safari)

It is sad and unfortunate because when I read this post string I see that it is not worth messing with the solution. (I tried many things - even the .htaccess idea above.) But it is worth telling you all that obviously we can not have this, and JW team - I am sure - will fix it. How will I know when it is fixed?

-Best, -ss

Ethan Feldman

JW Player Support Agent  
0 rated :

@steffan – You are using the HTML5 Beta here, which is not deprecated. You need to use the new 5.3 player (which includes HTML5 support). Download it here – http://www.longtailvideo.com/players/jw-flv-player/

JW Player

User  
0 rated :

Hi Ethan -

I'm experiencing similar problems with JW. I am viewing videos that were sent to me in JW Player and no matter what I use, i.e. IE8, Chrome, Firefox, the video will start okay, but will eventually show the "spinning wheel". The wheel never stops. I usually come back to it later or another day, but at that point, I have to start the video all over again.

Note - I am not creating videos, just trying to view them. So I cannot give you all of the previous info (embedded codes) as was provided in the posts above.

Very frustrating - please help.

Ethan Feldman

JW Player Support Agent  
0 rated :

@cheryl – Please provide a link.

JW Player

User  
0 rated :

Hi,
This could be a weird issue with FF and has a bugzilla entry: https://bugzilla.mozilla.org/show_bug.cgi?id=600006

It has to do with the Content-Length header not being served by the server and the double click only occurred with FLV video's on my end. MP4 video's did not play at all, until I enabled the Content-Length header.
If all else fails, investigate this possibility. It should only occur on Windows using a Firefox browser.

@ethan: I've seen a few topics circling around this bug and seen you post in most of them. Knowing of this bug could maybe help you in assisting people in other topics. Good luck :)

JW Player

User  
0 rated :

Hi, I'm not sure if I have the same issue as you do, but I need to click "play" twice in FireFox to have any effect.

An example with autoplay:
http://filmixxy.pl/6575/Ukladanie-matury?autoplay

An example without autoplay:
http://filmixxy.pl/6575/Ukladanie-matury

How do I repair that? The problem doesn't exist in Chrome or IE.

Thanks in advance,
David

Ethan Feldman

JW Player Support Agent  
0 rated :

It looks like you are doing some custom JS which is the culprit here. The player loads on the page, and then it Flashes white, and loads again. Why?

This question has received the maximum number of answers.