SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Evangelist JordashTalon's Avatar
    Join Date
    Dec 2008
    Posts
    505
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Code for inserting streaming flash into website

    I need the code for inserting Streaming Flash into a website (or a way to do it)

    e.g.

    <stream src="http://domain.com/video.flv" />

    If only it were that easy.

    Thanks

  2. #2
    SitePoint Guru
    Join Date
    Nov 2005
    Location
    Norway
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi
    You need a video player like JW FLV Media Player to play the .flv. And for adding the player to your page I would use SWFObject .

  3. #3
    SitePoint Evangelist JordashTalon's Avatar
    Join Date
    Dec 2008
    Posts
    505
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SWF Object does not work on .flv files, anything that works for .flv files?

  4. #4
    SitePoint Guru
    Join Date
    Nov 2005
    Location
    Norway
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    From my post:
    Quote Originally Posted by fredda View Post
    You need a video player like JW FLV Media Player to play the .flv.

  5. #5
    SitePoint Evangelist JordashTalon's Avatar
    Join Date
    Dec 2008
    Posts
    505
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I see, you have to have an SWF which plays an FLV I see

  6. #6
    SitePoint Guru
    Join Date
    Nov 2005
    Location
    Norway
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    On the JW FLV Media Player site you'll find this code sample:
    Code:
    <p id='preview'>The player will show in this paragraph</p>
    
    <script type='text/javascript' src='swfobject.js'></script>
    <script type='text/javascript'>
    var s1 = new SWFObject('player.swf','player','400','300','9');
    s1.addParam('allowfullscreen','true');
    s1.addParam('allowscriptaccess','always');
    s1.addParam('flashvars','file=video.flv');
    s1.write('preview');
    </script>

  7. #7
    SitePoint Evangelist JordashTalon's Avatar
    Join Date
    Dec 2008
    Posts
    505
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok I can see that now thank you.

  8. #8
    SitePoint Evangelist JordashTalon's Avatar
    Join Date
    Dec 2008
    Posts
    505
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got it all working, thanks for the tips, I was really confused at first but it was a simple solution.


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
  •