ActionScript 3.0 :: Recovering From A VideoState.CONNECTION_ERROR?

Apr 1, 2011

Occasionally on a slow network my code gets this error when trying to stream a video to an FLVPlayback component.After that I try to reload the source, but it never works.According to the documentation, this error causes the FLVPlayback to enter a non-responsive state with the following consequences: "If the state is unresponsive, calls to the play(), load(),stop(), pause() and seek() methods are queued and executed later, when the state changes to a responsive one."So the question is, how to change the state to a responsive one?Since load won't work, neither will setting the source. After much search, I found a claim that closing the active video player and setting another should work, but it doesn't (code shown below) My next step is to discard the current FLVPlayback and make a new instance, but I'd like to avoid that if possible.
 
// f is a FLVPlayback
if(retriesLeft > 0) {
var s = f.source;

[code]....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Use VideoState Events With The LFLVPlayback?

Aug 26, 2008

how to use VideoState events with the LFLVPlayback.state property, because the following code doesn't trace anything in the listener function:

Code:
import fl.video.*;
myVid.addEventListener(VideoState.LOADING, videoComponentListener);
myVid.addEventListener(VideoState.PLAYING, videoComponentListener);[code].....

View 3 Replies

ActionScript 2.0 :: Recovering MovieClip Removed By Using UnloadMovie?

Apr 13, 2007

I am trying to incorporate the facility to recover an object that has been deleted by the user. When he presses delete, i unload the movieclip. So if I want to recover it, complete with its last width, height, x and y positions, how do I do it? Is there some inbuilt function? or do I have to use some programming to do it, like save the object properties before deleting and all? The object could be any one of about 5-6 of them in my library, so knowing at run time which one to attach is impossible. So I need something to recover exactly the movie clip that was unloaded. I don't think attaching a new one and setting its properties will work. Very simply, I could just set the _visible to false when he presses delete, but then, thats not a very good practice I feel.

View 9 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved