Building a Mobile Javascript Powered Audio Player

Originally published at: http://www.sitepoint.com/building-mobile-javascript-powered-audio-player/

As some of you might know, I’m addicted to HTML5 and JavaScript APIs.

I’ve written many tutorials discussing APIs such as the getUserMedia API, the Web Speech API, the Screen Orientation API, and I also have a dedicated repository on GitHub.

In this article I’ll show you how to create a simple JavaScript API-powered audio player that employs several APIs to improve the experience for people using a mobile device.

Continue reading this article on SitePoint

This is really nicely done, great stuff:-)

But I wonder about the use-case for the battery sensing – under what circumstances would it be appropriate for a web-based player to give the user notifications about their battery state? Isn’t that up to the device?

Same thoughts for light sensing too – would it be appropriate to provide the user with more control over whether they actually want the view to adjust according to light conditions?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.