Jon
Jon

Reputation:

JW Player embedded flash player not playing properly

PROBLEM: when i press play the audio starts but the video does not.

CODE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>JW Player for Flash</title>

</head><body>

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
    swfobject.registerObject("player","9.0.98","expressInstall.swf");
</script>

<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="468" height="262">
    <param name="movie" value="player-licensed.swf" />
    <param name="allowfullscreen" value="true" />
    <param name="allowscriptaccess" value="always" />
    <param name="flashvars" value="file=Bioshphere-Museum-of-Water.flv&image=preview.jpg" />
    <object type="application/x-shockwave-flash" data="player-licensed.swf" width="468" height="262">
        <param name="movie" value="player-licensed.swf" />
        <param name="allowfullscreen" value="true" />
        <param name="allowscriptaccess" value="always" />
        <param name="flashvars" value="file=video.flv&image=preview.jpg" />
        <p><a href="http://get.adobe.com/flashplayer">Get Flash</a> to watch this video.</p>
    </object>
</object>
</body>
</html>

LIVE EXAMPLE: http://solomongiles.com/mediamar/readme.html

Solutions?

Upvotes: 1

Views: 8737

Answers (3)

Aviral Sharma
Aviral Sharma

Reputation: 1

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="640" height="480"><param name="flashvars" value="file=http://www.webiste.com/admin/php_uploads/video.flv&image=imgs/image_large.jpg" /><param name="movie" value="flvplayer/player.swf" /><embed src="flvplayer/player.swf" width="640" height="480" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=http://www.webiste.com/admin/php_uploads/video.flv&image=imgs/image_large.jpg" /></object>

Upvotes: 0

Stay Classy
Stay Classy

Reputation: 11

Use the script found here, http://www.walkernews.net/2008/01/11/how-to-embed-flv-flash-in-wordpress-or-html/, with new player. It works in IE. I've also added allowfullscreen="true" allowsscriptaccess="always" after the size parameters. Plays in IE but no full screen. Help with this if you can please.

Upvotes: 1

Branden Hall
Branden Hall

Reputation: 4468

Works fine here in mac/safari 4.0.3.

However I do notice one thing - your flashvars for the object and param bits don't match up. They should be the same.

Also, you make want to look into a more flexible embedding solution such as SWFObject (it helps you do player detection and will let your document validate as XHTML as well)

Upvotes: 0

Related Questions