erin: Crashes mobile browsers - works on desktop but the scaling is horrible
docker run -d \
--name erin-tiktok \
--restart unless-stopped \
-p 50582:80 \
-e TZ=Europe/Bucharest \
-e PUBLIC_URL="http://tt.domain.tld" \
-e AUTH_ENABLED="false" \
-e VIRTUAL_HOST="tt.domain.tld" \
-e VIRTUAL_PORT="80" \
-v "/long/path/to/my/TikTok/Liked Videos/videos":/srv/videos:ro \
mosswill/erin:latest
using cloudflare tunnels to bridge http://IP:50582 to https://tt.domain.tld
when opening https://tt.domain.tld on desktop chrome it works (after a 3-4 second delay) and the video plays but its stretched to fill the window width instead of keeping the aspect ratio like tiktok does.
on mobile (iOS) however the page crashes the browser
the videos directory has 5700 files, all with tiktok video ids as filenames (eg. 6630704371711610113.mp4)
i’m not sure if this project was ever tested as its broken on both mobile and desktop 😦
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 15 (9 by maintainers)
Amazing work and progress! Everything is so smooth now, no more hangs and the buttons actually respond instantly to the tap!
The only thing i saw scrolling for 2-3 minutes is one video remained black and i had to scroll pass it. Will have to investigate as the mp4 file itself could be corrupted!
You can also test it on my instance!
Thanks for your effort, your webapp will bring much joy to me and my girlfriend!
Good lord! Thanks a lot for the quick test, reply, and video. I’m glad it’s fixed.
Working on the delay you’ve mentioned now.
Thanks again!
The new update fixed it on iOS! I can finally use it on mobile (the entire video folder)
One more thing would be a visible delay between swiping through videos (black screen): https://youtube.com/shorts/ZJQuUW_yRLE
Thanks!
@will-moss i appreciate your effort and i was not aware it was such a new project
i use docker run not compose and yes i do need to map a port. cloudflare tunnels didn’t like the 443 (never had this issue before) so i had to use the non ssl port. these however shouldn’t matter, that’s the purpose of docker
i really look forward using the project once you push a few fixes!
Thanks a lot for your feedback and those details.
Regarding each point :
The crash on mobile IOS : I will try to reproduce and investigate that issue. I’m using an android phone and everything worked fine on my end as well as for a few other users who kindly gave their feedback. I assume Safari on IOS has specific quirks that I will address in a future release.
The video is stretched to fill the window width : It’s my bad. At the time of development, I genuinely thought it was a good idea. Now, in hindisght and after a lot of feedback from early users, I realize this isn’t optimal. I will fix that too.
There is a 3-4 seconds delay : I will try to mitigate that in a next release. Right now, the client tries to fetch 100% of the links at once, and load only 3 videos at most. Then, when you scroll, one of the 3 videos gets destroyed, while the next incoming one gets loaded and rendered. I assume the issue stems from loading the initial 5700 links. I will do my best to fix that (implement chunk-retrieval of links)
The app crashes : From the example
docker-compose.proxy.yml, have you tried uncommenting the lineCERT_NAME: default? I think that should solve the issue. Also, if your app is behind a reverse-proxy (which I assume based on your Docker command), you don’t need to bind the port 50582 to 80. Your reverse proxy should be able to capture traffic on 443, and forward it to Erin on 80 via the configuredVIRTUAL_PORT=80.For the rest, please mind that this project was made (coded, tested, packaged with Docker, and released) in less than 24 hours. This was initially to help somebody quickly. However, I’ll definitely address every point you mentioned, and make new releases very soon.
Thanks a lot again!