RE: [Flashcoders] FLV audio doesn't stop
LoaderMax!!! YES !!! I just returned from www.flashonthebeach.com and Rich Shupe lectured there about LoaderMax. Also look at TimelineMax. There are videotutorials too. Everybody should at least check out greensock. Brilliant!!! Regards, Cor van Dooren www.codobyte.com -- There are only 10 types of people in the world: Those who understand binary and those who don't. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: vrijdag 1 oktober 2010 23:44 To: Flash Coders List Subject: RE: [Flashcoders] FLV audio doesn't stop Thanks Cor and everyone - SoundMixer.stopAll() seemed to work best for me - it's not happening anymore no matter how hard I try to break it. Next time around, I'll use LoaderMax from greensock (which I had known about that before I started!) or the roll my own with the Netstream classes. But really glad the issues is resolved, thanks again everyone. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Randy Tinfow Sent: Friday, October 01, 2010 5:37 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] FLV audio doesn't stop Found it : I used SoundMixer.stopAll(); That will work unless you have other audio playing in the background, which is often the case for our apps. We don't use the flvplayback control, preferring to write CustomNetStreams. To stop video and audio we use: _customNetstream.removeEventListener(); _customNetstream.close(); _videoObject.clear(); I assume the flvplayback control uses the same methods. Randy Tinfow ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Interne Virusdatabase is verouderd. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3148 - datum van uitgifte: 09/20/10 19:04:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: RE: [Flashcoders] FLV audio doesn't stop
Hey jason I think you're falling foul of the way that flvplayback creates new Video objects every time you add a new stream without destroying the previous streams. You also cannot kill your last one if you only have one left which I think causes issues like yours but I think you can use numvideos or something similar to loop through the existing video objects to close their streams. Sorry but i'm on my phone so googling around is painful but you should be able to get something from this. On 1 Oct 2010 04:58, Merrill, Jason jason.merr...@bankofamerica.com wrote: ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FLV audio doesn't stop
Jason, If I recall correctly: SoundChannel.stop(); Or SoundMixer.stopAll(); Did the trick for me. Groeten, Cor van Dooren www.codobyte.com -- There are only 10 types of people in the world: Those who understand binary and those who don't. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: vrijdag 1 oktober 2010 5:57 To: Flash Coders List Subject: RE: [Flashcoders] FLV audio doesn't stop Try pausing, stopping then closing. OK I'll give it a shot. // Maybe also replace the above line with //_flvPlayback.close(); //Kind of reaching on this one. :) Yeah, lol, there is no _flvPlayback.close() method, but there is an _flvPlayback.closeVideoPlayer(0); method - I'll try that too. If all else fails, I'll just make sure the user has to watch some of the video (video is definitely out of buffer mode) before advancing to the next screen where the next video is. Not ideal, but in theory it would work. I think Deepanjan is right, it has to do with the buffering in the netstream still taking place while the videoplayback component is removed. Because of that, the audio still clings on. Is there a way to interrupt or stop/kill the buffering process before it finishes? The bug 'feels' like it happens during buffering and the user, instead of waiting for buffering to finish, moves on to the next video. It doesn't seem to be reproducable when the first video has already started playing. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Thursday, September 30, 2010 11:47 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Try pausing, stopping then closing. _flvPlayback.pause(); _flvPlayback.stop(); _flvPlayback.getVideoPlayer(0).close(); //close the netstream // Maybe also replace the above line with //_flvPlayback.close(); //Kind of reaching on this one. :) _flvPlayback.removeEventListener(VideoEvent.READY, onVideoReady); flvPlayback.removeEventListener(MetadataEvent.METADATA_RECEIVED, onMetadataReceived); _flvPlayback.removeEventListener(VideoEvent.COMPLETE, onVideoComplete); _flvPlayback.removeEventListener(MetadataEvent.CUE_POINT, onCuePoint); if (_flvPlayback.stage) { removeChild(_flvPlayback); } //instead of the above line, I also tried just removeChild (_flvPlayback); _flvPlayback = null; Best, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Interne Virusdatabase is verouderd. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3148 - datum van uitgifte: 09/20/10 19:04:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FLV audio doesn't stop
Found it : I used SoundMixer.stopAll(); Regards, Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cor Sent: vrijdag 1 oktober 2010 10:25 To: 'Flash Coders List' Subject: RE: [Flashcoders] FLV audio doesn't stop Jason, If I recall correctly: SoundChannel.stop(); Or SoundMixer.stopAll(); Did the trick for me. Groeten, Cor van Dooren www.codobyte.com -- There are only 10 types of people in the world: Those who understand binary and those who don't. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: vrijdag 1 oktober 2010 5:57 To: Flash Coders List Subject: RE: [Flashcoders] FLV audio doesn't stop Try pausing, stopping then closing. OK I'll give it a shot. // Maybe also replace the above line with //_flvPlayback.close(); //Kind of reaching on this one. :) Yeah, lol, there is no _flvPlayback.close() method, but there is an _flvPlayback.closeVideoPlayer(0); method - I'll try that too. If all else fails, I'll just make sure the user has to watch some of the video (video is definitely out of buffer mode) before advancing to the next screen where the next video is. Not ideal, but in theory it would work. I think Deepanjan is right, it has to do with the buffering in the netstream still taking place while the videoplayback component is removed. Because of that, the audio still clings on. Is there a way to interrupt or stop/kill the buffering process before it finishes? The bug 'feels' like it happens during buffering and the user, instead of waiting for buffering to finish, moves on to the next video. It doesn't seem to be reproducable when the first video has already started playing. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Thursday, September 30, 2010 11:47 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Try pausing, stopping then closing. _flvPlayback.pause(); _flvPlayback.stop(); _flvPlayback.getVideoPlayer(0).close(); //close the netstream // Maybe also replace the above line with //_flvPlayback.close(); //Kind of reaching on this one. :) _flvPlayback.removeEventListener(VideoEvent.READY, onVideoReady); flvPlayback.removeEventListener(MetadataEvent.METADATA_RECEIVED, onMetadataReceived); _flvPlayback.removeEventListener(VideoEvent.COMPLETE, onVideoComplete); _flvPlayback.removeEventListener(MetadataEvent.CUE_POINT, onCuePoint); if (_flvPlayback.stage) { removeChild(_flvPlayback); } //instead of the above line, I also tried just removeChild (_flvPlayback); _flvPlayback = null; Best, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Interne Virusdatabase is verouderd. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3148 - datum van uitgifte: 09/20/10 19:04:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Interne Virusdatabase is verouderd. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3148 - datum van uitgifte: 09/20/10 19:04:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FLV audio doesn't stop
Found it : I used SoundMixer.stopAll(); That will work unless you have other audio playing in the background, which is often the case for our apps. We don't use the flvplayback control, preferring to write CustomNetStreams. To stop video and audio we use: _customNetstream.removeEventListener(); _customNetstream.close(); _videoObject.clear(); I assume the flvplayback control uses the same methods. Randy Tinfow ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FLV audio doesn't stop
Thanks Cor and everyone - SoundMixer.stopAll() seemed to work best for me - it's not happening anymore no matter how hard I try to break it. Next time around, I'll use LoaderMax from greensock (which I had known about that before I started!) or the roll my own with the Netstream classes. But really glad the issues is resolved, thanks again everyone. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Randy Tinfow Sent: Friday, October 01, 2010 5:37 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] FLV audio doesn't stop Found it : I used SoundMixer.stopAll(); That will work unless you have other audio playing in the background, which is often the case for our apps. We don't use the flvplayback control, preferring to write CustomNetStreams. To stop video and audio we use: _customNetstream.removeEventListener(); _customNetstream.close(); _videoObject.clear(); I assume the flvplayback control uses the same methods. Randy Tinfow ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
Off the display list does not mean not playing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FLV audio doesn't stop
Ah - I remember reading about that - thanks, I'll give that a try. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik Sent: Wednesday, September 29, 2010 10:43 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop I have encountered this as well with an e-Learning Flash Course I did last year. I read somewhere that unloadAndStop() was suppose to work when unloading the current swf/flv. I think this is a Flash 10 only method. Perhaps this might fix your issue? On Wed, Sep 29, 2010 at 10:02 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Weird issue, I seem to remember a bug similar to this in Flash player 9 where audio does not get released from memory, but I thought I read it had been fixed in Flash player 10. Yet, we are seeing this problem in flash player 10,1,xx I am playing a series of flv videos. Each video is placed inside a class that extends sprite. When the user clicks a button, there is code to remove the sprite that contains the video and any listeners associated with it, create a new sprite with a new movie. I'm doing all the right things to wait for the video to load before playing, etc. This works great locally - video gets removed, new one plays. However, when viewing my app online, sometimes (not always) when the user clicks the button, the new video plays as it should, but the audio from the previous video that was removed continues to play. I can't seem to track down why this is happening or how to fix. Anyone encounter this before and have any good fixes or workaround? Thanks. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FLV audio doesn't stop
Ugggh - except that I can't publish to FP 10 yet - we're on CS3 (but moving to CS5 in a few weeks) Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik Sent: Wednesday, September 29, 2010 10:43 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop I have encountered this as well with an e-Learning Flash Course I did last year. I read somewhere that unloadAndStop() was suppose to work when unloading the current swf/flv. I think this is a Flash 10 only method. Perhaps this might fix your issue? On Wed, Sep 29, 2010 at 10:02 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Weird issue, I seem to remember a bug similar to this in Flash player 9 where audio does not get released from memory, but I thought I read it had been fixed in Flash player 10. Yet, we are seeing this problem in flash player 10,1,xx I am playing a series of flv videos. Each video is placed inside a class that extends sprite. When the user clicks a button, there is code to remove the sprite that contains the video and any listeners associated with it, create a new sprite with a new movie. I'm doing all the right things to wait for the video to load before playing, etc. This works great locally - video gets removed, new one plays. However, when viewing my app online, sometimes (not always) when the user clicks the button, the new video plays as it should, but the audio from the previous video that was removed continues to play. I can't seem to track down why this is happening or how to fix. Anyone encounter this before and have any good fixes or workaround? Thanks. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FLV audio doesn't stop
Off the display list does not mean not playing. Right, yeah, I understand that - sorry, I should have clarified that I am also stopping the video as well. My code does the following when a video is supposed to be removed before a new one is created and played: 1. The Flvplayback component instance is told to stop. 2. Any listeners are removed from Flvplayback component instance 3. The Flvplayback component instance is removed from container sprite's display list 4. The Flvplayback component instance set to null 5. The Sprite that the FLVplayback component was in is removed from the display list. 6. Any listeners attached to the container Sprite instance are removed 7. The container Sprite instance is set to null. Anyone see any problem in that logic above? I'm going to try Deepanjan's suggestion next and see if that works. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FLV audio doesn't stop
I am also using the FLVPlayback Component, but accessed the NetStream from the component to close it: this.video.getVideoPlayer(0).close(); this.video.getVideoPlayer(0).netStream.close(); I get a null error when I run that: if (_flvPlayback != null) { _flvPlayback.getVideoPlayer(0).close(); _flvPlayback.getVideoPlayer(0).netStream.close(); //--Null error here ... The null error is on the second statement (_flvPlayback.getVideoPlayer(0).netStream.close();), not the first (_flvPlayback.getVideoPlayer(0).close();). ?? Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
Hello Jason, I am using this to clear the FLVPlayback: I have added the FLVPlayback component through code doing an addChild. Then I have passed the custom NCManagerLimelight Class which overrites the inbuilt NCManager class. The NCManagerLimelight is an opensource code you will get from net. this.video = new FLVPlayback(); VideoPlayer.iNCManagerClass = NCManagerLimelight; if (this.video.ncMgr.netConnection != null) { if (this.video.ncMgr.netConnection.connected) { if(this.video.getVideoPlayer(0).netStream != null){ this.video.getVideoPlayer(0).close(); //TraceDebug.print(NET_STREAM ON RESET : + this.video.getVideoPlayer(0).netStream); } } } Hope this helps. -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Thu, Sep 30, 2010 at 11:17 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I am also using the FLVPlayback Component, but accessed the NetStream from the component to close it: this.video.getVideoPlayer(0).close(); this.video.getVideoPlayer(0).netStream.close(); I get a null error when I run that: if (_flvPlayback != null) { _flvPlayback.getVideoPlayer(0).close(); _flvPlayback.getVideoPlayer(0).netStream.close(); //--Null error here ... The null error is on the second statement (_flvPlayback.getVideoPlayer(0).netStream.close();), not the first (_flvPlayback.getVideoPlayer(0).close();). ?? Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
Hi Jason, Try to close the stream after stopping the playpack. Cheers Deepanjan Das On Fri, Oct 1, 2010 at 8:14 AM, Deepanjan Das deepanjan@gmail.comwrote: Hello Jason, I am using this to clear the FLVPlayback: I have added the FLVPlayback component through code doing an addChild. Then I have passed the custom NCManagerLimelight Class which overrites the inbuilt NCManager class. The NCManagerLimelight is an opensource code you will get from net. this.video = new FLVPlayback(); VideoPlayer.iNCManagerClass = NCManagerLimelight; if (this.video.ncMgr.netConnection != null) { if (this.video.ncMgr.netConnection.connected) { if(this.video.getVideoPlayer(0).netStream != null){ this.video.getVideoPlayer(0).close(); //TraceDebug.print(NET_STREAM ON RESET : + this.video.getVideoPlayer(0).netStream); } } } Hope this helps. -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Thu, Sep 30, 2010 at 11:17 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I am also using the FLVPlayback Component, but accessed the NetStream from the component to close it: this.video.getVideoPlayer(0).close(); this.video.getVideoPlayer(0).netStream.close(); I get a null error when I run that: if (_flvPlayback != null) { _flvPlayback.getVideoPlayer(0).close(); _flvPlayback.getVideoPlayer(0).netStream.close(); //--Null error here ... The null error is on the second statement (_flvPlayback.getVideoPlayer(0).netStream.close();), not the first (_flvPlayback.getVideoPlayer(0).close();). ?? Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FLV audio doesn't stop
Thanks, tried that too. Seems the problem occurs if the user goes to look at a new video before the previous video in the previous sprite starts playing. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Deepanjan Das Sent: Thursday, September 30, 2010 10:46 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Hi Jason, Try to close the stream after stopping the playpack. Cheers Deepanjan Das On Fri, Oct 1, 2010 at 8:14 AM, Deepanjan Das deepanjan@gmail.comwrote: Hello Jason, I am using this to clear the FLVPlayback: I have added the FLVPlayback component through code doing an addChild. Then I have passed the custom NCManagerLimelight Class which overrites the inbuilt NCManager class. The NCManagerLimelight is an opensource code you will get from net. this.video = new FLVPlayback(); VideoPlayer.iNCManagerClass = NCManagerLimelight; if (this.video.ncMgr.netConnection != null) { if (this.video.ncMgr.netConnection.connected) { if(this.video.getVideoPlayer(0).netStream != null){ this.video.getVideoPlayer(0).close(); //TraceDebug.print(NET_STREAM ON RESET : + this.video.getVideoPlayer(0).netStream); } } } Hope this helps. -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Thu, Sep 30, 2010 at 11:17 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I am also using the FLVPlayback Component, but accessed the NetStream from the component to close it: this.video.getVideoPlayer(0).close(); this.video.getVideoPlayer(0).netStream.close(); I get a null error when I run that: if (_flvPlayback != null) { _flvPlayback.getVideoPlayer(0).close(); _flvPlayback.getVideoPlayer(0).netStream.close(); //--Null error here ... The null error is on the second statement (_flvPlayback.getVideoPlayer(0).netStream.close();), not the first (_flvPlayback.getVideoPlayer(0).close();). ?? Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
Hi Jason, Could you set the code that starts the new video to check for a boolean before playing a new video? I am thinking you may already have this. var isPlaying:Boolean = true; and set this when a video actually starts playing? Best, Karl On Sep 30, 2010, at 9:51 PM, Merrill, Jason wrote: Thanks, tried that too. Seems the problem occurs if the user goes to look at a new video before the previous video in the previous sprite starts playing. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Deepanjan Das Sent: Thursday, September 30, 2010 10:46 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Hi Jason, Try to close the stream after stopping the playpack. Cheers Deepanjan Das On Fri, Oct 1, 2010 at 8:14 AM, Deepanjan Das deepanjan@gmail.comwrote: Hello Jason, I am using this to clear the FLVPlayback: I have added the FLVPlayback component through code doing an addChild. Then I have passed the custom NCManagerLimelight Class which overrites the inbuilt NCManager class. The NCManagerLimelight is an opensource code you will get from net. this.video = new FLVPlayback(); VideoPlayer.iNCManagerClass = NCManagerLimelight; if (this.video.ncMgr.netConnection != null) { if (this.video.ncMgr.netConnection.connected) { if(this.video.getVideoPlayer(0).netStream != null){ this.video.getVideoPlayer(0).close(); //TraceDebug.print(NET_STREAM ON RESET : + this.video.getVideoPlayer(0).netStream); } } } Hope this helps. -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Thu, Sep 30, 2010 at 11:17 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I am also using the FLVPlayback Component, but accessed the NetStream from the component to close it: this.video.getVideoPlayer(0).close(); this.video.getVideoPlayer(0).netStream.close(); I get a null error when I run that: if (_flvPlayback != null) { _flvPlayback.getVideoPlayer(0).close(); _flvPlayback.getVideoPlayer(0).netStream.close(); //--Null error here ... The null error is on the second statement (_flvPlayback.getVideoPlayer(0).netStream.close();), not the first (_flvPlayback.getVideoPlayer(0).close();). ?? Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FLV audio doesn't stop
Could you set the code that starts the new video to check for a boolean before playing a new video? Well, thanks, but that isn't my setup. If I did that, then the new video would have to wait for the old video (now not on the screen, the user told it to disappear, but you still hear the audio for some reason) to finish playing - not a good user experience. They are two different instances - a player in one container sprite and after that sprite is removed, a player in a new sprite container. My code does the following when a video is supposed to be removed before a new one is created and played: 1. The Flvplayback component instance is told to stop. 2. Any listeners are removed from Flvplayback component instance 3. The Flvplayback component instance is removed from container sprite's display list 4. The Flvplayback component instance set to null 5. The Sprite that the FLVplayback component was in is removed from the display list. 6. Any listeners attached to the container Sprite instance are removed 7. The container Sprite instance is set to null. 8. Then the new sprite is created, and the new FLV component created which plays the video. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Thursday, September 30, 2010 10:56 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Hi Jason, Could you set the code that starts the new video to check for a boolean before playing a new video? I am thinking you may already have this. var isPlaying:Boolean = true; and set this when a video actually starts playing? Best, Karl On Sep 30, 2010, at 9:51 PM, Merrill, Jason wrote: Thanks, tried that too. Seems the problem occurs if the user goes to look at a new video before the previous video in the previous sprite starts playing. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Deepanjan Das Sent: Thursday, September 30, 2010 10:46 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Hi Jason, Try to close the stream after stopping the playpack. Cheers Deepanjan Das On Fri, Oct 1, 2010 at 8:14 AM, Deepanjan Das deepanjan@gmail.comwrote: Hello Jason, I am using this to clear the FLVPlayback: I have added the FLVPlayback component through code doing an addChild. Then I have passed the custom NCManagerLimelight Class which overrites the inbuilt NCManager class. The NCManagerLimelight is an opensource code you will get from net. this.video = new FLVPlayback(); VideoPlayer.iNCManagerClass = NCManagerLimelight; if (this.video.ncMgr.netConnection != null) { if (this.video.ncMgr.netConnection.connected) { if(this.video.getVideoPlayer(0).netStream != null){ this.video.getVideoPlayer(0).close(); //TraceDebug.print(NET_STREAM ON RESET : + this.video.getVideoPlayer(0).netStream); } } } Hope this helps. -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Thu, Sep 30, 2010 at 11:17 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I am also using the FLVPlayback Component, but accessed the NetStream from the component to close it: this.video.getVideoPlayer(0).close(); this.video.getVideoPlayer(0).netStream.close(); I get a null error when I run that: if (_flvPlayback != null) { _flvPlayback.getVideoPlayer(0).close(); _flvPlayback.getVideoPlayer(0).netStream.close(); //--Null error here ... The null error is on the second statement (_flvPlayback.getVideoPlayer(0).netStream.close();), not the first (_flvPlayback.getVideoPlayer(0).close();). ?? Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com
Re: [Flashcoders] FLV audio doesn't stop
You might want to try to pause the video before stopping, unloading and reloading myVideo.pause(); That would stop the audio for sure. (I think) Best, Karl On Sep 30, 2010, at 9:55 PM, Karl DeSaulniers wrote: Hi Jason, Could you set the code that starts the new video to check for a boolean before playing a new video? I am thinking you may already have this. var isPlaying:Boolean = true; and set this when a video actually starts playing? Best, Karl On Sep 30, 2010, at 9:51 PM, Merrill, Jason wrote: Thanks, tried that too. Seems the problem occurs if the user goes to look at a new video before the previous video in the previous sprite starts playing. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Deepanjan Das Sent: Thursday, September 30, 2010 10:46 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Hi Jason, Try to close the stream after stopping the playpack. Cheers Deepanjan Das On Fri, Oct 1, 2010 at 8:14 AM, Deepanjan Das deepanjan@gmail.comwrote: Hello Jason, I am using this to clear the FLVPlayback: I have added the FLVPlayback component through code doing an addChild. Then I have passed the custom NCManagerLimelight Class which overrites the inbuilt NCManager class. The NCManagerLimelight is an opensource code you will get from net. this.video = new FLVPlayback(); VideoPlayer.iNCManagerClass = NCManagerLimelight; if (this.video.ncMgr.netConnection != null) { if (this.video.ncMgr.netConnection.connected) { if(this.video.getVideoPlayer(0).netStream != null){ this.video.getVideoPlayer(0).close(); //TraceDebug.print(NET_STREAM ON RESET : + this.video.getVideoPlayer(0).netStream); } } } Hope this helps. -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Thu, Sep 30, 2010 at 11:17 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I am also using the FLVPlayback Component, but accessed the NetStream from the component to close it: this.video.getVideoPlayer(0).close(); this.video.getVideoPlayer(0).netStream.close(); I get a null error when I run that: if (_flvPlayback != null) { _flvPlayback.getVideoPlayer(0).close(); _flvPlayback.getVideoPlayer(0).netStream.close(); //--Null error here ... The null error is on the second statement (_flvPlayback.getVideoPlayer(0).netStream.close();), not the first (_flvPlayback.getVideoPlayer(0).close();). ?? Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
Right here, tell it to pause then continue with your list. 1 - 8. 1. The Flvplayback component instance is told to stop. 2. Any listeners are removed from Flvplayback component instance 3. The Flvplayback component instance is removed from container sprite's display list 4. The Flvplayback component instance set to null 5. The Sprite that the FLVplayback component was in is removed from the display list. 6. Any listeners attached to the container Sprite instance are removed 7. The container Sprite instance is set to null. 8. Then the new sprite is created, and the new FLV component created which plays the video. Jason Merrill Instructional Technology Architect Bank of America Global Learning HTH, Best, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
Json, Your logic seems to be absolutely fine, which suggests that the stream is not getting closed even after deletion. This happens sometimes when the player might be bufferring. So at this time you might have stopped the video, but the steam is open, so when the buffering in the background (rmember you has stopped the player) completed it passes the steam, now by this time your sprite has been removed, so you cannot see the video but just listen to the audio as the stream is still open. I has a similar experience and that got solved only by being able to close the stream directly. Also try setting the playback component to null on deletion. -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Fri, Oct 1, 2010 at 8:33 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Could you set the code that starts the new video to check for a boolean before playing a new video? Well, thanks, but that isn't my setup. If I did that, then the new video would have to wait for the old video (now not on the screen, the user told it to disappear, but you still hear the audio for some reason) to finish playing - not a good user experience. They are two different instances - a player in one container sprite and after that sprite is removed, a player in a new sprite container. My code does the following when a video is supposed to be removed before a new one is created and played: 1. The Flvplayback component instance is told to stop. 2. Any listeners are removed from Flvplayback component instance 3. The Flvplayback component instance is removed from container sprite's display list 4. The Flvplayback component instance set to null 5. The Sprite that the FLVplayback component was in is removed from the display list. 6. Any listeners attached to the container Sprite instance are removed 7. The container Sprite instance is set to null. 8. Then the new sprite is created, and the new FLV component created which plays the video. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Thursday, September 30, 2010 10:56 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Hi Jason, Could you set the code that starts the new video to check for a boolean before playing a new video? I am thinking you may already have this. var isPlaying:Boolean = true; and set this when a video actually starts playing? Best, Karl On Sep 30, 2010, at 9:51 PM, Merrill, Jason wrote: Thanks, tried that too. Seems the problem occurs if the user goes to look at a new video before the previous video in the previous sprite starts playing. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Deepanjan Das Sent: Thursday, September 30, 2010 10:46 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Hi Jason, Try to close the stream after stopping the playpack. Cheers Deepanjan Das On Fri, Oct 1, 2010 at 8:14 AM, Deepanjan Das deepanjan@gmail.comwrote: Hello Jason, I am using this to clear the FLVPlayback: I have added the FLVPlayback component through code doing an addChild. Then I have passed the custom NCManagerLimelight Class which overrites the inbuilt NCManager class. The NCManagerLimelight is an opensource code you will get from net. this.video = new FLVPlayback(); VideoPlayer.iNCManagerClass = NCManagerLimelight; if (this.video.ncMgr.netConnection != null) { if (this.video.ncMgr.netConnection.connected) { if(this.video.getVideoPlayer(0).netStream != null){ this.video.getVideoPlayer(0).close(); //TraceDebug.print(NET_STREAM ON RESET : + this.video.getVideoPlayer(0).netStream); } } } Hope this helps. -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Thu, Sep 30, 2010 at 11:17 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I am also using the FLVPlayback Component, but accessed the NetStream from the component to close it: this.video.getVideoPlayer(0).close(); this.video.getVideoPlayer(0).netStream.close(); I get a null error when I run that: if (_flvPlayback != null) { _flvPlayback.getVideoPlayer(0).close(); _flvPlayback.getVideoPlayer(0).netStream.close(); //--Null error here ... The null error is on the second statement
RE: [Flashcoders] FLV audio doesn't stop
Also try setting the playback component to null on deletion. Yep, already doing that. I has a similar experience and that got solved only by being able to close the stream directly. Thanks. Did you see my note about that? I get a null error when I run that: if (_flvPlayback != null) { _flvPlayback.getVideoPlayer(0).close(); _flvPlayback.getVideoPlayer(0).netStream.close(); //--Null error here ... The null error is on the second statement (_flvPlayback.getVideoPlayer(0).netStream.close();), not the first (_flvPlayback.getVideoPlayer(0).close();). Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Deepanjan Das Sent: Thursday, September 30, 2010 11:16 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Json, Your logic seems to be absolutely fine, which suggests that the stream is not getting closed even after deletion. This happens sometimes when the player might be bufferring. So at this time you might have stopped the video, but the steam is open, so when the buffering in the background (rmember you has stopped the player) completed it passes the steam, now by this time your sprite has been removed, so you cannot see the video but just listen to the audio as the stream is still open. I has a similar experience and that got solved only by being able to close the stream directly. Also try setting the playback component to null on deletion. -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Fri, Oct 1, 2010 at 8:33 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Could you set the code that starts the new video to check for a boolean before playing a new video? Well, thanks, but that isn't my setup. If I did that, then the new video would have to wait for the old video (now not on the screen, the user told it to disappear, but you still hear the audio for some reason) to finish playing - not a good user experience. They are two different instances - a player in one container sprite and after that sprite is removed, a player in a new sprite container. My code does the following when a video is supposed to be removed before a new one is created and played: 1. The Flvplayback component instance is told to stop. 2. Any listeners are removed from Flvplayback component instance 3. The Flvplayback component instance is removed from container sprite's display list 4. The Flvplayback component instance set to null 5. The Sprite that the FLVplayback component was in is removed from the display list. 6. Any listeners attached to the container Sprite instance are removed 7. The container Sprite instance is set to null. 8. Then the new sprite is created, and the new FLV component created which plays the video. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Thursday, September 30, 2010 10:56 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Hi Jason, Could you set the code that starts the new video to check for a boolean before playing a new video? I am thinking you may already have this. var isPlaying:Boolean = true; and set this when a video actually starts playing? Best, Karl On Sep 30, 2010, at 9:51 PM, Merrill, Jason wrote: Thanks, tried that too. Seems the problem occurs if the user goes to look at a new video before the previous video in the previous sprite starts playing. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Deepanjan Das Sent: Thursday, September 30, 2010 10:46 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Hi Jason, Try to close the stream after stopping the playpack. Cheers Deepanjan Das On Fri, Oct 1, 2010 at 8:14 AM, Deepanjan Das deepanjan@gmail.comwrote: Hello Jason, I am using this to clear the FLVPlayback: I have added the FLVPlayback component through code doing an addChild. Then I have passed the custom NCManagerLimelight Class which overrites the inbuilt NCManager class. The NCManagerLimelight is an opensource code you will get from net. this.video = new FLVPlayback(); VideoPlayer.iNCManagerClass = NCManagerLimelight; if (this.video.ncMgr.netConnection != null) { if (this.video.ncMgr.netConnection.connected) { if(this.video.getVideoPlayer(0).netStream
RE: [Flashcoders] FLV audio doesn't stop
You might want to try to pause the video before stopping, unloading and reloading Geez Karl, I think that might have fixed it... at least, since I added the pause() before the stop() and everything else, I cannot reproduce the bug... Stupid, you would think that calling flvPlayback.stop() would stop the audio as well! If that was it, then I'm so happy - thanks Karl, Deepanjan, and Henrik. I'll keep trying to break it and see if the bug is still there, so keeping my fingers crossed. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FLV audio doesn't stop
And for the archives or anyone listening, here is what my function looks like. I'm sure a few things might be overkill, but if it works, it works: public function destroyVideo():void { if (_flvPlayback != null) { _flvPlayback.pause(); _flvPlayback.getVideoPlayer(0).close();//close the netstream _flvPlayback.stop(); _flvPlayback.removeEventListener(VideoEvent.READY, onVideoReady); _flvPlayback.removeEventListener(MetadataEvent.METADATA_RECEIVED, onMetadataReceived); _flvPlayback.removeEventListener(VideoEvent.COMPLETE, onVideoComplete); _flvPlayback.removeEventListener(MetadataEvent.CUE_POINT, onCuePoint); if (_flvPlayback.stage) { removeChild(_flvPlayback); } _flvPlayback = null; } } Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Thursday, September 30, 2010 11:27 PM To: Flash Coders List Subject: RE: [Flashcoders] FLV audio doesn't stop You might want to try to pause the video before stopping, unloading and reloading Geez Karl, I think that might have fixed it... at least, since I added the pause() before the stop() and everything else, I cannot reproduce the bug... Stupid, you would think that calling flvPlayback.stop() would stop the audio as well! If that was it, then I'm so happy - thanks Karl, Deepanjan, and Henrik. I'll keep trying to break it and see if the bug is still there, so keeping my fingers crossed. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
(** Karl does the happy dance **) On Sep 30, 2010, at 10:29 PM, Merrill, Jason wrote: And for the archives or anyone listening, here is what my function looks like. I'm sure a few things might be overkill, but if it works, it works: public function destroyVideo():void { if (_flvPlayback != null) { _flvPlayback.pause(); _flvPlayback.getVideoPlayer(0).close();//close the netstream _flvPlayback.stop(); _flvPlayback.removeEventListener(VideoEvent.READY, onVideoReady); _flvPlayback.removeEventListener (MetadataEvent.METADATA_RECEIVED, onMetadataReceived); _flvPlayback.removeEventListener(VideoEvent.COMPLETE, onVideoComplete); _flvPlayback.removeEventListener(MetadataEvent.CUE_POINT, onCuePoint); if (_flvPlayback.stage) { removeChild(_flvPlayback); } _flvPlayback = null; } } Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Thursday, September 30, 2010 11:27 PM To: Flash Coders List Subject: RE: [Flashcoders] FLV audio doesn't stop You might want to try to pause the video before stopping, unloading and reloading Geez Karl, I think that might have fixed it... at least, since I added the pause() before the stop() and everything else, I cannot reproduce the bug... Stupid, you would think that calling flvPlayback.stop() would stop the audio as well! If that was it, then I'm so happy - thanks Karl, Deepanjan, and Henrik. I'll keep trying to break it and see if the bug is still there, so keeping my fingers crossed. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FLV audio doesn't stop
UGhh,.. spoke too soon. Problem is still there. Though MUCH harder to reproduce than it was before. See anything that could be better in the code below? _flvPlayback.pause(); _flvPlayback.getVideoPlayer(0).close();//close the netstream _flvPlayback.stop(); _flvPlayback.removeEventListener(VideoEvent.READY, onVideoReady); _flvPlayback.removeEventListener(MetadataEvent.METADATA_RECEIVED, onMetadataReceived); _flvPlayback.removeEventListener(VideoEvent.COMPLETE, onVideoComplete); _flvPlayback.removeEventListener(MetadataEvent.CUE_POINT, onCuePoint); if (_flvPlayback.stage) { removeChild(_flvPlayback); } //instead of the above line, I also tried just removeChild(_flvPlayback); _flvPlayback = null; Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: Thursday, September 30, 2010 11:27 PM To: Flash Coders List Subject: RE: [Flashcoders] FLV audio doesn't stop You might want to try to pause the video before stopping, unloading and reloading Geez Karl, I think that might have fixed it... at least, since I added the pause() before the stop() and everything else, I cannot reproduce the bug... Stupid, you would think that calling flvPlayback.stop() would stop the audio as well! If that was it, then I'm so happy - thanks Karl, Deepanjan, and Henrik. I'll keep trying to break it and see if the bug is still there, so keeping my fingers crossed. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
Try pausing, stopping then closing. _flvPlayback.pause(); _flvPlayback.stop(); _flvPlayback.getVideoPlayer(0).close(); //close the netstream // Maybe also replace the above line with //_flvPlayback.close(); //Kind of reaching on this one. :) _flvPlayback.removeEventListener(VideoEvent.READY, onVideoReady); flvPlayback.removeEventListener(MetadataEvent.METADATA_RECEIVED, onMetadataReceived); _flvPlayback.removeEventListener(VideoEvent.COMPLETE, onVideoComplete); _flvPlayback.removeEventListener(MetadataEvent.CUE_POINT, onCuePoint); if (_flvPlayback.stage) { removeChild(_flvPlayback); } //instead of the above line, I also tried just removeChild (_flvPlayback); _flvPlayback = null; Best, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
Is this line supposed to start with a _ underscore? On Sep 30, 2010, at 10:47 PM, Karl DeSaulniers wrote: flvPlayback.removeEventListener(MetadataEvent.METADATA_RECEIVED, onMetadataReceived); Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
Disregard that last email. sry On Sep 30, 2010, at 10:47 PM, Karl DeSaulniers wrote: flvPlayback.removeEventListener(MetadataEvent.METADATA_RECEIVED, onMetadataReceived); Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FLV audio doesn't stop
Try pausing, stopping then closing. OK I'll give it a shot. // Maybe also replace the above line with //_flvPlayback.close(); //Kind of reaching on this one. :) Yeah, lol, there is no _flvPlayback.close() method, but there is an _flvPlayback.closeVideoPlayer(0); method - I'll try that too. If all else fails, I'll just make sure the user has to watch some of the video (video is definitely out of buffer mode) before advancing to the next screen where the next video is. Not ideal, but in theory it would work. I think Deepanjan is right, it has to do with the buffering in the netstream still taking place while the videoplayback component is removed. Because of that, the audio still clings on. Is there a way to interrupt or stop/kill the buffering process before it finishes? The bug 'feels' like it happens during buffering and the user, instead of waiting for buffering to finish, moves on to the next video. It doesn't seem to be reproducable when the first video has already started playing. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Thursday, September 30, 2010 11:47 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Try pausing, stopping then closing. _flvPlayback.pause(); _flvPlayback.stop(); _flvPlayback.getVideoPlayer(0).close(); //close the netstream // Maybe also replace the above line with //_flvPlayback.close(); //Kind of reaching on this one. :) _flvPlayback.removeEventListener(VideoEvent.READY, onVideoReady); flvPlayback.removeEventListener(MetadataEvent.METADATA_RECEIVED, onMetadataReceived); _flvPlayback.removeEventListener(VideoEvent.COMPLETE, onVideoComplete); _flvPlayback.removeEventListener(MetadataEvent.CUE_POINT, onCuePoint); if (_flvPlayback.stage) { removeChild(_flvPlayback); } //instead of the above line, I also tried just removeChild (_flvPlayback); _flvPlayback = null; Best, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
If it is a stream issue, maybe try loading a blank dummy stream just before the actual new stream? That should clear any data. Karl On Sep 30, 2010, at 10:57 PM, Merrill, Jason wrote: Try pausing, stopping then closing. OK I'll give it a shot. // Maybe also replace the above line with //_flvPlayback.close(); // Kind of reaching on this one. :) Yeah, lol, there is no _flvPlayback.close() method, but there is an _flvPlayback.closeVideoPlayer(0); method - I'll try that too. If all else fails, I'll just make sure the user has to watch some of the video (video is definitely out of buffer mode) before advancing to the next screen where the next video is. Not ideal, but in theory it would work. I think Deepanjan is right, it has to do with the buffering in the netstream still taking place while the videoplayback component is removed. Because of that, the audio still clings on. Is there a way to interrupt or stop/kill the buffering process before it finishes? The bug 'feels' like it happens during buffering and the user, instead of waiting for buffering to finish, moves on to the next video. It doesn't seem to be reproducable when the first video has already started playing. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Thursday, September 30, 2010 11:47 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Try pausing, stopping then closing. _flvPlayback.pause(); _flvPlayback.stop(); _flvPlayback.getVideoPlayer(0).close(); //close the netstream // Maybe also replace the above line with //_flvPlayback.close(); // Kind of reaching on this one. :) _flvPlayback.removeEventListener(VideoEvent.READY, onVideoReady); flvPlayback.removeEventListener(MetadataEvent.METADATA_RECEIVED, onMetadataReceived); _flvPlayback.removeEventListener(VideoEvent.COMPLETE, onVideoComplete); _flvPlayback.removeEventListener (MetadataEvent.CUE_POINT, onCuePoint); if (_flvPlayback.stage) { removeChild(_flvPlayback); } //instead of the above line, I also tried just removeChild (_flvPlayback); _flvPlayback = null; Best, Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] FLV audio doesn't stop
Weird issue, I seem to remember a bug similar to this in Flash player 9 where audio does not get released from memory, but I thought I read it had been fixed in Flash player 10. Yet, we are seeing this problem in flash player 10,1,xx I am playing a series of flv videos. Each video is placed inside a class that extends sprite. When the user clicks a button, there is code to remove the sprite that contains the video and any listeners associated with it, create a new sprite with a new movie. I'm doing all the right things to wait for the video to load before playing, etc. This works great locally - video gets removed, new one plays. However, when viewing my app online, sometimes (not always) when the user clicks the button, the new video plays as it should, but the audio from the previous video that was removed continues to play. I can't seem to track down why this is happening or how to fix. Anyone encounter this before and have any good fixes or workaround? Thanks. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
Hi Jason, How are you removing the video? Are you closing the NetStream and setting it to null for performance, please check. In my case that solved this problem as far as I remember. -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Thu, Sep 30, 2010 at 7:32 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Weird issue, I seem to remember a bug similar to this in Flash player 9 where audio does not get released from memory, but I thought I read it had been fixed in Flash player 10. Yet, we are seeing this problem in flash player 10,1,xx I am playing a series of flv videos. Each video is placed inside a class that extends sprite. When the user clicks a button, there is code to remove the sprite that contains the video and any listeners associated with it, create a new sprite with a new movie. I'm doing all the right things to wait for the video to load before playing, etc. This works great locally - video gets removed, new one plays. However, when viewing my app online, sometimes (not always) when the user clicks the button, the new video plays as it should, but the audio from the previous video that was removed continues to play. I can't seem to track down why this is happening or how to fix. Anyone encounter this before and have any good fixes or workaround? Thanks. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] FLV audio doesn't stop
Hmm, thanks. I'm not using Netstream, I'm using an Actionscript-created instance of the flvplaybackcomponent. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Deepanjan Das Sent: Wednesday, September 29, 2010 10:36 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Hi Jason, How are you removing the video? Are you closing the NetStream and setting it to null for performance, please check. In my case that solved this problem as far as I remember. -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Thu, Sep 30, 2010 at 7:32 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Weird issue, I seem to remember a bug similar to this in Flash player 9 where audio does not get released from memory, but I thought I read it had been fixed in Flash player 10. Yet, we are seeing this problem in flash player 10,1,xx I am playing a series of flv videos. Each video is placed inside a class that extends sprite. When the user clicks a button, there is code to remove the sprite that contains the video and any listeners associated with it, create a new sprite with a new movie. I'm doing all the right things to wait for the video to load before playing, etc. This works great locally - video gets removed, new one plays. However, when viewing my app online, sometimes (not always) when the user clicks the button, the new video plays as it should, but the audio from the previous video that was removed continues to play. I can't seem to track down why this is happening or how to fix. Anyone encounter this before and have any good fixes or workaround? Thanks. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
I have encountered this as well with an e-Learning Flash Course I did last year. I read somewhere that unloadAndStop() was suppose to work when unloading the current swf/flv. I think this is a Flash 10 only method. Perhaps this might fix your issue? On Wed, Sep 29, 2010 at 10:02 PM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Weird issue, I seem to remember a bug similar to this in Flash player 9 where audio does not get released from memory, but I thought I read it had been fixed in Flash player 10. Yet, we are seeing this problem in flash player 10,1,xx I am playing a series of flv videos. Each video is placed inside a class that extends sprite. When the user clicks a button, there is code to remove the sprite that contains the video and any listeners associated with it, create a new sprite with a new movie. I'm doing all the right things to wait for the video to load before playing, etc. This works great locally - video gets removed, new one plays. However, when viewing my app online, sometimes (not always) when the user clicks the button, the new video plays as it should, but the audio from the previous video that was removed continues to play. I can't seem to track down why this is happening or how to fix. Anyone encounter this before and have any good fixes or workaround? Thanks. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
Hi, I am also using the FLVPlayback Component, but accessed the NetStream from the component to close it: this.video.getVideoPlayer(0).close(); this.video.getVideoPlayer(0).netStream.close(); -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Thu, Sep 30, 2010 at 8:11 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Hmm, thanks. I'm not using Netstream, I'm using an Actionscript-created instance of the flvplaybackcomponent. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Deepanjan Das Sent: Wednesday, September 29, 2010 10:36 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Hi Jason, How are you removing the video? Are you closing the NetStream and setting it to null for performance, please check. In my case that solved this problem as far as I remember. -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Thu, Sep 30, 2010 at 7:32 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Weird issue, I seem to remember a bug similar to this in Flash player 9 where audio does not get released from memory, but I thought I read it had been fixed in Flash player 10. Yet, we are seeing this problem in flash player 10,1,xx I am playing a series of flv videos. Each video is placed inside a class that extends sprite. When the user clicks a button, there is code to remove the sprite that contains the video and any listeners associated with it, create a new sprite with a new movie. I'm doing all the right things to wait for the video to load before playing, etc. This works great locally - video gets removed, new one plays. However, when viewing my app online, sometimes (not always) when the user clicks the button, the new video plays as it should, but the audio from the previous video that was removed continues to play. I can't seem to track down why this is happening or how to fix. Anyone encounter this before and have any good fixes or workaround? Thanks. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] FLV audio doesn't stop
Hi Jason, I believe you have to initiate the FLV to actually stop before unloading. IE: myVideo.stop(); myVideo.removeListeners(); //then unload or load a new video. I had this situation with a video player that played multiple videos and stopping the video before I loaded another one did the trick. Just remember to unload any listeners for cuepoints and such from the previous video before loading the new one or leaving the area. HTH, Best, Karl On Sep 29, 2010, at 9:49 PM, Deepanjan Das wrote: Hi, I am also using the FLVPlayback Component, but accessed the NetStream from the component to close it: this.video.getVideoPlayer(0).close(); this.video.getVideoPlayer(0).netStream.close(); -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Thu, Sep 30, 2010 at 8:11 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Hmm, thanks. I'm not using Netstream, I'm using an Actionscript- created instance of the flvplaybackcomponent. Jason Merrill Instructional Technology Architect Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Deepanjan Das Sent: Wednesday, September 29, 2010 10:36 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Hi Jason, How are you removing the video? Are you closing the NetStream and setting it to null for performance, please check. In my case that solved this problem as far as I remember. -- Warm Regards Deepanjan Das W: http://deepanjandas.wordpress.com || Om Manasamarthadata Shri Aniruddhaya Namah || *Think of the environment before printing this email* On Thu, Sep 30, 2010 at 7:32 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Weird issue, I seem to remember a bug similar to this in Flash player 9 where audio does not get released from memory, but I thought I read it had been fixed in Flash player 10. Yet, we are seeing this problem in flash player 10,1,xx I am playing a series of flv videos. Each video is placed inside a class that extends sprite. When the user clicks a button, there is code to remove the sprite that contains the video and any listeners associated with it, create a new sprite with a new movie. I'm doing all the right things to wait for the video to load before playing, etc. This works great locally - video gets removed, new one plays. However, when viewing my app online, sometimes (not always) when the user clicks the button, the new video plays as it should, but the audio from the previous video that was removed continues to play. I can't seem to track down why this is happening or how to fix. Anyone encounter this before and have any good fixes or workaround? Thanks. Jason Merrill Instructional Technology Architect Bank of America Global Learning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders