I'm in the process of writing a nifty little
Flex application. It's a training application that will display a series of clips to form a single movie. The clips that will be displayed are determined by a number of factors from the user who is viewing the training. Ideally, I'd like to load the first clip normally, with a buffer of course. But all the other clips I would like to download while the user is viewing the previous movie.
Flex does not seem to provide a nice clean way of handling this scenario. The
VideoDisplay object hides the content, so I can't just download the file with a
URLLoader (or something else) and shove it into the
VideoDisplay's content.
What I've done to work around this limitation is use two
VideoDisplays. One load's the next file, while another displays the current file. Then swap the visible
VideoDisplay when the viewing
VideoDisplay has finished, and the loading
VideoDisplay is loaded and ready to play. It's a headache to manage, but it seems to be working OK.
Flex does provide some really nice Rich Internet Application features. But I do not think it's the "silver bullet" that people seem to think it is.
No comments:
Post a Comment