Hi,

Can someone help me with this code. I have a method that opens a stream. Each time the method is called a new stream is opend. If I open more than one stream I want be able to close some stream.

Code:
VideoPlayer vpl;
public void OpenStream(Source source){
vpl = new VidoPlayer(source);
vpl.Start();
}
If I do this:
Code:
public void CloseStream(){
vpl.Stop();
}
only the last instance of the open stream will close. How to make it close all streams or just the selected one?