I have a live radio stream using HLS and I would like to display track / artist information when we're playing a song.
As far as I can understand from the API documentation and question Streams - hasOutOfBandMetadata and getStreamingMetadata should be called for HLS if we have hasOutOfBandMetadata set to true.
The mime type we return is "application/vnd.apple.mpegurl".
getMetaData returns a list of channels, where we build each channel with something like this
return new mediaMetadata
{
id = string.Format("{0}:{1}", Prefix, (string)channel["id"]),
title = (string)channel["title"],
itemType = itemType.stream,
mimeType = "application/vnd.apple.mpegurl",
onDemand = false,
liveNow = true,
Item = new streamMetadata
{
currentShow = "Test title",
currentHost = "Someone"
}
};
And getMediaMetadata returns
return new getMediaMetadataResponse
{
getMediaMetadataResult = new getMediaMetadataResponseGetMediaMetadataResult
{
Items = new object[] {
new streamMetadata
{
title = (string)mediaElement["title"],
hasOutOfBandMetadata = true,
currentShow = "Test",
currentShowId = "MKDF24444",
description = "this is the description",
hasOutOfBandMetadataSpecified = true
}
},
ItemsElementName = new[] { ItemsChoiceType.streamMetadata }
}
};
With this configuration I cannot see any calls to getStreamingMetadata.
Thanks