chirag-droid/animeflix

Videos won't play in some regions without proxy.

Closed this issue · 6 comments

The videos sometimes fail to work without proxying requests. The issue however doesn't occur when hosted on Vercel tho.

Many videos didn't work without the proxy for me either. That's why I decided to route them through it in my pr.
I think if I remember correctly, the issue primarily came from mp4 files, not hsl files.
Is there any major drawback from just proxying all video urls?

Well for example if I try to play Stein's gate, it will fail. I am getting this url. If this request is proxied it becomes

api/video/?src={link}&referer={referer}

Now the hls file specifies video link relative to the original link. So if it points to ./video-file

the request is sent to api/video/video-file instead or api/video?src{link/video-file}&referer={referer}

Thus it fails.

I think I found a temporary fix. I am assuming gogocdn links work without proxy

Well for example if I try to play Stein's gate, it will fail. I am getting this url. If this request is proxied it becomes

api/video/?src={link}&referer={referer}

Now the hls file specifies video link relative to the original link. So if it points to ./video-file

the request is sent to api/video/video-file instead or api/video?src{link/video-file}&referer={referer}

Thus it fails.

@chirag-droid Let's give people the option of using a separate server gogocdn/vidstreamcdn, as we have hls and mp4 formats. Let's also give the user the option to add/remove proxy to the video if it doesn't work.

Yeah this is better. thnx

@chirag-droid Let's give people the option of using a separate server gogocdn/vidstreamcdn, as we have hls and mp4 formats. Let's also give the user the option to add/remove proxy to the video if it doesn't work.

@riimuru I implemented the ability to choose if the user wants to proxy the video or not in #92.