Sonos项目类型和项目内容,用于播客和剧集列表

时间:2017-01-13 11:25:14

标签: sonos

我们有几个播客,每个播客都有多集。我们应该为播客和剧集返回哪种项目类型以及该项目应该是哪种类型?

我们目前使用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",
    }
};

1 个答案:

答案 0 :(得分:1)

您的播客getMetadataResponse应为itemType track,且应包含canResume true。查看this page了解具体信息和示例。