Results 1 to 4 of 4

Thread: how to get live stream with aplication name and stream name?

  1. #1
    Join Date
    Oct 2014
    Posts
    12

    Default how to get live stream with aplication name and stream name?

    public void onHTTPRequest(IVHost vhost, IHTTPRequest req, IHTTPResponse resp) {
    String app = "live";
    String streamName = "test1.stream";//test.stream is active


    if (params.containsKey("app"))
    app = params.get("app").get(0);

    if (params.containsKey("stream"))
    streamName = params.get("stream").get(0);

    IApplicationInstance appInstance = vhost.getApplication(app).getAppInstance("_definst_");
    Stream stream = (Stream)appInstance.getProperties().getProperty(streamName);
    java.util.List<PlaylistItem> itemList=stream.getPlaylist();
    ///////


    i want to get playlist, but stream is null forever.how to get live stream ?
    please help me. thanks.
    Last edited by liqz2009; 11-20-2014 at 08:15 PM.

  2. #2
    Join Date
    Oct 2014
    Posts
    12

    Default

    help me

  3. #3
    Join Date
    Oct 2014
    Posts
    12

    Default

    INFO stream create - -
    WARN server comment - Publisher.publish: Stream name already in use: test1.stream
    INFO stream publish test1.stream -

  4. #4
    Join Date
    Dec 2014
    Posts
    18

    Default

    The Stream class is used for server-side streams. It implements the IMediaStream interface but a IMediaStream is not necessarily a Stream.

    You can do this:
    IMediaStream stream = appInstance.getStreams().getStream(streamName);
    If you want to use the Stream class you will need to do your own server side-publishing. You can then point your Stream to a live stream using Stream.play(liveStreamName, -2, -1, true)

    Check out this article:
    http://www.wowza.com/forums/content....-class-streams

Similar Threads

  1. Replies: 3
    Last Post: 09-10-2013, 11:40 PM
  2. Shoutcast Aplication.xml Request
    By tribalhost in forum Live Streaming and Encoder Discussion
    Replies: 4
    Last Post: 04-10-2013, 07:30 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
  •