Results 1 to 2 of 2

Thread: IMediaStream

  1. #1

    Default IMediaStream

    Hi!

    I have:

    import com.wowza.wms.stream.publish.Stream;

    ...
    private Stream MyStream;
    ...

    How can I obtain IMediaStream which is associated with the MyStream? I need IMediaStream to insert live captions:

    public void sendTextDataMessage(IMediaStream stream, OnTextData onTextData)
    {
    ..
    }

    Thanks!
    Atmapuri
    Last edited by Atmapuri; 06-02-2015 at 03:04 AM.

  2. #2

    Default

    Quote Originally Posted by Atmapuri View Post
    Hi!

    I have:

    import com.wowza.wms.stream.publish.Stream;

    ...
    private Stream MyStream;
    ...

    How can I obtain IMediaStream which is associated with the MyStream? I need IMediaStream to insert live captions:
    Ok, found a solution for that:

    IMediaStream stream = publishedStream.getPublisher().getStream();

    Now, the question. Are these two lines thread safe:

    stream.sendDirect("onTextData", amfData);
    ((MediaStream)stream).processSendDirectMessages();

    In the sense that I could have multiple clients calling these two lines each client from their own thread but all using the same stream object? Or is a lock required?

    Thanks!
    Atmapuri

Similar Threads

  1. IMediaStream.setName() copying streams?
    By mhurley in forum Server-side Modules and Code Samples Discussion
    Replies: 3
    Last Post: 12-17-2012, 12:26 AM
  2. How to call IMediaStream::registerCallback?
    By Yvonne in forum General Forum
    Replies: 9
    Last Post: 01-05-2012, 12:19 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
  •