Results 1 to 3 of 3

Thread: Determine is stream already exists

  1. #1

    Default Determine is stream already exists

    I am creating a new Stream instance server-side using the following:

    Stream stream = Stream.createInstance(client.getAppInstance(), streamName);

    How do I determine if a stream exists in the first place so that I do not have to create a new instance of the Stream has already been created? I looked through the API docs and couldn't find a method for streamExists or something to that degree.


  2. #2
    Join Date
    Oct 2013


    client.getAppInstance().getStreams().getPublishStreamNames() can be used to determine the existence of live-streams. client.getAppInstance().getPlayStreamCountsByName() can be used to know about vod streams that are played by clients.

  3. #3


    Thanks! For additional reference to other thread viewers:

    Make sure you import the List class

    import java.util.List;

    Then I did this in one of my functions:

    List<String> list = client.getAppInstance().getStreams().getPublishStreamNames();

    WMSLoggerFactory.getLogger(null).info("Stream already exists!!");

Similar Threads

  1. Determine when a stream was published
    By bosborne in forum Server-side Modules and Code Samples Discussion
    Replies: 3
    Last Post: 03-18-2013, 09:56 AM
  2. Determine if a stream is available over HTTP
    By rfkrocktk in forum General Forum
    Replies: 3
    Last Post: 12-02-2011, 01:29 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