Skip to main content
This topic is closed to new replies. Start a new post to keep the conversation going.
Colin Holgate
Colin HolgateCorrect answer
Inspiring
May 26, 2014 3:14 PM UTC

The audio in a net stream is not a regular Sound object, and so you can’t stop the sound using the sound mixer. You should be able to stop the stream like this:

ns.stop();

where ns would be your NetStream variable.

3 replies

Participant
May 26, 2014 3:06 PM UTC

Really? No one else has video and sound persisting after navigating away from the frame housing the media asset? Onwards to Titanium ...

Translate
Colin Holgate
Colin HolgateCorrect answer
Inspiring
May 26, 2014 3:14 PM UTC

The audio in a net stream is not a regular Sound object, and so you can’t stop the sound using the sound mixer. You should be able to stop the stream like this:

ns.stop();

where ns would be your NetStream variable.

Translate
Participant
May 27, 2014 7:46 AM UTC

Thank you Colin. I reconfigured to stop video playback altogether upon frame exit, because the sound would stop with your code snippet, but I suspect the video would still be streaming. Users would therefore incur higher 3G data costs. This worked for me.

--------------------------------------------------------------------------------------------------------------

//GoTo  Channel Guide

btn_back_HOME.addEventListener(MouseEvent.CLICK,fl_BackHOME);

function fl_BackHOME(event:MouseEvent):void

{

    tv1.addEventListener(Event.REMOVED_FROM_STAGE, stopPlay);

    function stopPlay(e:Event)

{

      tv1.stop();

}

    gotoAndStop("home");

}

--------------------------------------------------------------------------------------------------------------

Kind regards

Translate