samvera-labs / ramp

Interactive, IIIF powered audio/video media player React components library. Styleguidist Docs: https://samvera-labs.github.io/ramp/
https://ramp.avalonmediasystem.org/
30 stars 5 forks source link

[BUG] Audio only items do not auto-play next section on Safari (desktop, iPhone) #672

Closed elynema closed 1 week ago

elynema commented 1 month ago

Description

For audio recordings that have multiple sections, when the first section reaches the end, the second section does not auto-play. Instead, playback stops at the end of the section. This was observed on Safari on desktop and iPhone. In addition, for a playlist where there are multiple audio recordings in a row, autoplay does not advance past the first audio file.

Video recordings auto-play multiple sections fine. Audio recordings in Chrome are working for auto-play.

Example records for testing:

Event handling should be the same across audio and video and these changes should just be cosmetic

Done Looks Like

elynema commented 2 weeks ago

@Dananji This is almost working. I was able to auto-advance between sections in a multi-sectioned audio item (the first 2 examples) fine. In the third playlist example, I was able to auto-advance between playlist item 97 and 98, which come from the same source. However, the playlist stopped at the end of playlist item 98, and did not advance to item 99.

This is happening in Safari across desktop, iPhone, and iPad. Works fine in Chrome.

Not sure if this last issue is resolvable?

abankhele commented 2 weeks ago

Tested in Safari on both desktop and iPhone for the mentioned items. Everything is working as expected; playback continues when autoplay is enabled.