Hi,
I want to get the status of a stream file running/not running from client application. I have modified the package given in the forum [ https://www.wowza.com/docs/how-to-add-a-web-service-interface-to-wowza-media-server-and-integrate-with-net-dotnet and added another method that uses the code below:
IMediaStream mediaStream = appInstance.getStreams().getStream(streamName);
if(mediaStream != null)
{
isRunning = mediaStream.isPlaying();
if(isRunning)
status = “Stream is running”;
else
status = “Stream is not running”;
}
else
status = “Stream name not found”;
Problem: When the stream is stopped, it returns “Stream name not found”. I expected it to return “Stream is not running” assuming stream file exists in the system but not running at the moment and “Stream not found” should be returned when I pass an invalid stream file name that doesn’t exist in the system. Does it mean the getStreams() will only return file names that are live and NOT all the stream files present in the system? Which API or property can I use to solve it?
Thanks,
Shrini