You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the MediaControls struct assumes all the events can be handled. This should be under the control of the user, and dynamically, over the course of the program. I think the solution would be to create a struct like this:
// Capability? Ability? // I can't think of something else// It needs a shorter name that's still intuitive.enumMediaControlCapability{Play,Pause,Toggle,Seek,// etc...}
This enum would be used to control the capabilities of the controls, like controls.set_enabled(MediaControlCapability::Play, true);. The implementation would probably vary in each platform.
If a capability is disabled, should we, still delegate it to the user handler? We probably shouldn't since in moost cases behaviour the specs say it should be ignored. Besides, it would be annoying having to check capabilities in the handler again.
Another feature I would like to implement with this issue is allowing players without controls, such as a player only showing metadata, handling no events.
The text was updated successfully, but these errors were encountered:
Sinono3
changed the title
Player capabilities
Control capabilities
Jul 6, 2021
Right now the
MediaControls
struct assumes all the events can be handled. This should be under the control of the user, and dynamically, over the course of the program. I think the solution would be to create a struct like this:This enum would be used to control the capabilities of the controls, like
controls.set_enabled(MediaControlCapability::Play, true);
. The implementation would probably vary in each platform.If a capability is disabled, should we, still delegate it to the user handler? We probably shouldn't since in moost cases behaviour the specs say it should be ignored. Besides, it would be annoying having to check capabilities in the handler again.
Another feature I would like to implement with this issue is allowing players without controls, such as a player only showing metadata, handling no events.
The text was updated successfully, but these errors were encountered: