Works in firefox but not in IE. Script error!

CommentFileSizeAuthor
1.jpg22.49 KBbreitner

Comments

JW Player’s picture

Hi breitner,

I'm not getting the same error when viewing my local version in IE8. Can you tell me a little bit more about your configuration? What version of IE are you using?

Thanks.

xrampage16’s picture

Version: 6.x-1.0 » 6.x-1.1

I am also having the same problem. On my site, I am making use of a view to display the video in a lightbox2, but if you go to the page directly

http://hornstarsoutdoors.com/hornstar/video/233

You will see that the video plays just fine in Firefox, but in IE, it looks like it is trying to load forever. The width and height are being displayed in both locations, so that should not be a problem.

Also, the video is being loaded onto the page by a call like this...

$submit = '[jwplayer|config=hornstars|file='. $output .'|image=http://www.hornstarsoutdoors.com/sites/all/themes/id-deck/custom/images/...';

The filepath is being loaded via the view, and the image is hardcoded. The config is loaded off of the server.

From this, the entire video player is being built programmatically, and I am just passing in the variables as requested.

Any tips would be greatly appreciated.

Thanks

Also, I tried it in IE8, IE8 compatibility mode, as well as IE7 without luck. I am using flash
WIN 10,1,53,64
based off of
http://kb2.adobe.com/cps/155/tn_15507.html

Also running Windows XP Service Pack 3
Firefox 3.6.6

JW Player’s picture

@xrampage16

I'm seeing the same behavior in my IE8 as well. It's quite unusual, I've never seen the browser behave that way. As far as I can tell the embed code being generated is correct and nothing else is being downloaded to explain the constantly loading state. Have you tried deactivating the module and seeing how that page behaves in IE8?

Thanks.

xrampage16’s picture

Actually, I've gone a step further and create a test.html page which contains only the barest essentials. Once again, it works fine in Firefox, but will not load correctly in IE

http://www.hornstarsoutdoors.com/test.html

I'm assuming that if I can find out what the issue is with the file without all the dynamic components, then I'll be able to fix the script that generates it for IE

The contents of the file are as such, to prevent IE from freaking out. Dumb it down, if you will.

<html class="js">
<head>
<title></title>
<script type="text/javascript" src="/misc/jquery.js"></script>
<script type="text/javascript" src="/misc/drupal.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript" src="/sites/all/modules/jwplayermodule/jwplayermodule.js"></script>
</head>
<body>
<div id="movie-object">
<object
height="480" width="720" type="application/x-shockwave-flash"
id="jwplayer-1" name="jwplayer-1"
data="http://www.hornstarsoutdoors.com/sites/all/modules/jwplayermodule/player.swf"
style="visibility: visible;"><param name="width" value="720"><param
name="height" value="480"><param name="allowfullscreen"
value="true"><param name="allowscriptaccess" value="always"><param
name="wmode" value="transparent"><param name="version" value="9"><param
name="type" value="movie"><param name="bgcolor" value="#FFFFFF"><param
name="express_redirect" value="/expressinstall.swf"><param name="class"
value=""><param name="flashvars"
value="file=http://www.hornstarsoutdoors.com/sites/default/files/TrinityRiver_100523.flv&amp;image=http://www.hornstarsoutdoors.com/sites/all/themes/id-deck/custom/images/jpg/player_background.jpg&amp;config=http://www.hornstarsoutdoors.com/sites/all/modules/jwplayermodule/configs/hornstars.xml"></object>
</div>
<div class="video-content"><div id="video-title">Bowfishing the Trinity
River</div><div id="video-body"><p>When we are not out looking for deer
or hogs, we try to put in a little time on the water. The Trinity River
is always a great place to find some Alligator Gar.</p></div></div>
</body>
</html>

I'm assuming that their is a file that it is attempting to load that it cannot find, or a value that it is having an issue with. If you need the contents of my XML file, I'd be happy to provide it to you, but I doubt that that is the issue.

JW Player’s picture

@xrampage16,

