Results 1 to 3 of 3

Thread: Push Publish From Server API

  1. #1
    Join Date
    Feb 2016
    Posts
    4

    Default Push Publish From Server API

    Hey all,

    I'm trying to programmatically create/remove push publish entries to stream mpegts to localhost over some port. I've gotten it working via REST, but I've been having difficulties getting it to work via java.

    Judging by the API docs, I figured I would have to do something like:

            PushPublishRTP pushPublishBase = new PushPublishRTP();
            pushPublishBase.setPort(port);
            pushPublishBase.setHost("127.0.0.1");
            pushPublishBase.setRTPWrapped("false");
            pushPublishBase.setEntryName(entryName);
            pushPublishBase.setDstStreamName(output_name);
    
            IPushPublishSession iPushPublishSession = pushPublishBase.createPushPublishSession();
    
            appInstance.addPushPublishSession(stream, iPushPublishSession);
    But when I do that, the PushPublishMap.txt does not change. What am I missing?

    Thanks,

    James

  2. #2
    Join Date
    May 2013
    Posts
    680

    Default

    Hello

    The txt configuration should not change in this scenario as you are programmatically initiating the push publish instance. Please take a look at the following example (click the example download) for further review/testing.

    Thanks,
    Matt

  3. #3
    Join Date
    Feb 2016
    Posts
    4

    Default

    Makes sense, thanks Matt!

Similar Threads

  1. push publish to adobe media server audio prolem
    By Leo Zheng in forum General Forum
    Replies: 2
    Last Post: 07-14-2015, 07:26 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
  •