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