[media-source] Proposal: Add quality atttribute to ManagedMediaSource API (#322)

jyavenard has just created a new issue for https://github.com/w3c/media-source:

== Proposal: Add quality atttribute to ManagedMediaSource API ==
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;

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

```

Please view or discuss this issue at https://github.com/w3c/media-source/issues/322 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 14 August 2023 06:41:25 UTC