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

WIP: follow HTMLMediaElement interface (Breaking Change) #66

Draft
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

leo6104
Copy link

@leo6104 leo6104 commented Jun 1, 2023

Issue #65

Instance property

  • autoplay
  • currentTime
  • duration
  • error
  • loop
  • paused
  • ended
  • controls: boolean
  • controlsList
  • readyState
  • preservesPitch - should be separate to other issue&PR (too large)
  • playbackRate (speed control function) - should be separate to other issue&PR (too large)
  • defaultMuted: boolean - should be separate to other issue&PR (too large)
  • muted - should be separate to other issue&PR (too large)
  • buffered - no needs (current always load all ranges)
  • seekable. - no needs (current always load all ranges)

Instance Property (special for midi-player)

  • seeking
  • playing

Instance Methods

  • play() - rename start() to play()
  • stop()
  • pause()
  • canPlayType(type: unknown)
  • load() - should we rename reload -> load()?
  • fastSeek()

Events

  • canplay
  • play - rename start to play
  • playing
  • pause
  • timeupdate
  • error
  • ended
  • abort
  • loadstart
  • loadeddata
  • seeking
  • seeked
  • durationchange - can be more complicated if setTempo support in the future
  • suspend
  • volumechange - not available for now. (prior function - volume controls)

Special Events for midi-player

  • note

@cifkao cifkao marked this pull request as draft June 22, 2023 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant