Fix various UI and Playback issues on mobile browser#38
Fix various UI and Playback issues on mobile browser#38cwilvx merged 8 commits intoswingmx:masterfrom
Conversation
…autoplay blocking on mobile
|
Hi @Type-Delta Thank you very much for opening this PR. I really appreciate the fixes you have done. I've pulled your branch and tested the playback on Chrome for Android and it's working fine even on a locked screen. Amazing. I wasn't using the web client on mobile that much so I hadn't experienced some of the other issues you have fixed. Thanks again for the fixes. Merging ... About the 30 seconds thing. Might it be an issue with the silence padding removal feature? See swingmx/swingmusic#231. Can you please try disabling that feature as mentioned on the issue and see whether it fixes it? Please let me know whether it works. |
|
Hi, @cwilvx After a bit more testing, turns out it has something to do with how Safari tracks Audio elements. The issue occurred from the changed in value of And No, this had nothing to do with silence padding removal feature. From my understanding, Safari tracks Since preloading function is set up to run when the playback position of the current track is more than For the fix: I've tried preventing preload function from firing immediately with I'll came back to this problem later if I got any new ideas to try, though. |
|
Thank you very much for looking into that issue. Let me know if you get any fixes. Regarding the silence padding removal related issue, it happened when the silence data returns too late and the player module didn't handle that problem. It happened when the track happened when the track has a silence padding of more than 30s at the end of the file or when the network is slow (mostly on remotely selfhosted instances) I've fixed that with this commit on a feature branch I'm working on. Thank you again. Your contributions are welcome and very much appreciated. |
|
Hey @Type-Delta As the viewport shrinks, the bottom bar area is moved to the now-playing page gradually. Hope that's alright. |
|
@Simonh2o |
What this PR does
Fix various UI issues and make background playback on mobile possible.
Fixes
<body>sizing error:vh,vwworks likelvh,lvwin Safari which makes part of<body>appears behind browser UI<DynamicScroller>: for touch screen, where scrolling up cause the page to jump back to item (index)1. fixed for Artist and NowPlaying view.profiledropdisplay behind.smdropdownelementKnown Issues (that I can't/didn't fix)
mediaSessionin Safari will track the fading-out song and misunderstood that the playback has ended (and pause themediaSession), manually set it as "playing" did nothing.Testing
Tested on Android, IOS and Desktop devices I have, with the following browsers: