A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Is it possible to add a buffer to a video that is loaded though FLV Component?

  1. #1
    Member
    Join Date
    Nov 2010
    Posts
    51

    Is it possible to add a buffer to a video that is loaded though FLV Component?

    Hello...

    I am using CS5 FLV video components to show my video...

    Works fine however online it takes some time to start and it just has a blank screen for about 7-8 seconds before it starts the video

    Is there any way to add a buffering message until it loads the video?

    I know that buffering is easier to do with NetStream.. but in this case im using Flash's CS5 FLV component which it doesnt give it as an option in the properties...

    Any Ideas on this?

    Thanks for your time!

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Just add a rolling circle and message that the video is loading, since the component screen itself will only show up when the video is loaded and then hide the message.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Member
    Join Date
    Nov 2010
    Posts
    51
    Hi buddy thanks for your reply

    I tried it... added the buffering movie clip to play on the layer below the FLVComponent... but i still have the same problem.. buffering movie clips appears for a second...then the black screen of the FLV component appears to cover that... then wait 6-7 seconds for the video to start..

    It sucks that Flash dosnt offer many solutions on its Video Components

  4. #4
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Try this. Have the message in front of the player. Add a script like this:

    myPlayBack.addEventListener(VideoEvent.PLAYING_STA TE_ENTERED, playReady);
    function playReady(event:VideoEvent):void
    {
    message.visible = false;
    }
    - The right of the People to create Flash movies shall not be infringed. -

  5. #5
    Member
    Join Date
    Nov 2010
    Posts
    51
    You are a genius,.,.

    I didnt know this VideoEvent.PLAYING_STATE_ENTERED existed...

    wow....thanks for this mate...!! Works like a charm...

  6. #6
    Member
    Join Date
    Nov 2010
    Posts
    51
    Hi...

    back again...i just discovered a bug...on the flv video component...i dont know if you can help me with this...

    When i press on the thumbnail to open up the video...the buffering comes up and after some seconds the video starts to play....it works fine however...

    when i press on the thumbnail to open the video and close it again right away while the buffering is still up... the video sound starts to play...so i guess the video loads anyway...

    On the close button i have the code SoundMixer.stopAll(); which works fine....it stop the sound...but it doesnt seem to work...if i do the above...Is there any code to unload this FLV component when i close the video button?

    Thanks

  7. #7
    Member
    Join Date
    Nov 2010
    Posts
    51
    Got it...

    used the getVideoPlayer() method to stop the streaming

    If anyone has any other solutions that may be better please let me know!

    Cheers

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