07-12-2012 03:43 PM - edited 07-12-2012 03:47 PM
Our problem is, that we want to play an video loop seamless, but cannot embed it into the program (it is dynamicly downloaded by another program). Therefore I was thinking to enable inBufferSeek and increase the backBuffer to 15 seconds. In the documentation is a note, that Smart Seek requires the following:
NetStream.inBufferSeek = true
The default value of inBufferSeek is false.
Flash Media Server 3.5.3 -> There I see the problem
Flash Player 10.1
The value of the buffers (backBufferLength and bufferLength) must be large enough to fulfill the seek request.
07-13-2012 11:01 AM
I've never used a Flash Media server so I don't know if that will loop video seamlessly. I'm not aware of a way to loop a video seamlessly without embedding it on your timeline as a movieclip.
Have a look at this Stackoverflow post about the same topic which will hopefully provide a bit more information for you.
07-17-2012 05:55 AM - edited 07-17-2012 06:36 AM
Thanks for your thoughts.
I've already searched stackowerflow for this and came across that post.
Tried all of it, but nothing seams to improve performance.
It's not a second pause. There is more of a hiccup at the loop.
As far as I understand the principle of smart seek, it just keeps the data in the buffer, so the seek operation wouldn't empty it and load the video again (that's the problem at the loop, if I'm not mistaken).
Please someone correct me if I'm wrong.
Quote from the documentation:
"Flash Media Server 3.5.3 and Flash Player 10.1 work together to support smart seeking. Smart seeking uses back and forward buffers to seek without requesting data from the server. Standard seeking flushes buffered data and asks the server to send new data based on the seek time."
07-17-2012 04:00 PM
I was doing a bit more research for you and stumbled across LoaderMax by Greensock. I have used a few classes from Greensock in the past and they have always worked well but have never tried LoaderMax. Give it a try and let me know if it works for you.
Here is a tutorial on how to use LoaderMax.
07-19-2012 02:13 PM
So I tried that and was not able to produce an improvement in the loop quality.
If I'm right, LoaderMax is just another wrapper around the NetConnection,NetStream and Video classes.
Therefore the result couldn't be better as the "native" way. Am I wrong?
07-19-2012 03:02 PM
I thought they may have written some methods that would have helped with performance. I know TweenMax helped with tweening performance a lot. Like I said previously I've never tried using LoaderMax. If LoaderMax doesn't work I'm not sure what else to suggest at the moment. Sorry.
07-20-2012 03:19 PM
So my findings with LoaderMax were, that it helps you handle multiple videos and the transitions between them.
So I decided to use VideoLoader class, repeat it indefinitely and the result was, that the video had a one second gap in between.
So I tried to load two same videos and play them alternately. No improvements. The gap was gone, but if one played smooth, the other lagged and skipped multiple frames.
Has anyone another idea, how to use LoaderMax in a way, to loop a video seamlessly?