Results 1 to 2 of 2

Thread: Iterate over incoming streams and get source urls in HTTPProvider

  1. #1
    Join Date
    Dec 2011
    Posts
    6

    Default Iterate over incoming streams and get source urls in HTTPProvider

    Hi,

    Is there a way, in a HTTPProvider, to iterate over the incoming streams and get their source urls?

    I'd like to check if an incoming stream is already started for an url before starting a new one.

    I looked at the sample "How to get detailed server info with an HTTPProvider", it does not contain the source RTSP url.

    Thanks in advance

  2. #2
    Join Date
    May 2013
    Posts
    681

    Default

    Hello

    You should be able to iterate through the published streams and obtain the mediacaster stream urls through a similar procedure as follows:
    IApplicationInstance appInstance = vhost.getApplication("[your-app-name]").getAppInstance("[your-app-instance-name]");
    List<String> streams = appInstance.getMediaCasterStreams().getMediaCasterNames();
    for (String streamName : streams) {
        String url = ((ApplicationInstance)appInstance).internalResolveStreamAlias(streamName);  
        WMSLoggerFactory.getLogger(getClass()).info("*URL: "+url);
    }
    Thanks,
    Matt

Similar Threads

  1. Is there a way to list incoming streams in an HTTPProvider?
    By raylau in forum Wowza Streaming Server Java API
    Replies: 2
    Last Post: 07-26-2014, 10:23 AM
  2. Securing incoming RTSP streams
    By majidkhan in forum General Forum
    Replies: 4
    Last Post: 07-02-2014, 10:00 AM
  3. Number of incoming RTSP streams
    By robstreamhosting in forum General Forum
    Replies: 4
    Last Post: 03-27-2013, 03:17 PM
  4. Multiple incoming streams on demand
    By enricod75 in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 07-23-2012, 05:20 AM

Posting Permissions

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