[wp-trac] [WordPress Trac] #52170: Create an embed and/or block for YouTube Music

WordPress Trac noreply at wordpress.org
Thu Dec 24 19:51:11 UTC 2020


#52170: Create an embed and/or block for YouTube Music
-----------------------------+------------------------------
 Reporter:  sterndata        |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Embeds           |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by Otto42):

 The difference in the ads has to do with the content it's playing.

 The "uploaded" music from your own collection is not public, obviously, so
 it can't be embedded anywhere. These are actually saved as videos on a
 hidden private YT account, called "Music Library Uploads". These videos
 are basically the same as any other video. They only have one frame for
 the video, which is usually the cover art, and then the audio is standard
 MP4 audio. It's a thin wrapper around the song, basically.

 The ads come from the player itself, which is on your device or in the
 browser. There is no specific way to embed that, there's no public API for
 it, etc. It's all internal stuff. There's some unofficial APIs, but when
 you dig into it, the actual player part is basically the same as the
 normal youtube player. So, the YTM one is not specifically embeddable, and
 for uploads which are private they can't be embedded anyway.

 So better off using the normal YT embeds. At most, the "music.google.com"
 could be added and changed to "youtube.com" and thus allow the existing
 code to work without messing with the URL, but that's about it until
 YouTube expands the reach and abilities of YT Music.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52170#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list