Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a canDecodeType utility #371

Closed
domenic opened this issue Oct 15, 2014 · 8 comments
Closed

Add a canDecodeType utility #371

domenic opened this issue Oct 15, 2014 · 8 comments

Comments

@domenic
Copy link
Contributor

domenic commented Oct 15, 2014

Right now decodeAudioData says

Audio file data can be in any of the formats supported by the audio element.

From a layering perspective, this is a circular dependency: we would like to explain <audio> in terms of web audio, but here web audio has taken a dependency on <audio>.

Practically, this screws me when trying to implement <audio> as part of HTML as Custom Elements.

I think web audio should have something like AudioContext.prototype.canDecodeType() that returns the same "", "maybe", "probably" enum. Then we could explain HTMLMediaElement.prototype.canPlayType in those terms.

@cwilso
Copy link
Contributor

cwilso commented Oct 17, 2014

This is part and parcel of "we need a different approach for decoding". The decoding API we currently have is actually NOT suitable to built support on top of - a major part of support is that it supports streaming audio, and decodeAudioData can't support that. I'd mentioned to Alex before that we'll need a new decoding API (or just describe completely in JS ;) in order to properly layer this.

I'd rather NOT add this API, independent of a rework for decoding. (That's represented by #337 #335 #7 #283 among others.)

@domenic
Copy link
Contributor Author

domenic commented Oct 17, 2014

Yeah, I was kind of anticipating that might be the case. I've started looking into MSE as a potential solution, but didn't get too far yet.

@cwilso
Copy link
Contributor

cwilso commented Nov 13, 2014

#7 is also relevant.

@joeberkovitz joeberkovitz modified the milestones: Web Audio v.next, Needs WG decision Nov 13, 2014
@billhofmann
Copy link
Contributor

Still marked as v1 - should this be deferred?

@padenot
Copy link
Member

padenot commented Oct 28, 2015

I think we should push that to v.next, since we don't have proper layering anyway.

@rtoy
Copy link
Member

rtoy commented Jun 24, 2016

Add Needs WG review for a final decision.

@rtoy
Copy link
Member

rtoy commented Jun 30, 2016

Per teleconf, moving to v.next, per
#371 (comment)

@mdjp
Copy link
Member

mdjp commented Sep 17, 2019

This will now be handled by https://discourse.wicg.io/t/webcodecs-proposal/3662

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants