Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The Media API

HTML5 provides a vast and exiting API for multimedia. Using the API and JavaScript, you can manipulate audio files in your web pages. The following are the available API events:

abort

canplay

canplaythrough

canshowcurrentframe

dataunavailable

durationchange

emptied

empty

ended

error

loadeddata

loadedmetadata

loadstart

pause

play

playing

progress

ratechange

seeked

seeking

suspend

timeupdate

volumechange

waiting


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint