This is some stuff I bumped into in the inline-audio-player branch. I cherry picked the changes for clarity.
inline-audio-player