Skip to content

Can we follow HTMLMediaElement interface for midi-player HTMLElement? #65

@leo6104

Description

@leo6104

Currently, it declare start() for playing the midi file.

In HTMLMediaElement, its interface for playing audio is play().

It would be great to follow same interface as HTMLMediaElement Instance Methods.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play

Instance property

  • autoplay
  • buffered
  • controls: boolean
  • currentTime
  • currentSrc
  • defaultMuted: boolean
  • duration
  • ended
  • error
  • loop
  • muted
  • paused
  • playbackRate
  • preservesPitch
  • readyState
  • seekable
  • seekId

Instance Property (special for midi-player)

  • seeking
  • playing

Instance Methods

  • play() - rename start() to play()
  • stop()
  • pause()
  • canPlayType()
  • load()
  • fastSeek()

Events

  • canplay
  • play - rename start to play
  • playing
  • pause
  • timeupdate
  • error
  • ended
  • abort
  • durationchange
  • loadstart
  • loadeddata
  • volumechange
  • suspend
  • seeking
  • seeked

Special Events for midi-player

  • note

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions