Skip to content

Make support() synchronous #388

Closed
Closed
@joeyparrish

Description

Based on feedback from @ddorwin and @leandromoreira, we should make support() synchronous.

According to w3c/encrypted-media#178 (comment) and w3c/encrypted-media#178 (comment), we should not be probing EME. Probing EME may result in lots of prompts on some browsers, leading to a bad UX. Since app devs don't really need this info anyway, it's fine to skip probing EME in support().

According to clappr/dash-shaka-playback#4 (comment), having an asynchronous support() call is inconvenient. Since the only asynchronous part of it is the EME probe, we can make things simpler for developers by removing that.

Since EME probes are still useful for platform diagnostics, we should move any EME probes to a separate method. That method should be named in such a way that it is clearly not to be used in production. In contrast, checking basic library support should definitely be done in production.

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions