I’m using this code from Wowza official page and ((MediaStream)stream).processSendDirectMessages(); gives me a warn in the log: MediaStream#processSendDirectMessages() is no longer available for api use.
Any idea about how to solve it or wich is the right method?
public void sendTextDataMessage(IMediaStream stream, OnTextData onTextData) {
try {
AMFDataObj amfData = new AMFDataObj();
amfData.put("text", new AMFDataItem(onTextData.text));
amfData.put("language", new AMFDataItem(languageID));
amfData.put("trackid", new AMFDataItem(trackNumber));
stream.sendDirect("onTextData", amfData);
((MediaStream)stream).processSendDirectMessages();
} catch(Exception e) {
e.printStackTrace();
}
}
Probably a question best answered by Wowza engineers. However, looking at some GitHub stuff I would assume that most of the examples & modules don’t look like they were updated recently.