Welcome to TalkGraphics.com
Results 1 to 7 of 7

Threaded View

  1. #2
    Join Date
    Jun 2003
    Location
    Cyprus
    Posts
    416

    Default Re: Tips needed, problems with flv video

    I've just recently used JW FLV Player (latest version) on a website and it works fine in FF and IE. I had a look at your source code and mine, and apart from obvious format/presentation differences, I noticed the line "sX.addParam('flashvars'" differs between yours and mine, you have a stray "&" at the beginning of the url. Also, I remember having difficulty in IE until I prefixed the url to the flv file with "../". You may want to try that.

    Your code:
    <div id="player">This text will be replaced</div>

    <script type="text/javascript">
    var so = new SWFObject('index_html_files/player.swf','mpl','480','295','9');
    so.addParam('allowscriptaccess','always');
    so.addParam('allowfullscreen','true');
    so.addParam('flashvars','&file=http://85.131.50.136/aktur/index_html_files/janina3.flv&autostart=true');
    so.write('player');
    </script>


    My code:
    <p id='preview' style="margin-top: 0px;"><!--The player will show in this paragraph--></p>

    <script type='text/javascript' src='video/swfobject.js'></script>
    <script type='text/javascript'>
    var s1 = new SWFObject('video/player.swf','player','640','360','9');
    s1.addParam('allowfullscreen','true');
    s1.addParam('allowscriptaccess','always');
    s1.addParam('flashvars','file=../video/player_long.flv&image=images/vid_background.jpg&stretching=exactfit');
    s1.write('preview');
    </script>
    Last edited by stratocast; 19 March 2009 at 01:54 PM. Reason: Added more info
    -- Bob
    IP

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •