[GreenKeys] Another news feed!
Harold Hallikainen
harold at w6iwi.org
Sun Dec 29 20:02:07 EST 2024
Thanks for the comments on https://w6iwi.org/rtty/audio/nyt/ ! I've been
working on it most of today. It works pretty well, but it generally quits
after sending NYT.wav . It SHOULD refetch it and play the next. I've been
messing with code to play a list of files. To make each file appear
different, the requests are NYT.wav?n=0, n=1, etc. This SHOULD force a new
request. It looks like it might be, but the audio player then waits for
someone to hit play. I used code from Google that is supposed to play
files sequentially... Another issue is that on the hour, I regenerate
nyt.wav . Even though I set the response headers to include Accept-Ranges:
none , the header generated by Apache also includes Content-Range: bytes
229376-21380883/21380884 , so the browser does byte range requests.
For example, I see a request with the header:
Range: bytes=229376-
I THINK that on these range requests, it can be getting the old file and
the new one.
I'll continue to bang on this. I might change the cron job that does the
update to be less frequent (currently once per hour) so the issue comes up
less often.
Fun stuff!
Harold
https://w6iwi.org
--
Not sent from an iPhone.
More information about the GreenKeys
mailing list