播客和剧集列表的 Sonos 项目类型和项目内容
Sonos Itemtype and item content for list of podcasts and episodes
我们有几个播客,每个都有多个剧集。对于播客和剧集,我们应该 return 哪种项目类型?项目应该是哪种类型?
我们目前使用 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",
}
};
您的播客 getMetadataResponse
应该是 itemType track
并且应该包括 canResume true
。查看 this page 了解具体信息和示例。
我们有几个播客,每个都有多个剧集。对于播客和剧集,我们应该 return 哪种项目类型?项目应该是哪种类型?
我们目前使用 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",
}
};
您的播客 getMetadataResponse
应该是 itemType track
并且应该包括 canResume true
。查看 this page 了解具体信息和示例。