Bug 24364 - Add HTMLMediaElement canPlayType method
: Add HTMLMediaElement canPlayType method
: WebKit
WebCore Misc.
: 528+ (Nightly build)
: All All
: P2 Normal
Assigned To:
  Show dependency treegraph
Reported: 2009-03-04 12:19 PST by
Modified: 2009-03-04 14:30 PST (History)

proposed patch (5.63 KB, patch)
2009-03-04 12:23 PST, Eric Carlson
koivisto: review+
Review Patch | Details | Formatted Diff | Diff
revised patch (12.84 KB, patch)
2009-03-04 13:58 PST, Eric Carlson
koivisto: review+
Review Patch | Details | Formatted Diff | Diff


You need to log in before you can comment on or make changes to this bug.

Description From 2009-03-04 12:19:37 PST
Add the canPlayType method, define in as:

The canPlayType(type) method must return the string "no" if type is a type that the user agent knows it cannot render; it must return "probably" if the user agent is confident that the type represents a media resource that it can render if used in with this audio or video element; and it must return "maybe" otherwise. Implementors are encouraged to return "maybe" unless the type can be confidently established as being supported or not. Generally, a user agent should never return "probably" if the type doesn't have a codecs parameter.
------- Comment #1 From 2009-03-04 12:23:32 PST -------
Created an attachment (id=28280) [details]
proposed patch
------- Comment #2 From 2009-03-04 12:43:10 PST -------
(From update of attachment 28280 [details])
------- Comment #3 From 2009-03-04 13:58:36 PST -------
Created an attachment (id=28283) [details]
revised patch

Patch revised so MediaPlayer::supportsType now takes a ContentType instead of separate type and codecs parameters.
------- Comment #4 From 2009-03-04 14:04:21 PST -------
(From update of attachment 28283 [details])

> +    static MediaPlayer::SupportsType supportsType(ContentType contentType);

ContentType can be const here
------- Comment #5 From 2009-03-04 14:30:39 PST -------
Committed revision 41432.