#.mp4 files playback issue
82 messages · Page 1 of 1 (latest)
do you use firefox?
why does your site have a triple obfuscated js just to hide your css animation 
and then not even use the domain lock or redirect feature
anyway, that was fun
why not 😠and anyway im having the same problem again
it literally fixed itself for a bit and then it came back, don't know what do anymore
It was fun nonetheless c:
Did you fix the link on / going to the wrong video path
Also wasn’t it 12s?
Might be misremembering, will check tomorrow
Im still confused why it’s trying to range read a like 8mb file
it's just another vid i uploaded, this happens to every video
here's a random countdown vid from yt
still happens to it
on discord it works properly but not in the browser
Im in bed alr
yeah no problem
!remind 12h .
I will remind you in 12 hours at May 21, 2024 at 8:45 UTC
okay so i found something interesting, it works fine on files that are like a few KB's, for example i uploaded a video that's 25KB and it works just fine https://lau.cat/f/mm3Pycws.mp4
so looks like it might be something size related
Reminder for @void timber: .
Set <t:1716237900:R>
ok so, this is a weird chrome "bug"?
for the countdown video:
- chrome does a GET request to the video, but then doesnt download it (probably to get the content-length header to see how long it is, but the header isnt returned by the server)
- chrome then does a second GET request with the
Range: bytes=0-header, to "seek". however the server returns with a 200 (OK) instead of 206 (Partial content) - chrome sees that the server doesnt support the
Rangeheader (because the server didnt respond with 206), and disables seeking – even though the entire thing is already downloaded
for the small video:
- same thing with first request
- chrome then does a second GET request again with
Range: bytes=0-, BUT this time receives a 206 - chrome sees the server supports
Rangeheader and keeps seeking enabled, although it doesnt matter (again)
TLDR:
your server responds with 200 instead of 206 and thus chrome (stupidly) disables seeking
firefox works as expected
Changing the http res status to 206 does not fix the issue
In fact it stops loading the file entirely
At least on chrome, not tested on other browsers
obviously you need to also include the correct range response header
shouldn't this work in the .htaccess file?
<IfModule mod_headers.c>
Header set Accept-Ranges bytes
</IfModule>
your server still needs to correctly handle range requests
where should those values for the range res headers be grabbed from?
from the actual data returned??
so i'm using a shared hosting and i don't have any access to the server, i don't think this is something i can fix myself
i tried forcibly returning a 206 status code using .htaccess but that did not work
and just like i said, if i pause cloudflare on my website, it works fine
why would it work without cloudflare and it only does this when cloudflare is on?
if it was a error from my server then i would imagine it wouldn't work without cloudflare as well
just paused cloudflare right now, and every video loads
because it returns the proper 206 now
so why does it not return the proper 206 with cloudflare on?
doesn't that show that cloudflare is doing something wrong?
since it works with cloudflare turned off
only thing I could imagine is caching, but IIRC it was bypassed already
i tried using cache rules to bypass anything that ends in .mp4
did not work
also purged everything and tried every caching level, still did not fix the issue
it did work in the sense that cache was bypassed
Yo leo, I tried looking up for your answer to his problem earlier https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests
An HTTP Range request asks the server to send only a portion of an HTTP message back to a client. Range requests are useful for clients like media players that support random access, data tools that know they need only part of a large file, and download managers that let the user pause and resume the download.
To be frank, I don't understand how this works
(cf-cache-status header being DYNAMIC = bypassed)
yeah but the video still didn't get played properly
or loaded
now with it off as you can see, it loads it properly
without adding anything additional to my .htaccess file

don't use php, solution fixed

you arent allowed to proxy video anyway, soooo I doubt you'll get official help
also changed browser cache TTL to respect existing headers
isn't cloudflare just a cdn 
a cdn with terms of service that prohitbit you to proxy video or other large binary files
a 1MB video file isn't large
regardless of size of the file, if the format is equal to that of an animated file format then I believe it's considered a video
and majority of people are using cloudflare to proxy their videos
they're using it wrong then, even I am using it wrong
I didn't know of this until now to be honest
if they really wanted to do something about people that are proxying videos they would've done something a long time ago
those files can be excluded though by adding rules, right?
he already did
okay fixed this
had to set a page rule with bypass cache level and now it works properly
i tried doing this before and it didn't work because cloudflare didn't actually update the rules fast enough so i just thought that wasn't working
but yeah pretty annoying this was happening in the first place