Feb. 20, 2009minal
Hi everyone, hi JW,
I don't thing this is a bug because no other post on this subject but it's a really big problem for me...
The pb:
I try to use the actual version of JW player with D-related for FLV files playing and when I click on play (firefox 3, XP) the D-related plugin appears and just audio is played...
If I reclick on play button, d-related dissapear, the video restart and then all work fine...
What I've tried:
no other plugin, embed or using swfobject: no change.
with autostart: like normal start, first image is figed with d-related plugin and audio is playing... I have to click on play for a normal play.
controlbar=over or not: change nothing, i've so tried refresh and play events using a js timeout... same problem.
xml file for d-related is good (at the end of the movie or on pause all thumbmails are fine), domain and subdomain are same for all requests,
The current state:
I don't understand at all, please help...
i will really appreciate any suggestion and if it's a solution this will be a sunny day for me so thanks you ! (and sorry for my average english)
Feb. 20, 2009lefTy
We can't help you without a live link to your test page.
We're not very good guessers.
Feb. 21, 2009minal
thanks for your response speed.
This is a direct link to the problem (unfortunatly directlink is beta): http://213.186.56.xx?lnk=pub_64
(replace xx by 31). Click on blue play button for launch player with autostart.
(Site in french, in beta version, actually unusable (too slow) on IE, work on other nav., that's why I've don't mentioned it)
I make many refresh with this link and in fact sometime (but rarely) all works fine.
I really hope someone have an idea about the source of my mistake, thanks for help.
Feb. 21, 2009lefTy
I don't see any JW FLV Media Player code on that page.
Where is it?
Feb. 21, 2009minal
You have to click on blue play button on right and player will normally be loaded, sure it's the JW player but it's lightly integrated in a more global player.
thanks for trying to help me
Feb. 21, 2009lefTy
No, I want to know where the player source code is.
Feb. 21, 2009minal
in a php file
it look like this:
$jsCmd = "setTimeout(
function(){
var so = new SWFObject(\"http://public.edupedia.fr/player.swf\", \"mpl\",\"100%\",\"".($this->height-65)."px\",\"9\");
so.addParam(\"allowscriptaccess\",\"always\");
so.addParam(\"allowfullscreen\",\"true\");
so.addParam(\"flashvars\", \"".$_SESSION['playerFlashVar']."\");
so.write(\"playerPanel_1\");
//var p = document.getElementById(\"playerPanel_1\");
//var pData = document.getElementById(\"playerData\");
//p.innerHTML = pData.innerHTML;
//setTimeout(
//function(){
//var player = document.getElementById(\"eduVideoPlayer\");
//player.sendEvent(\"PLAY\",\"true\");
//player.sendEvent(\"REDRAW\",\"true\");
//},500);
},100);";
It's my last test, i've tried without js and pb seems the same.
Feb. 21, 2009minal
can be helpfull: $_SESSION['playerFlashVar'] = "controlbar=over&icons=false&type=flv&skin=http://public.edupedia.fr/common/flash/bekle.swf&stretching=fill&plugins=drelated-1&drelated.dxmlpath=".$this->pub['playlist']."&drelated.dskin=common/flash/grayskin.swf&drelated.dtarget=_self&autostart=true&image=".$this->baseUrl."data/VID/vid_img/".$fileSplit[0]."_small_2.jpg";
Is added to this the link of flv file (who is a php file too.)
Feb. 21, 2009lefTy
Well, I can't duplicate your whole system, but I did make a small test page using your player code.
I substituted my player, data files, and media files where necessary because of the Adobe Flash Player's cross-domain security policy.
Some reasons for your code not working might be:
1) it seems that the URIs for the images in your drelated XML file 64.xml are not valid. I could not find an image here: http://public.edupedia.fr/data/VID/vid_img/cb976bc8fc4485cec4120a671a984efd6f34c57b_small_2.jpg,
2) some of the flashvars in your file are invalid. The type flashvar should be video,
3) utilizing the drelated plugin from longtail doesn't seem to work. I suggest downloading: http://plugins.longtailvideo.com/drelated-1.swf and serving it from your own server as shown in the test page,
4) make sure that you have the latest player (currently v4.4.165) from: http://developer.longtailvideo.com/trac/log/trunk/as3/player.swf (Click on the "@166" in the Rev column to download.),
5) you must urlencode the file URL/URI if it contains the ( ? + & )characters. Do it manually, or use encodeURIComponent(),
Test page:
http://willswonders.myip.org:8081/edupedia.html
[<>] It doesn't really matter what you write in your serverside scripts. What really matters is what is delivered to the browser. I got your actual player code —AS DELIVERED TO THE BROWSER— from: http://public.edupedia.fr/ajax.php?a=getPlayer&fid=64&mode=normal&w=906&h=552&t=1 [<>]
Feb. 22, 2009minal
Wow, that is help, thanks you for your time
Well, about the five points :
1) Images are in a new path (old videos posts have to be resend)
I've tried with one valid image only and the bug appear, so I've restaured the final code.
2) I've already tried type=video and didn't see any difference concerning the player or my problem but i use 'video' now.
3) I use now local plugin ('&plugins=http://public.edupedia.fr/common/flash/drelated-1&...'.)
4) You have right my player version wasn't the last, now it is v4.4.166.
5) ok, now using urlencode
But the problem was unfortunatly same...
So I searched in a new direction (thanks to you) and find your answer to a post about php streaming:
I use now $_GET['start'] in getpub.php (Used with old FLV player: $_GET['seekat']).
I've find an error too on the file size header, i think that was the problem (the old player wasn't affected by this), if that can help someone...
And it's a big progress, now the video start (almost) fine !
I've only one special residual problem always with d-related: on start the plugin is closed only on 1/3 of the width of the player ...
I've tried with your copy of the flv file and it work good..
I tried without use session_start() in getpubtest.php but result is same.
It's very frustrating because I use JW player for this plugin !
Edit: I make a second mistake, with your copy of flv file the plugin reappear on 1/3 of the player but after some time only :(
So the problem is perhaps not in getpub.php...
And I just discovered 'streamed' flashvar for JW player, now using it, streamed flv work really fine, so all work fine except d-related plugin...
I will search tonight if i find something, if an idea come to your mind... thanks you;)
A new time thanks for your help, your knowlegde on JW Player are really helpfull.
Feb. 22, 2009lefTy
You have to use the grayskin.swf with the drelated plugin so it covers the whole width of the displayarea.
Look at my page code and you can see it. D/L it from that URI if you don't already have it.
Feb. 24, 2009minal
Well I'm already use http://public.edupedia.fr/common/flash/grayskin.swf and pb are same.
There is different versions of the skin ?
Feb. 24, 2009lefTy
I'm not sure about different versions of the grayskin.swf.
I'm sure that if you are not successfully loading the grayskin.swf, then the related thumbs only cover part of the displayarea, so look for other problems.
Cross-domain: The skin must be loaded from the EXACT same domain as the movie player.swf.
Is the skin file really there?
Put:
http://public.edupedia.fr/common/flash/grayskin.swf
into your browser and see if it loads. (It does load.)
Look for other problems with loading the skin file; check your server logs to see if the request for grayskin.swf was made and if it was successful.
Feb. 25, 2009Kris
I am also having this same problem. It only happens about 1/2 the time. I will post again soon when I have more insight.
Mar. 31, 2009Joop
So do I. Same as Kris
Oct. 30, 2009Alix
The same...
Nov. 16, 2009Zachary Ozer
Can you post a link to the page demonstrating the error?
Here are some helpful links to learn more about the JW Player™:
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!
If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.