radio4000 icon indicating copy to clipboard operation
radio4000 copied to clipboard

New OG tags

Open 4www opened this issue 6 years ago • 5 comments

so when a user share a track url:

  • the media is the youtube video
  • the description is the track's title + body

So then it is just a wrapper around the media (here youtube), with your description.

And when the media is shared, it can be listened directly, not in the context of the radio. Just that track that you're sharing right now. If the person likes the media, excerpt of the radio, they will click the radio4000 track link that was shared, and tune in.

In any case, nobody listens to playlists, or radios, in feeds that pull in content from og tags (twitter, facebook, chat...).

4www avatar Feb 05 '19 09:02 4www

Sounds good. Only challenge I see is how we can get the YouTube embed/preview when we share the track URL?

Also, what happened to our own oembed endpoint?

oskarrough avatar Feb 05 '19 09:02 oskarrough

maybe we can use that, https://www.npmjs.com/package/ember-cli-meta-tags and build the og tag from the track info

we're using https://github.com/adopted-ember-addons/ember-page-title seems they can work together

Edit: not sure it is a priority though, just nice to have, as I think it makes sense when you share a track.

4www avatar Feb 08 '19 19:02 4www

it's not immediately clear but ember-cli-head is actually a dependency of ember-page-title, so we already have it - and can use it :]

Example:

  • https://github.com/internet4000/radio4000/blob/master/app/channel/route.js#L29-L36
  • https://github.com/internet4000/radio4000/blob/master/app/templates/head.hbs

oskarrough avatar Feb 09 '19 11:02 oskarrough

Also, these meta tags enable the r4 player embed on twitter https://zesty-cold.glitch.me/3.html

oskarrough avatar Feb 09 '19 11:02 oskarrough

Perfect! With this we can try to make:

  • channel route, embed channel r4-player
  • track route, YouTube track embed

4www avatar Feb 09 '19 12:02 4www