Skip navigation
Currently Being Moderated

Load videos (flv) before play

Jul 11, 2012 1:44 PM

Tags: #video #delay #flv #play #preload

I am working on an application in Flash Catalyst where I also have to use some videos.

 

Is there a way I can "preload" all my videos while the preloader is loading my application instead of loading each video the moment that I hit the "Play" button? This causes a little delay on how the video appears and this is a minor problem because there is an interaction between the videos and this delay (which occurs only the first time the video plays) is not good. How can I do this (I guess this should be done in Flash Builder but I don't even have a clue of where should I search for)

 

Thank you,

Erika

 
Replies
  • Currently Being Moderated
    Jul 12, 2012 11:09 AM   in reply to ErikaDparit

    You are correct. This level of functionality will have to be added via Flash Builder and ActionScript.

     

    This should be very straightforward.Look at either VideoPlayer class or FLVPlayback class, then create multiple players, one per video, calling load() on each with the url to your source video. Then listen for VideoProgressEvent.PROGRESS events to find out when the video is loaded.

     

    Maybe that will get you pointed in the right direction.

     

    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 23, 2012 12:02 AM   in reply to Chris W. Griffith

    Chris could you also please help me with some more details on how to do this. I've never used flash before, first time with flash catalyst. I have a large amount of .flv audio files playing without a wireframe player and controlled with pause/play buttons. 4 albums. Usually only half the songs play, the longer I wait the more that have buffered, but the user doens't know this. Could I somehow benefit from preloading all of these .flv songs so that they play seamlessly?

     

    Thank you in advance,

    Taylor

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 23, 2012 12:05 AM   in reply to chicoguy2012

    btw, its www.daxjohnson.com

     

    music page

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points