Dear All,
We have a daily live stream which is recorded with the “Record all incoming streams” setting of our application.
We would like to give the opportunity to my publisher to give some additionnal information about the stream so we implement an HTTPprovider2Base with the following code :
public void onHTTPRequest(IVHost invhost, IHTTPRequest req, IHTTPResponse resp) {
String titleToSet ;
Map<String, List<String>> params = req.getParameterMap();
if( params.containsKey("setTitle") ) {
String title = params.get("setTitle").get(0);
IMediaStream stream = VHostSingleton.getInstance("_defaultVHost_").getApplication("live").getAppInstance("_definst_").getStreams().getStream("afopi");
if (stream != null)
{
AMFDataMixedArray data = new AMFDataMixedArray();
data.put("title", new AMFDataItem(title));
stream.sendDirect("onTextData", data);
WMSLoggerFactory.getLogger(null).info("SetTitle : " + title);
}
}
So normally the metadata title is added to the stream and then to the recorded stream.
I now need to read this metadata from a server side module? is there some kind of MP4 utils to read these information?
Best regards
Richard