# Simple Question About Netstream.Play

**URL:** <https://forum.kirupa.com/t/simple-question-about-netstream-play/253217>\
**Category:** flash\
**Created:** [February 28, 2008, 6:11am UTC](https://forum.kirupa.com/t/simple-question-about-netstream-play/253217 "2008-02-28T06:11:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saddu](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Saddu](https://forum.kirupa.com/u/Saddu)\
**Post date:** [February 28, 2008, 6:11am UTC](https://forum.kirupa.com/t/simple-question-about-netstream-play/253217/1 "2008-02-28T06:11:24Z")

</div>

Hi All,

I have a doubt in using the Netstream.Play. Please explain me how it works.

My Doubt is :

In all clients am playing a stream using the following code :

ns.play(“firststream”,-1);

The above one works fine.

Now i want to play a second stream, what should i do?

If i give the following codes what will happen?

ns.play(“secondstream”,-1); is this the correct way?

or should i first stop the stream using ns.stop() and play the second stream using ns.play(“secondstream”,-1);

or should i use another netstream like ns2.play(“secondstream”,-1);

My expectation is when one stream is playing i want to stop the previous one which is already playing and start playing a new one, please put me into the correct way, i coudlnt explore how the netstream.play works, someone of you please advice me on how this works.

Thnaks,  
Saddu.
