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

audio / video .canPlayType(MIMEtype) #2593

Open
rbosneag opened this Issue Jun 20, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@rbosneag

The HTMLMediaElement.canPlayType() method determines whether the specified media type can be played back.

Can be used like this: [audio | video].canPlayType('video/mp4')

Some MIME types would be:
audio/mpeg
audio/mp4
audio/ogg
audio/ogg
audio/webm
audio/wav

link to MDN here

@Fyrd

This comment has been minimized.

Show comment
Hide comment
@Fyrd

Fyrd Jun 22, 2016

Owner

Pretty sure this is supported by all audio & video supporting browsers.

Owner

Fyrd commented Jun 22, 2016

Pretty sure this is supported by all audio & video supporting browsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment