-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
videos stop buffering / playing #110
Comments
sorry for the inconvenience @BlueHtml but I moved this to a new issue, since I believe the underlying issue is different. this is curious... I have not been able to reproduce this, but I have some ideas. if you have many images or videos in the folder, then the web-ui might be trying to load all the thumbnails. As the web-browser limits you to only 6 open connections to one server, this will quickly prevent performing any other actions until the thumbnails have loaded. And if the server has to generate the thumbnails, then this may take a while. When you seek in the video, the video player will disconnect and reconnect to request another range of the video for playback, and this would then not be possible until the browser has gone idle. does this idea sound plausible? we can test this easily by making sure that all thumbnails have loaded, and then try to play the videos. If the videos are still buggy, then that's not it. if this is not the reason, then i have some questions:
if you would like to share the copyparty server log so we can look at this better, then perhaps run copyparty with |
@9001 Hello, how do you use
|
that's curious! it looks like windows (or maybe PowerShell) is messing up the command somehow. But that is fine, you can use this instead:
nice, thank you for confirming that. I have started downloading that copy of frieren to see if there is something odd with the file encoding. So far the magnet isn't seeing any seeds, so let's give it some time. (Himmel the hero would use DivX...) |
@9001 Hello, I executed the new command you provided, |
Thank you; this is interesting. Every time you seek in the video, the browser tries to download the first 1 MiB of the file. The request from the browser includes a caching directive to only return data if the file has been recently modified. As that is not the case, copyparty replies with an empty "HTTP 302" like it should, and this seems to confuse the browser... It just sits there doing nothing, and then disconnects after 2 minutes. I have installed There are a few things I would like to try. I have attached a debug build which will help us: copyparty-sfx.py.zip Let's test this first; python copyparty-sfx.py -c cp.conf -v C:\down2:/:r:rw,foo -a foo:bar --log-conn "--ihead=*" "--ohead=*" --k304 2 -lo copyparty-k304.log the Another thing we can try, is to ignore the caching directive from the browser, and always return the data anyways. This is very wasteful, but it should definitely work: python copyparty-sfx.py -c cp.conf -v C:\down2:/:r:rw,foo -a foo:bar --log-conn "--ihead=*" "--ohead=*" --no304 2 -lo copyparty-no304.log Could you please give these two a try, and share the logfiles? Note that they will contain a lot of headers, so please take a quick look and see if there is anything you would like to remove 🙏 Sorry for the trouble! I hope you are as curious as I am to figure this out 😁 |
huh, I wonder if these two requests in the devtools are these two from the logfile... copyparty says it sent the whole file in response to the 2nd request, but msedge says it only downloaded 2.1 MiB. I don't know what to make of this yet, but it is weird. EDIT: could you please do a quick check with chrome and firefox? Just to see if you encounter the issue with those browsers too? I would like to make sure that this isn't an msedge bug... |
@9001 Hello, I copied the two different commands you provided and executed them. Then, I used Chrome to access it. Below are the logs and screenshots.
Chrome devtools as shown in the image:
Chrome devtools as shown in the image: The content of the
|
okay, I think I have some good news... I noticed that copyparty is returning Content-Length headers in HTTP 304 replies. This is not illegal, but it is also not very common, so it might confuse some software. Could you please try this beta and see if it fixes your issue? no-304-clen.py.zip The following should be sufficient. If it still does not work, please include the log. python3 no-304-clen.py -c cp.conf -v C:\down2:/:r:rw,foo -a foo:bar --log-conn "--ihead=*" "--ohead=*" -lo copyparty-nolen.log If that does not fix the issue, please also try the following: python3 no-304-clen.py -c cp.conf -v C:\down2:/:r:rw,foo -a foo:bar --log-conn "--ihead=*" "--ohead=*" --no304 2 -lo copyparty-no304-try2.log Thanks again for helping track this down 🙏 one last question -- is it possible that you have some browser extensions, or maybe some proxy settings, which could be causing this issue? I'm just really curious what's going on since I am unable to reproduce it myself. |
these response headers are usually not included in 304 replies, and their presence are suspected to confuse some clients (#110) also strip `out_headerlist` (primarily cookie assignments)
an extremely brutish workaround for issues such as #110 where browsers receive an HTTP 304 and misinterpret as HTTP 200 option `--no304=1` adds the button `no304` to the controlpanel which can be enabled to force-disable caching in that browser the button is default-disabled; by specifying `--no304=2` instead of `--no304=1` the button becomes default-enabled can also always be enabled by accessing `/?setck=no304=y`
this issue should be fixed as of v1.15.10 if you still encounter this behavior, you can try visiting the URL if that fixes the issue, I would like to know as much information as possible about how you run copyparty, and how you access it. |
Hello, I also encountered this issue.
Version: copyparty-sfx.py v1.15.8
Browser: Microsoft Edge
Steps to reproduce:
Originally posted by @BlueHtml in #71 (comment)
The text was updated successfully, but these errors were encountered: