FMLE metadata in FMS streams?
Hey I am trying to read the metadata send from FMLE 3.2 on the server side of FMS 4.5, but I was unable after many try to find the custom metadata I set up in FMLE.
Here is the serverside function I use:
function getmd(stream){
// var infoObject = Stream.getOnMetaData(stream.type+":"+stream.name+sname+".f4v");
var infoObject = Stream.getOnMetaData(stream.type+":"+stream.name);
trace("Metadata:");
for(i in infoObject){
trace(i + " = " + infoObject);
}
for(i in infoObject["trackinfo"]){
trace(i + " = " + infoObject["trackinfo"]);
}
for(i in infoObject["trackinfo"][0]){
trace(i + " = " + infoObject["trackinfo"][0]);
}
for(i in infoObject["trackinfo"][1]){
trace(i + " = " + infoObject["trackinfo"][1]);
}
for(i in infoObject["trackinfo"][0]["sampledescription"][0]){
trace(i + " = " + infoObject["trackinfo"][0]["sampledescription"][0]);
}
for(i in infoObject["trackinfo"][1]["sampledescription"][0]){
trace(i + " = " + infoObject["trackinfo"][1]["sampledescription"][0]);
}
}
The output I get in Flash Media Admin Console, in Live log is:
Metadata:
duration = 25.44
moovPosition = 36
width = 768
height = 576
videocodecid = avc1
avcprofile = 77
avclevel = 31
videoframerate = 25.03930817610063
trackinfo = [object Object],[object Object]
0 = [object Object]
1 = [object Object]
length = 0
timescale = 1000
language = eng
sampledescription = [object Object]
length = 25440
timescale = 1000
language = eng
sampledescription = [object Object]
sampletype = amf0
sampletype = avc1
So as you can see there is no custom metadata visible from FMLE in this output. Ive tryed getting the metadata both from a live stream and also from a recorded version of the same stream, in both cases I get the same metadata's but no custom metadata from FMLE.
Note: When I speak about custom metadata from FMLE I speak about the information you can set up in Panel Options > Metadata interface.
So my question is: How can one read server side the custom metadata he sets in the FMLE interface?
Thank you.
