player icon indicating copy to clipboard operation
player copied to clipboard

Playback Rate Support

Open mihar-22 opened this issue 4 years ago • 0 comments

Tasks

Design and implement an interface to support getting/setting playbackRate across providers.

Notes

Properties

  • playbackRate: number
  • playbackRates: number[]
  • canSetPlaybackRate: boolean

Events

  • vds-playback-rate-change
  • vds-playback-rate-change-request

Important

  • playbackRate can only be set to a valid value in playbackRates.
  • How to know if the current provider supports setting playbackRate? The interface designed should account for this via the canSetPlaybackRate property. Refer to the canRequestFullscreen property on the MediaContext for a similar implementation.

References

  • https://github.com/vime-js/vime/blob/master/core/src/components/core/player/PlayerProps.ts#L255-L266
  • https://github.com/vime-js/vime/blob/master/core/src/components/providers/MediaProvider.ts#L21-L22

mihar-22 avatar Feb 02 '21 01:02 mihar-22