Skip to content
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

Proposal: Add quality attribute to ManagedMediaSource API #322

Open
jyavenard opened this issue Aug 14, 2023 · 0 comments
Open

Proposal: Add quality attribute to ManagedMediaSource API #322

jyavenard opened this issue Aug 14, 2023 · 0 comments
Labels
TPAC2024 Topic for discussion at TPAC 2024

Comments

@jyavenard
Copy link
Member

jyavenard commented Aug 14, 2023

This was originally part of the original proposal in #320 ; however due to fingerprinting concerns it has been moved to its own proposal.

Media variant selection

Currently, the player has few tools to determine the possible quality level of the media being played. From measuring the speed at which a segment download was performed, assessing the available dimensions available to render the video or how many frames got dropped when played.
The User Agent can access further details beforehand: from the speed of the networking medium, to the user's choice of preferring low data usage.
The User Agent may suggest a preferred streaming quality.

WebIDL

enum PreferredQuality {
    "low",
    "medium",
    "high"
}

[Exposed=(Window,DedicatedWorker)]
interface ManagedMediaSource : MediaSource {
    constructor();

    readonly   attribute PreferredQuality quality;
               attribute EventHandler     onqualitychanged;

      readonly attribute boolean          streaming;
               attribute EventHandler     onstartstreaming;
               attribute EventHandler     onendstreaming;
                   
                  static boolean          isTypeSupported (DOMString type);                   
};

@marcoscaceres marcoscaceres changed the title Proposal: Add quality atttribute to ManagedMediaSource API Proposal: Add quality attribute to ManagedMediaSource API Dec 21, 2023
@chrisn chrisn added the TPAC2024 Topic for discussion at TPAC 2024 label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TPAC2024 Topic for discussion at TPAC 2024
Projects
None yet
Development

No branches or pull requests

2 participants