I tried your original link (http://hornstarsoutdoors.com/hornstar/video/233) and that seems to be working for me now in IE8. As for your test page, try adding the following param to your object embed:

<param name="src" value="http://www.hornstarsoutdoors.com/sites/all/modules/jwplayermodule/player.swf">
JW Player’s picture

Status: Active » Closed (works as designed)
jantoine’s picture

Status: Closed (works as designed) » Active

@LongTail Video

I am curious as to why you closed this issue without committing the fix suggested in #5? I am running into the exact same problems with IE 8 (video loading forever), but if I add the param suggested in #5, IE 8 loads just fine. I haven't performed compatibility testing across all browsers yet, but I am curious as to why you didn't commit the suggested fix?

I am happy to provide a patch if that would help.

Cheers,

Antoine

JW Player’s picture

Hi Antoine,

When the update is made to use the latest version of the player the embedding will handled by the new JW Embedder which should properly handle this scenario be default. It seemed unnecessary to make the fix only to replace it.

Although in retrospect it probably would have been helpful to release it since we've had to delay the update for so long.

Thanks.

Anonymous’s picture

Hi LongTail Video,

I have a question in the same region, I'm using views to select flv files that need to be shown in a shadowbox using a licenced JW player.

The way I did this is to create a second div around the JW player which is triggered by the shadowbox and with autoplay enabled it does exactly what I want, popup and start playing the stream.

Unfortunately it only does this in Firefox and IE9 not in IE8.

The PHP I'm using to generate the link is:

    $flash_vars['file'] = $row->field_testvid_embed_1;
    $flash_vars['provider'] = "vdox";
    $flash_vars['repeat'] = "none";
    $flash_vars['type'] = "vdox";
    $flash_vars['width'] = "768";
    $flash_vars['height'] = "432";
    $flash_vars['displaywidth'] = "768";
    $flash_vars['displayheight'] = "432";
    $flash_vars['linkfromdisplay'] = "true";
    $flash_vars['autostart'] = "true";
    $flash_vars['screencolor'] = "#000000";
    $flash_vars['position'] = "top-left";
    $flash_vars['logo'] ="/sites/default/themes/****/images/***-logo-player.png";
    $img = theme('imagecache', 'video_embedded_in_text', $row->field_testvid_embed);
    $flash_vars['image'] = imagecache_create_url('video_embedded_in_text',$row->field_testvid_embed);
    print('<br><br><br><a class="option" href="#sbhider" rel="shadowbox[Mixed];width=768;height=432">TEST</a><div id="sbhider" style="display:none;width:768;height:450">');
    print theme("jwplayermodule_render_player", 'sample', $flash_vars); 
    print('</div>');

How can I add the extra param as posted in #5?

UPDATE:
It seems that it is working on FF using Ubuntu Linux 11.04 but not on Windows XP FF 5.0.1 or IE8.

JW Player’s picture

@Qubical,

Can you provide a link to where this example is running? It's difficult to debug it from just this code.

Thanks.

Anonymous’s picture

We managed to get it working by bypassing the regular modules for video and outputting the video links through views.

This seems to have resolved the issues, looks like it was related to the flashvars, we now also added those to the querystring and that solved it.

JW Player’s picture

@Qubical,

Glad to hear you got it working, although I'm still concerned that the theme function didn't immediately work for you.

Anonymous’s picture

Problem is I cannot give you the link to the site as it is an internal site for one of our customers.
It is restricted IP based, I'll see if I can get a copy up and running with the old version of the implementation but we are pretty swamped with projects at the moment.

theorichel’s picture

I do not know if this is the same problem, but let me try. In a block I have the following code:
[jwplayer|config=VidWideBlock|file=LePair.flv|streamer=rtmp://s2tiali1wioe8k.cloudfront.net/cfx/st|provider=rtmp|image=http://www.groenerekenkamer.nl/grkfiles/images/windfilmaankeiler.jpg]

In Firefox both the thumbnail and the player do show up neatly and play. In Chrome and IE 8/9 only the header shows up on the right column at www.groenerekenkamer.nl.

I would like to add the line that you suggested in nr 5 above, but I do not know how. Your suggestions are welcome. Thanks

Later edit: probably this question is better put here: http://drupal.org/node/1367806#comment-6351904

avpaderno’s picture

Version: 6.x-1.1 » 6.x-1.7
Status: Active » Closed (outdated)

I am closing this issue, since it's for a Drupal version that isn't supported anymore.