I have an interesting issue with the VideoDisplay component. I have a list of .flv files which appear in a List component. When the user clicks on one of the file names, the click picks up the path to the file and puts it into a bindable variable called "contentFile".
I then use the source property of the VideoDisplay to define which video to start playing.
My code is simple and it works. Here it is:
<mx:VideoDisplay x="0" y="239" width="320" height="240"
Here is the weird thing. When I use the following code:
my video takes many many seconds to buffer in advance before it starts playing (depending on the size of the source .flv file). Then when it does start to play, half the time the video is very jerky, half the time it plays OK.
However, when I define the source using an exact path to a video such as:
the video immediately loads nearly instantly and always plays super smooth. I have tested this out on MacOSX, FireFox, Safari and WinXP in FireFox & IE. The same response is repeatable. The exact same video chosen via the bindable variable method takes a while to load and playback can be sketchy.
What can possibly be the difference between these two methods?
Let me know if you need more information.
Well, after playing around with this issue for a little bit I realized that I was not using a bufferTime property of the videoDisplay component.
After assigning the following:
The issue cleared up because it buffers up the first 5 seconds of the video. No more skipping stalling.
Still don't know why without that property that using a variable as the source versus compared to a direct path created playback problems, but the bufferTime property cleared it up anyway.
Good that you find your solution, please don't forget to close the thread.