2017-01-13 4 views
0

複数のエピソードを持つポッドキャストがいくつかあります。ポッドキャストやエピソードのために返すアイテムタイプはどれですか?Sonosポッドキャストとエピソードのリストのアイテムタイプとアイテムコンテンツ

現在、Podcastとエピソードのリストには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

あなたgetMetadataResponseitemType trackであるべきとcanResume trueを含める必要があります。特定の情報と例については、this pageをご覧ください。

+0

ポッドキャストをオーディオブック構造に強制するのは間違いです。オーディオブックとポッドキャストは2つの異なるもので、私はデータ/コードがこれを反映していると信じています。 – hsulriksen

関連する問題