Re: [Flashcoders] FLVPlayback connectionError
Good things to know I think I'll look further into this next time i have to deal with flv players, for now i'll simply stick with the above mentionned hack, can't afford to waste any more time experimenting :) Thank you very much for your input, it'll certainly come in handy the next time! cheers, J. Steve Krichten a écrit : One thing to note about the FLV Playback component is that under the hood it uses VideoPlayer Objects. I believe if you use SMIL to make the player play multiple videos, the FLV Playback will use a new VideoPlayer Object for each new video that is requested. If you are not using SMIL, it seems that the FLV Playback always tries to use the same VideoPlayer Object unless you explicitly tell it to change. And I have found (at least in certian situations) that can cause problems similar to what you describe. Below is the method I use to make the player use a new VideoPlayer object each time I ask it to play a video. This method is part of a wrapper class I use so... player is a property that referes to the FLV Playback instance and nextVpIndex is a property that stores an integer to keep track of what VideoObject to use next. I don't use the VideoObject at index 0 because that one cannot be deleted. private function _playVideo(url:String) { if (player.activeVideoPlayerIndex 0) { player.closeVideoPlayer(player.activeVideoPlayerIndex); delete player.getVideoPlayer(player.activeVideoPlayerIndex); } player.activeVideoPlayerIndex = ++nextVpIndex; player.visibleVideoPlayerIndex = nextVpIndex; player.play(url); } -Steve ___ 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 ___ 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] FLVPlayback connectionError
Hi, I can't test this because I'm at work, but could you try setting up two key frames with an FLV playback component in each on the timeline (with the same name/ref), then flick between them in the hope it will reset the component to a default state? It's a bit of a long shot, but I 'fixed' a different bug with the FLV component by adding keyframes in a similar way where after selecting a screen with reference to a video that didn't exist, no further videos would load. However this situation was a bit different in that the layer containing the FLV component was keyframed in such a way as that each video had its own keyframe. Let me know, Matt - Matt Haworth Web Designer The University of Manchester -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerome Cordiez Sent: 28 July 2006 09:47 To: Flashcoders mailing list Subject: [Flashcoders] FLVPlayback connectionError Hello, I finally decided to expose my problem to this list, after seeking a solution for days... Finding out people had the same issues, but no solutions. The problem : I have an FLVPlayback component on the stage, which is supposed to playback some videos... The tricky part being sometimes the videos don't exist, and then a default picture should be displayed instead. The bug : everytime the component tries to load a non-existing flv, it goes into connectionError state (normal), non-responsive... The abnormal part being it's not possible afterwards to make that component return in a responsive state, load another flv, etc Doing research, I found out others faced the same issue, but i haven't seen any solutions... Except one work-around maybe : attaching the component programmaticaly. Doing so solves the non-responsive state part of the problem, but it makes other issues arise, such as strange statebchanges (while buffering, the component goes into various states : stopped, playing, etc... making the playPauseButton blink for exemple)... So well... Before getting into the writing of my own video player (not very complicated anyway, but you know... :)), has anyone found a solution/workaround for what seems to be a pretty annoying bug? Thank you very much, best regards, Jerome. ___ 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 ___ 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] FLVPlayback connectionError
Hi, thanks a lot! Actually, if not proven wrong, i will believe this is the best work-around :) What I did : embed the flvplayback component in a 3 keyframes movieclip : frame 1 blank frame 2 with the video component and a stop action frame 3 with the default error picture According to the state changes, i go to (and stop) frame 3 if there's an error, gotoandplay frame 1 if i need to play a video, so that the component gets reinitialized. Like you said, it's a bit of a long shot, but it seems to work. Now I can move on and work on the rest of the application foolish me, I used to believe that components where supposed to help you win time :) thank you very much matt, cheers, J. Matt Haworth a écrit : Hi, I can't test this because I'm at work, but could you try setting up two key frames with an FLV playback component in each on the timeline (with the same name/ref), then flick between them in the hope it will reset the component to a default state? It's a bit of a long shot, but I 'fixed' a different bug with the FLV component by adding keyframes in a similar way where after selecting a screen with reference to a video that didn't exist, no further videos would load. However this situation was a bit different in that the layer containing the FLV component was keyframed in such a way as that each video had its own keyframe. Let me know, Matt - Matt Haworth Web Designer The University of Manchester -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerome Cordiez Sent: 28 July 2006 09:47 To: Flashcoders mailing list Subject: [Flashcoders] FLVPlayback connectionError Hello, I finally decided to expose my problem to this list, after seeking a solution for days... Finding out people had the same issues, but no solutions. The problem : I have an FLVPlayback component on the stage, which is supposed to playback some videos... The tricky part being sometimes the videos don't exist, and then a default picture should be displayed instead. The bug : everytime the component tries to load a non-existing flv, it goes into connectionError state (normal), non-responsive... The abnormal part being it's not possible afterwards to make that component return in a responsive state, load another flv, etc Doing research, I found out others faced the same issue, but i haven't seen any solutions... Except one work-around maybe : attaching the component programmaticaly. Doing so solves the non-responsive state part of the problem, but it makes other issues arise, such as strange statebchanges (while buffering, the component goes into various states : stopped, playing, etc... making the playPauseButton blink for exemple)... So well... Before getting into the writing of my own video player (not very complicated anyway, but you know... :)), has anyone found a solution/workaround for what seems to be a pretty annoying bug? Thank you very much, best regards, Jerome. ___ 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 ___ 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 ___ 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] FLVPlayback connectionError
One thing to note about the FLV Playback component is that under the hood it uses VideoPlayer Objects. I believe if you use SMIL to make the player play multiple videos, the FLV Playback will use a new VideoPlayer Object for each new video that is requested. If you are not using SMIL, it seems that the FLV Playback always tries to use the same VideoPlayer Object unless you explicitly tell it to change. And I have found (at least in certian situations) that can cause problems similar to what you describe. Below is the method I use to make the player use a new VideoPlayer object each time I ask it to play a video. This method is part of a wrapper class I use so... player is a property that referes to the FLV Playback instance and nextVpIndex is a property that stores an integer to keep track of what VideoObject to use next. I don't use the VideoObject at index 0 because that one cannot be deleted. private function _playVideo(url:String) { if (player.activeVideoPlayerIndex 0) { player.closeVideoPlayer(player.activeVideoPlayerIndex); delete player.getVideoPlayer(player.activeVideoPlayerIndex); } player.activeVideoPlayerIndex = ++nextVpIndex; player.visibleVideoPlayerIndex = nextVpIndex; player.play(url); } -Steve ___ 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