Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder slappyjaw's Avatar
    Join Date
    Mar 2009
    Location
    Wonderland!
    Posts
    146
    Thanks
    14
    Thanked 3 Times in 3 Posts

    Question dynamic flvplayback

    Hey everyone, I'm trying to make a flash video player with the flvplayback component that dynamically gets the video file path from flashvars. For some reason it doesn't work. Here is what I have. I've tried every tutorial for setting and getting flash vars I could find.
    Code:
    import fl.video.*;
    var vp:FLVPlayback = new FLVPlayback();
    var path:String;
    vp.source = this.root.loaderInfo.parameters.path;
    var starttime:Number;
    vp.seek(this.root.loaderInfo.parameters.starttime);
    vp.playWhenEnoughDownloaded();
    vp.registrationX = 0;
    vp.registrationY = 0;
    vp.bitrate = 5600;
    vp.registrationHeight = 400;
    vp.registrationWidth = 533.3;
    vp.bufferingBar = bb;
    addChild(vp);
    and html
    Code:
    <param name=FlashVars value="starttime=60&path=/files/movies/The_Wasp_Women.mp4" />
    The video is supposed to look like its streaming. The start time of the movie is determined by the php by subtracting the unix time of when it started from the current unix time. Then it should be passed through the flash vars to make it seek to that time. Thanks in advance for any help.

  • #2
    Regular Coder slappyjaw's Avatar
    Join Date
    Mar 2009
    Location
    Wonderland!
    Posts
    146
    Thanks
    14
    Thanked 3 Times in 3 Posts
    ok so i got it to work but im having a problem. It noticed it was taking a long time to buffer the video. Then i realized that the way that the player was set up is that it must load the whole video to the point being seeked. Is there anyway without a streaming server to make it like youtube where it empties the buffer and then buffers from the seek point on? Thanks again for any help, i know its an obscure question.


  •  

    Posting Permissions

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