在单一视频 Feed 中,<CollectionList>
用于向 YouTube 上的播放列表添加音乐视频。录音 Feed 中不使用 <CollectionList>
。
要向现有播放列表添加视频,您可以使用 <CollectionId>
(<CollectionType>
为“FilmBundle”)中专门的“YOUTUBE:PLAYLIST_ID”命名空间。
<CollectionList>
<Collection>
<CollectionId>
<ProprietaryId Namespace="YOUTUBE:PLAYLIST_ID">PLONRDPtQh-FLMXFMM-SJHySwjpidVXmzw</ProprietaryId>
</CollectionId>
<CollectionType>FilmBundle</CollectionType>
<CollectionReference>X1</CollectionReference>
<!-- 如果提供了标题,则系统会更新现有播放列表的标题。 -->
<Title>
<TitleText>更新后的播放列表标题</TitleText>
</Title>
<CollectionResourceReferenceList>
<CollectionResourceReference>
<!-- 将视频添加到播放列表的开头。 -->
<SequenceNumber>1</SequenceNumber>
<CollectionResourceReference>A1</CollectionResourceReference>
</CollectionResourceReference>
</CollectionResourceReferenceList>
</Collection>
</CollectionList>