Skip to content

Instantly share code, notes, and snippets.

@davidpots
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidpots/3a6570d3aa094ada3aca to your computer and use it in GitHub Desktop.
Save davidpots/3a6570d3aa094ada3aca to your computer and use it in GitHub Desktop.

Problem: HTML audio element inconsistency across devices / apps.

To recreate, open http://podcastdownload.npr.org/anon.npr-podcasts/podcast/1/510307/385895405/npr_385895405.mp3

The final segment is a lullaby. It starts at the 56:17 or 56:32, depending on your device/app.

56:17

  • iTunes desktop
  • podcasts (iPad)
  • overcast (iPhone)
  • mobile safari (iPhone)
  • safari desktop

56:32

@davidpots
Copy link
Author

WTF is going on here? I don't get it. When I host the MP3 on my own server, the inconsistencies go away.

One hunch is that NPR seems to be adding ads to the MP3 server side, depending on how you load it (RSS vs NPR.org vs whatever). Maybe this redirect / param craziness is being handled differently by Chrome vs. Safari vs. whatever.

@davidpots
Copy link
Author

I've confirmed this isn't an issue with at least one other episode of Invisibilia – though I noticed this episode's mp3 has a different URL structure than the one above. The example I'm refering to is: http://pd.npr.org/anon.npr-mp3/npr/specials/2015/01/20150109_specials_invisibiliapod.mp3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment