A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Flashvars into MediaPlayBack (flv player)

  1. #1
    Member
    Join Date
    Feb 2004
    Posts
    45

    Flashvars into MediaPlayBack (flv player)

    I have a simple flv player that is entirely the MediaPlayBack component. I want the player to play the filename given in flashvars like "filename=thisvideo".

    I will have the flash add on the ".flv" itself.

    How can I do this?

    Thanks
    Ryan
    Again, thanks for all the help I recieve

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    whre are you getting this flashVar from? in the URTL of the browser?..or in the embed tag/params?

    either way once you do this.. the variable is always available on _root as soon as the movie loads.

    and you dont have to append the .flv to the end.. it can be fileName=video.flv

  3. #3
    Member
    Join Date
    Feb 2004
    Posts
    45
    OK,

    Now i have a variable under 'afile' that is the root link to the video file. How do I put this variable into the URL under Media Playback parameters.

    (in flash)

    Thanks
    Ryan
    Again, thanks for all the help I recieve

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    45
    Check that:

    got it to work with:

    fplayer.setMedia(afile, "FLV", true);

    However, I still have one MAJOR problem. Since the FLV files are loaded dynamically, I can't get the video slider to work.

    It just jumps to the end and if I touch it it starts the video over.

    How can I get flash to figure out the length of the video?

    Thanks
    Ryan
    Again, thanks for all the help I recieve

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