A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Using php to mock flv

  1. #1
    Member
    Join Date
    Jan 2006
    Posts
    34

    Using php to mock flv

    Is there any easy step-by-step explained tutorials for beginners on how to create a php file that streams a .flv to a flash video player?

    I've been googling for some time now and I haven't found what I need that explains this to me.

    I need to know what my php script needs to do this.

    Thanks for reading and all help on this is appreciated.

  2. #2
    Member
    Join Date
    Jan 2006
    Posts
    34
    Ehem...

  3. #3
    Member
    Join Date
    Jan 2006
    Posts
    34
    Why wont anyone answer my questions?

  4. #4
    Member
    Join Date
    Jan 2006
    Posts
    34
    Bump...

  5. #5
    Perverse Futurist villain2's Avatar
    Join Date
    Sep 2002
    Location
    Baltimore, MD
    Posts
    891
    I'm assuming you mean you want to know how to load an .flv address into your flash player dynamically, from an outside source like php.

    1. Set the address of the .flv as a variable in php ... like
    PHP Code:
    $video "www.mywebsite.com/flashvideo.flv"

    2. when embedding your flash movie in the web page, append the variable in the address of the flash movie.
    Code:
    flash/myflashmovie.swf?videoid=video
    3. in the flash movie, you will have to write actionscript to load that variable into your movie player
    Code:
    var videolink = _root.videoid
    Code:
    mymovie.setMedia(""+videolink+"", FLV);
    This is assuming you're using Flash 8 Video Player or above. This is a quick way of doing it, there is a better way that's better codewise but this will get you started thinking in the right direction.
    Last edited by villain2; 07-23-2007 at 12:57 PM.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center