New Sound extension #866
GiovanniSalmeri
started this conversation in
See what's new
Replies: 1 comment 6 replies
-
Thanks Giovanni, this looks amazing! 👍 However supporting so many patterns at once might have some drawbacks, e.g. when the URL differs from the expected format. I've tested this with a mp3 radio stream that doesn't have an |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everybody! I have published a new Sound extension. It is analogous to the Video extension, but while the latter leverages the standard HTML5 video widget for embedding media files, Sound uses its own widget (written from scratch), which allows customisation, responsiveness etc. I have made my best in order to follow the guidelines for accessibility, but I haven't done a real test from this point of view. Besides audio files, Sound can also embed playlists and several third-party services. More sound widgets can be used in a page and all behaves as expected.
In order to get the informations of the audio file (author, title ecc.), I have written and included a small library which reads audio tags. Several similar libraries do exist, but none seemed to me really fit for this purpose (either too limited, or too general, or client-side ecc.), so I have written all from scratch, and so discovered that audio tags are really a nightmare 😱. I hope that the final result works well enough (audio tags are read from mp3, flac, opus, ogg/vorbis, m4a).
A final word about similar exensions already available:
In PHP code there are still a lot of TODOs (which perhaps will become DONTFIX's 😊), but anyway I have preferred to publish the extension as it is. Any comments are welcome. Thank you!
Edit: the extension behaves a little erratically with local audio files and the embedded server of Yellow (
php yellow.php serve
). I suspect that this is the consequence of security measures in browsers that prevent access to local files. Anyway, these problems disappear in a proper installation, so I did not investigate further.Beta Was this translation helpful? Give feedback.
All reactions