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
[Flashcoders] root.loaderInfo doesn't exist
Hi all - Have a weird situation in Flash CS5 and I'm not sure what the problem is, if it's a bug, or a corrupted FLA. Here's the scenario. I have two FLAs -- one brand new created by me, a second given to me by a client. In the first keyframe I have this in both: var keyStr:String; var valueStr:String; var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters; for (keyStr in paramObj) { valueStr = String(paramObj[keyStr]); trace(\t + keyStr + :\t + valueStr + \n); } I have two identical HTML documents embedding each SWF (separately). In my SWF, the flashvars (passed in via SWFObject) work fine. In the client's, the loaderInfo data is completely undefined. Nothing there. Just to test this out more, I then tried this with both: var flashvars:Object = {}; addEventListener( Event.ADDED_TO_STAGE, init ); function init( e:Event ):void { removeEventListener( Event.ADDED_TO_STAGE, init ); flashvars = stage.loaderInfo.parameters; var keyStr:String; for (keyStr in flashvars) { valueStr = String(flashvars[keyStr]); trace(\t + keyStr + :\t + valueStr + \n); } In my SWF, the event doesn't fire (which is fine, for it grabs this.root.loaderInfo as it should). In the client's SWF, the stage event *does* fire, and then the parameters are avail (through stage). Any ideas what could be causing this discrepancy? The timelines of both SWFs are identical, and neither are being loaded into a parent SWF. It feels like something low-level is going on that I'm not aware of. ___ 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
[Flashcoders] CS5 where to put tween engines etc?
Hi all, just upgraded from CS3 to CS5. Where do I put external classes and libraries like TweenLite? In CS3 they were in: Adobe Flash CS3 Configuration Actionscript 3.0 Classes ... but that path doesn't exist in CS5. Anyone upgraded and can help? Cheers. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] CS5 where to put tween engines etc?
Keep one spot someplace where you keep all your packages (yours and 3rd party). Then link to them there. If you want to use SVN, use that same spot. Keeps things uncluttered. For project work where you have lesser-importance or lesser-reusable code, slap those in your project directory to keep your main location solid. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net On Thu, Sep 30, 2010 at 2:09 PM, David Hunter davehunte...@hotmail.comwrote: Hi all, just upgraded from CS3 to CS5. Where do I put external classes and libraries like TweenLite? In CS3 they were in: Adobe Flash CS3 Configuration Actionscript 3.0 Classes ... but that path doesn't exist in CS5. Anyone upgraded and can help? Cheers. ___ 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] CS5 where to put tween engines etc?
That's the answer to the wrong question. The truth is that the option is exactly where you are looking, just look again. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] CS5 where to put tween engines etc?
Wherever you want. You need to specify class paths for projects in the Flash IDE. Eric gave some good advice. Probably wasn't a good thing you had those classes in an Adobe folder anyway. When you pass projects around, all the associated code should travel with it, so create a project folder and put it in there. Tools like FlashDevelop and Flashbuilder are great at organizing projects. Jason Merrill Instructional Technology Architectb Bank of America Global Learning -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter Sent: Thursday, September 30, 2010 2:10 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] CS5 where to put tween engines etc? Hi all, just upgraded from CS3 to CS5. Where do I put external classes and libraries like TweenLite? In CS3 they were in: Adobe Flash CS3 Configuration Actionscript 3.0 Classes ... but that path doesn't exist in CS5. Anyone upgraded and can help? Cheers. ___ 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] CS5 where to put tween engines etc?
This should work in CS5 as well: http://screenr.com/EK4 Nathan Mynarcik nat...@mynarcik.com 254.749.2525 www.mynarcik.com On Thu, Sep 30, 2010 at 2:09 PM, David Hunter davehunte...@hotmail.comwrote: Hi all, just upgraded from CS3 to CS5. Where do I put external classes and libraries like TweenLite? In CS3 they were in: Adobe Flash CS3 Configuration Actionscript 3.0 Classes ... but that path doesn't exist in CS5. Anyone upgraded and can help? Cheers. ___ 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] CS5 where to put tween engines etc?
thanks for all your prompt advice. i'm ok with keeping my own classes and packages local to the project. but i don't want to clog up my drive unnecessarily with the same tween engine over and over. i have tried putting a folder Flash_Packages in my Documents folder and linking to it in the Actionscript 3.0 preferences, like your video but code hinting isn't recognising import org what could be wrong? Date: Thu, 30 Sep 2010 14:26:22 -0400 Subject: Re: [Flashcoders] CS5 where to put tween engines etc? From: nat...@mynarcik.com To: flashcoders@chattyfig.figleaf.com This should work in CS5 as well: http://screenr.com/EK4 Nathan Mynarcik nat...@mynarcik.com 254.749.2525 www.mynarcik.com On Thu, Sep 30, 2010 at 2:09 PM, David Hunter davehunte...@hotmail.comwrote: Hi all, just upgraded from CS3 to CS5. Where do I put external classes and libraries like TweenLite? In CS3 they were in: Adobe Flash CS3 Configuration Actionscript 3.0 Classes ... but that path doesn't exist in CS5. Anyone upgraded and can help? Cheers. ___ 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] CS5 where to put tween engines etc?
got it working. forgot to package my test class properly! idiot. thanks for all the speedy and responses. From: davehunte...@hotmail.com To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] CS5 where to put tween engines etc? Date: Thu, 30 Sep 2010 18:39:11 + thanks for all your prompt advice. i'm ok with keeping my own classes and packages local to the project. but i don't want to clog up my drive unnecessarily with the same tween engine over and over. i have tried putting a folder Flash_Packages in my Documents folder and linking to it in the Actionscript 3.0 preferences, like your video but code hinting isn't recognising import org what could be wrong? Date: Thu, 30 Sep 2010 14:26:22 -0400 Subject: Re: [Flashcoders] CS5 where to put tween engines etc? From: nat...@mynarcik.com To: flashcoders@chattyfig.figleaf.com This should work in CS5 as well: http://screenr.com/EK4 Nathan Mynarcik nat...@mynarcik.com 254.749.2525 www.mynarcik.com On Thu, Sep 30, 2010 at 2:09 PM, David Hunter davehunte...@hotmail.comwrote: Hi all, just upgraded from CS3 to CS5. Where do I put external classes and libraries like TweenLite? In CS3 they were in: Adobe Flash CS3 Configuration Actionscript 3.0 Classes ... but that path doesn't exist in CS5. Anyone upgraded and can help? Cheers. ___ 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] CS5 where to put tween engines etc?
It's much better if you keep all classes and libraries local to the project, even if it means 'clogging' up drive space with copies of the same thing. This ensures that A) projects are portable, as you can pack/move them all from the same source without having to care about dependencies; and B) you don't depend on library versioning, where one update in project X can break project Y silently Zeh On Thu, Sep 30, 2010 at 2:39 PM, David Hunter davehunte...@hotmail.comwrote: thanks for all your prompt advice. i'm ok with keeping my own classes and packages local to the project. but i don't want to clog up my drive unnecessarily with the same tween engine over and over. i have tried putting a folder Flash_Packages in my Documents folder and linking to it in the Actionscript 3.0 preferences, like your video but code hinting isn't recognising import org what could be wrong? Date: Thu, 30 Sep 2010 14:26:22 -0400 Subject: Re: [Flashcoders] CS5 where to put tween engines etc? From: nat...@mynarcik.com To: flashcoders@chattyfig.figleaf.com This should work in CS5 as well: http://screenr.com/EK4 Nathan Mynarcik nat...@mynarcik.com 254.749.2525 www.mynarcik.com On Thu, Sep 30, 2010 at 2:09 PM, David Hunter davehunte...@hotmail.com wrote: Hi all, just upgraded from CS3 to CS5. Where do I put external classes and libraries like TweenLite? In CS3 they were in: Adobe Flash CS3 Configuration Actionscript 3.0 Classes ... but that path doesn't exist in CS5. Anyone upgraded and can help? Cheers. ___ 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] CS5 where to put tween engines etc?
is the class you are trying to import inside the Flash_Packages/org folder? Nathan Mynarcik nat...@mynarcik.com 254.749.2525 www.mynarcik.com On Thu, Sep 30, 2010 at 2:39 PM, David Hunter davehunte...@hotmail.comwrote: thanks for all your prompt advice. i'm ok with keeping my own classes and packages local to the project. but i don't want to clog up my drive unnecessarily with the same tween engine over and over. i have tried putting a folder Flash_Packages in my Documents folder and linking to it in the Actionscript 3.0 preferences, like your video but code hinting isn't recognising import org what could be wrong? Date: Thu, 30 Sep 2010 14:26:22 -0400 Subject: Re: [Flashcoders] CS5 where to put tween engines etc? From: nat...@mynarcik.com To: flashcoders@chattyfig.figleaf.com This should work in CS5 as well: http://screenr.com/EK4 Nathan Mynarcik nat...@mynarcik.com 254.749.2525 www.mynarcik.com On Thu, Sep 30, 2010 at 2:09 PM, David Hunter davehunte...@hotmail.com wrote: Hi all, just upgraded from CS3 to CS5. Where do I put external classes and libraries like TweenLite? In CS3 they were in: Adobe Flash CS3 Configuration Actionscript 3.0 Classes ... but that path doesn't exist in CS5. Anyone upgraded and can help? Cheers. ___ 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] CS5 where to put tween engines etc?
It's much better if you keep all classes and libraries local to the project, even if it means 'clogging' up drive space with copies of the same thing. This ensures that A) projects are portable, as you can pack/move them all from the same source without having to care about dependencies; and B) you don't depend on library versioning, where one update in project X can break project Y silently This sounds like a job for symlinks. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] root.loaderInfo doesn't exist
Well, I'm going to answer my own question here for I found the problem. It's related to the new text field types in Flash CS5. Using the old 'classic' style of text field makes them behave the same way. It seems as though those newfangled text fields like to mess with all kinds of things. On Sep 30, 2010, at 11:57 AM, Todd Dominey wrote: Hi all - Have a weird situation in Flash CS5 and I'm not sure what the problem is, if it's a bug, or a corrupted FLA. Here's the scenario. I have two FLAs -- one brand new created by me, a second given to me by a client. In the first keyframe I have this in both: var keyStr:String; var valueStr:String; var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters; for (keyStr in paramObj) { valueStr = String(paramObj[keyStr]); trace(\t + keyStr + :\t + valueStr + \n); } I have two identical HTML documents embedding each SWF (separately). In my SWF, the flashvars (passed in via SWFObject) work fine. In the client's, the loaderInfo data is completely undefined. Nothing there. Just to test this out more, I then tried this with both: var flashvars:Object = {}; addEventListener( Event.ADDED_TO_STAGE, init ); function init( e:Event ):void { removeEventListener( Event.ADDED_TO_STAGE, init ); flashvars = stage.loaderInfo.parameters; var keyStr:String; for (keyStr in flashvars) { valueStr = String(flashvars[keyStr]); trace(\t + keyStr + :\t + valueStr + \n); } In my SWF, the event doesn't fire (which is fine, for it grabs this.root.loaderInfo as it should). In the client's SWF, the stage event *does* fire, and then the parameters are avail (through stage). Any ideas what could be causing this discrepancy? The timelines of both SWFs are identical, and neither are being loaded into a parent SWF. It feels like something low-level is going on that I'm not aware of. ___ 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
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