Skip to content

Spec accepts audio mime types for video and vice versa, WPT tests for the opposite #261

Description

@Psychpsyo

When checking mime type validity, the spec only checks that the mime type is one of audio/video or application. Thus, if the mime type is application, it passes as both a video and an audio mime type.
WPT then tests for this not being the case:
https://github.com/web-platform-tests/wpt/blob/4830edb033cb486fd0cd6f85b5e937cfc718704d/media-capabilities/decodingInfo.any.js#L140-L151

I assume that maybe this should be caught in step 3.2? But that one only checks whether this is a single media codec, not if it is of the correct type.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions