PRX / Play-Next.js

PRX audio embed player and landing pages.
GNU Affero General Public License v3.0
3 stars 0 forks source link

Subscribe buttons #138

Open kookster opened 9 months ago

kookster commented 9 months ago

We need buttons to subscribe on at least apple and spotify, ideally others, some of this can come from feeder if needed, some from API calls, and some from just knowing how to make a url with the right intent/schema to launch the app -

There are resources out there, folks have solved this before, probably more than I know -

How to form liks to platforms - https://github.com/nathangathright/podcast-platform-links

How to get badges/images for those links - https://github.com/nathangathright/podcast-badges

Podlove does some detection to know whether to link to web or mobile apps: https://github.com/podlove/podlove-ui/blob/development/apps/subscribe-button/src/sagas/runtime.ts

And how the podlove subscribe button implements links - https://github.com/podlove/podlove-ui/tree/development/packages/clients

rpeterman-gp commented 9 months ago

We could probably make use of @podlove/clients and @podlove/utils package to help with platform and browser detection. We will still need to get the shows Apple ID and Spotify show ID into either the RSS, passed in as a param, or from the API. I haven't been able to find an RSS namespace for providing service subscription links. Whichever option we go with to get those ID's into the Play app, we will have to have a way for producers to provide those ID's and choose which service they want subscription links for.