Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.14k stars 1.41k forks source link

iPad stops all HLS video streaming of other users in a same room. #2550

Open kaitas opened 4 years ago

kaitas commented 4 years ago

Description iPad stops all HLS video streaming of other users in a same room.

To Reproduce Here is my time limited testing room for HLS live streaming using AWS Media Live on Mozilla Hubs server, the streaming is working fine on PC browsers. (1) When you visit here by iPad , The video is not played on iPad correctly. (= Other visitors can watch video stream correctly, just iPad is watching a static image) https://hubs.mozilla.com/4tU6Vmk/hls-streaming-test

(2) When I reload iPad Safari, Hubs client doen't show the scene correct, but it may be a different issue.

(3) When I set the same HLS stream (.m3u8 from AWS Media Live) to video on my Hubs cloud Enterprise with my domain, it becomes more harder issue. The all visitors video stops.

(4) We need to reload scene to recover it.

Here is my bug report video for this issue. https://youtu.be/Ths8e4HY9SU But tell me if you need the stream to see details. (AWS streaming costs me)

Expected behavior iPad (and any other clients) don't stop video playing of others.

Screenshots https://youtu.be/Ths8e4HY9SU

Hardware

Additional context

https://github.com/mozilla/hubs/blob/master/src/components/media-views.js#L312-L338

For scene-owned videos, take ownership after a random delay if nobody else has so there is a timekeeper. Do not due this on iOS because iOS has an annoying "auto-pause" feature that forces one non-autoplaying video to play at once, which will pause the videos for everyone in the room if owned. Is this related, too? https://github.com/mozilla/hubs/issues/2035

onPauseStateChange() https://github.com/mozilla/hubs/blob/master/src/components/media-views.js#L429-L443

Discord

┆Issue is synchronized with this Jira Task

andybak commented 3 years ago

Well this explains some very confusing reports we were getting back during testing. However the issue here: https://github.com/mozilla/hubs/discussions/4023 might be masking this at the moment.

andybak commented 3 years ago

After some more testing I don't think this was the issue we were experiencing.