W plikach danych pojedynczych filmów In-Video element <CollectionList>
służy do dodawania teledysków do playlist w YouTube. <CollectionList>
nie ma zastosowania w plikach danych nagrań dźwiękowych.
Aby dołączyć film do istniejącej playlisty, możesz użyć przestrzeni nazw „YOUTUBLIE:PLAYLIST_ID” w obrębie <CollectionId>
przy ustawieniu <CollectionType>
jako „FilmBundle”.
<CollectionList>
<Collection>
<CollectionId>
<ProprietaryId Namespace="YOUTUBE:PLAYLIST_ID">PLONRDPtQh-FLMXFMM-SJHySwjpidVXmzw</ProprietaryId>
</CollectionId>
<CollectionType>FilmBundle</CollectionType>
<CollectionReference>X1</CollectionReference>
<!-- If title is provided, it will update the title of the existing playlist. -->
<Title>
<TitleText>My Updated Playlist Title</TitleText>
</Title>
<CollectionResourceReferenceList>
<CollectionResourceReference>
<!-- Adds the video at the start of the playlist. -->
<SequenceNumber>1</SequenceNumber>
<CollectionResourceReference>A1</CollectionResourceReference>
</CollectionResourceReference>
</CollectionResourceReferenceList>
</Collection>
</CollectionList>