Hi, I have a working branch with which I can use an m3u list as safe provider of mp3 files for an external application. It is very briefly described in my Sharesite:
- http://127.0.0.1:8888/freenet:USK@sUm3oJISSEU4pl2Is9qa1eRoCLyz6r2LPkEqlXc3~oc,yBEbf-IJrcB8Pe~gAd53DEEHgbugUkFSHtzzLqnYlbs,AQACAAE/random_babcom/205/#radiooverFreenetworks The branch is https://github.com/ArneBab/fred-staging-1/tree/working-audio-tag-radio This is what works, when you run the branch: mpv "http://127.0.0.1:8888/USK@DZEGZu7A2yK~A9ghfJGzNahy71JVQiHXwMrRgcw8so4,gCR7WE5Xot10ulSivrvBhqXjIrkbxJ2QBYtfoVSQmUM,AQACAAE/m3u-radio-test/-6/playlist.m3u" Note that the m3u is now filtered, so all the files in the m3u also go through the content filter and this radio over Freenet should be safe. People could for example subscribe to radio streams over Freenet in vlc, and since Freenet can update USKs while playing, these could even yield a pseudo-infinite stream of music. It also means that media-files are currently limited to mp3, because that’s the only format for which we have a working filter. Thanks to bertm, these work pretty well now, though. However regardless of what I tried, I wasn’t able to get streaming within the audio-tag working. This is what I envisioned: <audio src="playlist.m3u" controls="controls"></audio> But it doesn’t play — not in Firefox and not in Chrome. I used a small server¹ to experiment with different mime-type settings, but to no avail. So I see two ways forward: 1. Just live with the limitation of browsers and limit m3u to external applications. 2. Do content-filter-magic and conjure up some javascript during filtering which makes audio-tags with m3u work as if the browser support existed. The latter would be nicer for users (just working playlists), but could be pretty surprising, and I’m not certain about the security aspect. What do you think? Should I go for the first or auto-enhance the audio-tag in freesites? Best wishes, Arne ¹: http://127.0.0.1:8888/freenet:USK@DZEGZu7A2yK~A9ghfJGzNahy71JVQiHXwMrRgcw8so4,gCR7WE5Xot10ulSivrvBhqXjIrkbxJ2QBYtfoVSQmUM,AQACAAE/m3u-radio-test/10/serve.w?type=text/plain PS: I did not yet incorporate the review from Bombe, because I’m still meddling with getting the code to do the right thing. Once that’s done, I’ll incorporate the changes. -- Unpolitisch sein heißt politisch sein ohne es zu merken
signature.asc
Description: PGP signature
_______________________________________________ Devl mailing list [email protected] https://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
