I have installed:

swf tools
JW Media Player 4
UFO

Created a new block with the following php code:

<?php
print swf('introvideo.flv');
?>

Video plays in firefox and in IE7, but in IE7 I get an 'Error on Page' message in the bottom left which then leads to the following syntax error:

Line: 1
Char: 7
Error: Syntax error
Code: 0
URL: http://www.mydomain.com/site/

It seems to play without error message if I use the built in player (JW disabled).

Thanks.

Comments

Stuart Greenfield’s picture

Status: Active » Postponed (maintainer needs more info)

Which embedding method are you using? I have seen something similar to this once, but it only seemed to occur with SWF Object 2 and I thought I fixed it!

sittard’s picture

I'm using UFO - funnily enough I originally tried the SWF Object 2 embedding method first and IE also reported errors ('Undefined Object'). SWF Object 2 is disabled so I don't think this would be the issue.

Thanks.

Stuart Greenfield’s picture

I went back over my notes, and this was an issue for the SWF Tools rendering code. IE generates an error if the object isn't assigned an id, and throws an error because the JavaScript cannot refer to the object (I think I summarised that right!) So this cropped up with the player before the code was modified.

This was fixed for SWF Object 2 and also direct embedding, but was not fixed for UFO and other methods as they are superceded.

So I'm not surprised you see the error with UFO, but am surprised if you see it with SWF Object 2.

I tested locally using equivalent code (Vista with IE7) and get no error on SWF Object 2, no error on direct embedding, and do get an error on UFO. This is the result I would expect.

Can you try changing SWF Tools to direct embedding and testing your page, and then try SWF Object 2 again.

Also, try clearing your browser cache just in case that is the issue.

Then can you post again with your findings.

Thanks!

sittard’s picture

OK have run some more tests:

IE7 (XP) with direct embedding = no error message (all works).
IE7 (XP) with UFO = Error on Page

I also tested SWF Object2 and I get the following JS error message popup:

Line: 0
Error:'swfswfobject2' is undefined 

But this is a fairly heavy site and might be due to a conflict with another module (jquery is also running), let me know if you need some testing on a vanilla install.

Thanks.

sittard’s picture

Status: Postponed (maintainer needs more info) » Active

I've been doing some more testing my setup is as follows:

Drupal 6.6 (Vanilla Install)
SWF Tools 6.x-1-3
SWF Object 2.1 (shared/swfobject2)
JW Media Player 4.2 (shared/flashmedia_player)
Core PHP Filter Module Installed

No other modules or anything else are installed. I get an error message in IE7 but not Firefox.

A Runtime Error has occured
Do you wish to Debug?

Link: 0
Error: 'swfswfobject2' is undefined

Seems to work fine when using direct embedding or with the generic player but not the combination of both!

sittard’s picture

Just thought I would update this post as I discovered that it works with FlowPlayer 2.2 and SWFObject 2.1 in IE (no errors) so I guess the conflict must be with JW Media Player & SWFObject2.1