Results 1 to 2 of 2

Thread: advice on how to create a stream programmatically

  1. #1

    Default advice on how to create a stream programmatically


    I am trying to create:
    - a live stream, which will play 24/7, available to viewers
    - a dynamic controller, through which a human will be able to change real-time the content being shown in the above live stream by specifying other live streams or static video content.

    So, onAppStart, I create a Stream object
    Stream theStream = Stream.createInstance(vhost, appInstance.getApplication().getName(), "someName");

    Then, I use"theDesiredContent", -2, -1, true);
    theStream.addToPlaylist("theDesiredContent", technicalDifficultiesMovie, 0, -1);
    to dynamically insert the content I want (where the technicalDifficultiesMovie is a fall-back in case of issues)

    Is this a good approach?

    How can I control aspects of the stream, especially buffer time? (Can I convert it to an IMediaStream somehow?)


  2. #2
    Join Date
    Dec 2007



    Take a look at this example for reference


Similar Threads

  1. connect to RSTP incoming stream programmatically
    By stefan_ts in forum Live Streaming and Encoders
    Replies: 1
    Last Post: 10-13-2014, 05:55 AM
  2. Replies: 1
    Last Post: 06-19-2013, 08:53 PM
  3. Replies: 7
    Last Post: 04-02-2013, 08:31 AM
  4. control receive stream(stream manager) programmatically?
    By sktniran in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 11-22-2011, 12:07 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