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