[Flashcoders] Clearing FLV visual content
Hi FlashCoders, I've got an issue when swapping (progressive) video content over in a single Flash 8 FLVPlayer component. I'm setting contentPath to load a movie and start playing it. When the user changes the movie I'm simply resetting contentPath to the new files path which changes the stream and starts playing the new FLV. This works fine for all FLV's that contain both Video and Audio layers. The problem occurs when I swap from a FLV with visual content to one with just Audio. After loading the Audio the last visual frame of the previous video is left visible on-screen. Is there anyway I can either: - Clear that visual 'buffer' - Find out whether the FLV is only audio to then either load a default visual and/or set the video._visible to false I've tried the video.stop() and video.closeVideoPlayer() prior to opening the new stream, but these do not seem to clear it. (Tangent: calling video.stop() without a loaded Video in place seems to make Flash Flash player pretty unstable and causes both applications to crash) Thinking about loading a blank movie between change overs, but any other suggestions appreciated. Thanks Dan Efergan [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Clearing FLV visual content
Been testing loading a blank movie prior to the new movie using two quickly successive contentPath calls, only to cause the same instability and Flash App crashing. Thought I'd post it in case its useful... Any other ideas more desperately needed. Thanks. Dan On 15 May 2006, at 22:12, Dan Efergan wrote: I've tried the video.stop() and video.closeVideoPlayer() prior to opening the new stream, but these do not seem to clear it. (Tangent: calling video.stop() without a loaded Video in place seems to make Flash Flash player pretty unstable and causes both applications to crash) Thinking about loading a blank movie between change overs, but any other suggestions appreciated. Dan Efergan [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Clearing FLV visual content
My standard approach to this type of problem has been to never have more than one FLV on the stage at one time. I've developed a class that, on video.stop(), unloads the video. Then loads another one from the library and resets the contentPath of the FLV player. To me, it's alot simpler that way, hope that helps... :-) At 02:45 PM 5/15/2006, you wrote: Been testing loading a blank movie prior to the new movie using two quickly successive contentPath calls, only to cause the same instability and Flash App crashing. Thought I'd post it in case its useful... Any other ideas more desperately needed. Thanks. Dan On 15 May 2006, at 22:12, Dan Efergan wrote: I've tried the video.stop() and video.closeVideoPlayer() prior to opening the new stream, but these do not seem to clear it. (Tangent: calling video.stop() without a loaded Video in place seems to make Flash Flash player pretty unstable and causes both applications to crash) Thinking about loading a blank movie between change overs, but any other suggestions appreciated. Dan Efergan [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ---asai ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Clearing FLV visual content
I've avoided the whole Video Index thing and I don't regret it. Good Luck At 03:19 PM 5/15/2006, you wrote: Yeah, could be the way. I've also been looking video.activeVideoPlayerIndex, which does something similar but all within one component. I tried toggling the players (moving from index = 0 to index = 1 and back) but the stream was still remembering the final frame. I could continually increase the Video Player Index, but I'm unsure how to deal with the memory issues. I'm assuming each new command given to a videoPlayerIndex creates a new Video Player Class object, but how do I delete them? If I can't sort it that way I'll probably do what you suggest and reload from library. Thanks On 15 May 2006, at 23:11, Asai wrote: My standard approach to this type of problem has been to never have more than one FLV on the stage at one time. I've developed a class that, on video.stop(), unloads the video. Then loads another one from the library and resets the contentPath of the FLV player. To me, it's alot simpler that way, hope that helps... :-) Dan Efergan [EMAIL PROTECTED] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ---asai ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com