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 <
[email protected]> 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
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders