ku-fpg / blank-canvas

A Haskell API into HTML5 Canvas
BSD 3-Clause "New" or "Revised" License
72 stars 14 forks source link

Audio API #61

Open RyanGlScott opened 9 years ago

RyanGlScott commented 9 years ago

Now that we have a newAudio query working, we should figure out what actions a user can perform with audio, and implement them. Some ideas:

nshaheed commented 7 years ago

Here is a more complete list of functionality for audio elements: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement.

The only parts of the audio element not inherited from its parent are three experimental methods.

This means that nearly all of the functions for audio could be reworked to be used for video, and the existing Audio typeclass could potentially be reworked as a more general MediaElement class to give video support.