我们有几个播客,每个播客都有多集。我们应该为播客和剧集返回哪种项目类型以及该项目应该是哪种类型?
我们目前使用itemtype.collection作为播客和剧集列表,每集都有itemtype.stream,然后将该项设置为streamMetadata。
然而,这不允许擦洗。
播客:
var mediaData = new mediaCollection()
{
id = string.Format({0}:{1}:{2}",Prefix, moodId, moodItem.Id),
title = moodItem.Id,
itemType = itemType.collection,
onDemand = true,
liveNow = false,
language = "Norwegian",
liveNowSpecified = false,
albumArtURI = new albumArtUrl() { Value = moodItem.ImageUri.ToString(), requiresAuthentication = false, requiresAuthenticationSpecified = false}
};
集数:
return new mediaMetadata
{
id = string.Format("{0}:{1}:{2}:{3}", Prefix, moodId, podcast.Id, episode.Publishdate.Ticks.ToString()),
title = episode.Title,
itemType = itemType.stream,
mimeType = "audio/mpeg",
onDemand = true,
onDemandSpecified = true,
language = "Norwegian",
Item = new streamMetadata()
{
currentShow = episode.Title,
logo = new albumArtUrl { Value = podcast.ImageUri.ToString(), requiresAuthentication = false, requiresAuthenticationSpecified = true },
currentHost = "Someone",
}
};
答案 0 :(得分:1)
您的播客getMetadataResponse
应为itemType track
,且应包含canResume true
。查看this page了解具体信息和示例。