W3C home > Mailing lists > Public > public-media-capture@w3.org > October 2014

Re: MediaStreams and canPlayType

From: Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com>
Date: Sun, 19 Oct 2014 06:29:59 +0000
To: Martin Thomson <martin.thomson@gmail.com>
CC: Harald Alvestrand <harald@alvestrand.no>, "public-media-capture@w3.org" <public-media-capture@w3.org>
Message-ID: <1447FA0C20ED5147A1AA0EF02890A64B1D0A3EAD@ESESSMB209.ericsson.se>
On 17/10/14 21:53, Martin Thomson wrote:
> On 17 October 2014 04:56, Stefan Håkansson LK
> <stefan.lk.hakansson@ericsson.com> wrote:
>> Yes, and I was only talking about the media-element.canPlayType, nothing
>> on MediaStream(Track).
> The moral equivalent of canPlayType is encapsulated in the
> RTCPeerConnection API.  You can elicit this information (if you really
> care) by creating an offer.

This is where I personally end up too. But I think we should add a note 
or a sentence saying that "media-element.canPlayType can not be used to 
determine if a MediaStream can be played or not" to help web authors.

I found a site that uses

document.createElement("video").canPlayType('video/webm; codecs="vp8", 

to determine if the browser is compatible with their service. Somewhere 
we should document that this is not the right way.

Received on Sunday, 19 October 2014 06:31:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:31 UTC