yuroyami / syncplay-mobile

📱 Unofficial Syncplay client app for Android and iOS. Watch stuff in sync with your friends. Works well with Syncplay on PC. Fully written in Kotlin and Compose multiplatform.
113 stars 5 forks source link

mobile phone playback url error #63

Closed Zhaodaidai closed 1 year ago

Zhaodaidai commented 1 year ago

image My phone system is Android 13

yuroyami commented 1 year ago

I couldn't reproduce the issue. Could you provide more information ? and preferably the used URL as well if possible

Zhaodaidai commented 1 year ago

sure Here is the play link

1.txt

yuroyami commented 1 year ago

Indeed, the video doesn't play and it throws an error, I will debug the issue later and see what's wrong with it. I think it's because the link contains HTML-encoded Unicode characters. Thank you for the link!

Zhaodaidai commented 1 year ago

okay, don't worry, please

yuroyami commented 1 year ago

After troubleshooting, this seems to be an issue with the url itself. As you can see, the old url has "HTTP" protocol, but it redirects to "HTTPS" protocol url :

old link, has HTTP protocol

New link, it has HTTPS protocol

Unfortunately, there is no way to fix this, you have to explicitly give syncplay the final link without any cross-protocol redirects (it can only redirect from https to https or from http to http...etc)

So if your URL has redirectors from HTTPS to HTTP or from HTTP to HTTPS, it will throw an error.

I was able to get the final URL after the redirections, by putting the link into my browser and then when the file starts downloading I copy the download link which is the final link. If you put that into Syncplay like I did, it will work great.

I am hoping maybe Google fixes their player (which i use inside Syncplay) when it comes to this redirecting issue, I will bring it to their attention maybe they do something about it.

Thank you for raising the issue, please let me know if there is anything else