Results 1 to 3 of 3

Thread: Reading stream file status using getStreams().getStream()

  1. #1
    Join Date
    Jan 2015

    Default Reading stream file status using getStreams().getStream()

    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 [] and added another method that uses the code below:

    IMediaStream mediaStream = appInstance.getStreams().getStream(streamName);
    if(mediaStream != null)
    isRunning = mediaStream.isPlaying();
    status = "Stream is running";
    status = "Stream is not running";
    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?


  2. #2



    You are looking at the running streams for the application instance so


    So when there is no stream matching the name provided the object mediaStream is null.

    Wowza does not keep track of stream files not in use but you should be able to get a list using the storage directory for the appInstance, if you then call getStreams, to return all the currently running streams you can compare the two to get those that are running and those that are not.


  3. #3
    Join Date
    Mar 2015


    What is the parameter for mpeg dash?
    solitaire games

    Last edited by 016hnoor; 12-17-2015 at 04:29 AM.

Similar Threads

  1. Recording status of a stream file via HTTP Provider
    By bluestone in forum Wowza Streaming Server Java API
    Replies: 3
    Last Post: 10-31-2014, 02:55 AM
  2. API Question: IApplicationInstance.getStreams
    By grantk in forum Server-side Modules and Code Samples Discussion
    Replies: 4
    Last Post: 10-09-2012, 06:07 AM
  3. Intercept Reading of VOD File from Disk
    By jgentile in forum General Forum
    Replies: 1
    Last Post: 05-22-2012, 01:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts