Waiting for the gift of sound and vision.
Archive: January 27th, 2016
Whenever I hit inbox zero, I always think there should be a Quake-style audio announcement.
Killing spree!
Rampage!
Unstoppable!
Huffduffing for podcasters
I was pointed to this discussion thread which is talking about how to make podcast episodes findable for services like Huffduffer.
The logic behind Huffduffer’s bookmarklet goes something like this…
- Find any
aelements that havehrefvalues ending in “.mp3” or “.m4a”. - If there’s just one audio on the page, use that.
- If there are multiple audio, offer a list to the user and have them choose.
If that doesn’t work…
- Look for a
linkelement with arelvalue of “enclosure”. - Look for a
metaelementpropertyvalue of “og:audio”. - Look for
audioelements and grab either thesrcattribute of the element itself, or thesrcattribute of anysourceelements within theaudioelement.
If that doesn’t work…
- Try to find a link to an RSS feed (a link that looks like “rss” or “feed” or “atom”).
- If there is a feed, parse that for
enclosureelements and present that list to the user.
That covers 80-90% of use cases. There are still situations where the actual audio file for a podcast episode is heavily obfuscated—either with clickjacking JavaScript “download” links, or links that point to a redirection to the actual file.
If you have a podcast and you want your episodes to be sharable and huffduffable, you have a few options:
Have a link to the audio file for the episode somewhere on the page, something like:
<a href="/path/to/file.mp3">download</a>
That’s the simplest option. If you’re hosting with Soundcloud, this is pretty much impossible to accomplish: they deliberately obfuscate and time-limit the audio file, even if you want it to be downloadable (that “download” link literally only allows a user to download that file in that moment).
If you don’t want a visible link on the page, you could use metadata in the head of your document. Either:
<link rel="enclosure" href="/path/to/file.mp3">
Or:
<meta property="og:audio" content="/path/to/file.mp3">
And if you want to encourage people to huffduff an episode of your podcast, you can also include a “huffduff it” link, like this:
<a href="https://huffduffer.com/add?page=referrer">huffduff it</a>
You can also use ?page=referer—that misspelling has become canonised thanks to HTTP.
There you go, my podcasting friends. However you decide to do it, I hope you’ll make your episodes sharable.
Introducing Soundslice offline mode | The Soundslice Blog
Adrian documents how he’s using Service Workers on Soundslice. I could imagine doing something similar for The Session.