1.1.6 • Published 5 months ago

@saekitominaga/customelements-button-media-sameplay v1.1.6

Weekly downloads
1
License
MIT
Repository
github
Last release
5 months ago

Simultaneous playback button for multiple audio / video

npm version test status

  • If you press the button during pause, the playback starts from the position with the lowest playback time.
  • Pause if you press a button during playback.
  • If all the target media elements has finished playing, start playing from the beginning.

Demo

Examples

<button type="button" is="x-media-same-play"
  data-targets-for="video1 video2"
>Simultaneous playback</button>

<video src="video.webm" controls="" id="video1"></video>
<video src="video.webm" controls="" id="video2"></video>

Attributes

1.1.6

5 months ago

1.1.5

5 months ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago