I'm a huge fan of the web as an open platform to distribute software. That's why I'm always looking for new ideas to experiment with upcoming bro...
For further actions, you may consider blocking this person and/or reporting abuse
Damn, I don't now why this project is not so popular. I like to going to sleep with some pop science talks. And this is the rescue to the the glowing phone screen in the dark + I believe it saves battery charge (not sure ๐). Thank you!
Well, its getting more and more attention๐
https://twitter.com/nic_o_martin/status/1642625303200579586?t=VXnV8iQIuEyneDGM-kZp5A&s=19
I'm glad you like it!
The lack of a volume button is a pretty big drawback.
Hi Nico, I would just like to ask how do you get the audio source of the YouTube videos? Thanks.
Hi Noel,
I've created a little node-backend that uses npmjs.com/package/ytdl-core to extract the audio source.
My "backend" is open source as well: github.com/nico-martin/yt-audio-so...
All right. Thank you. I'll definitely check these.
Media Session API is so cool as well. Great posts!
Thanks! Great to hear!
Hi, great article!
Can run this project with mp3 files?
Hi Aderman
Sure. Behind it you have a native HTML Audio Element. So it works with every format that is supported by your browser.
Good!
And how i can pass a json list with mp3 and implement previous and next actions? And change automaticaly the next song when one finish?
You could either load the file via an http request or you could import it at build time (I guess you're using Webpack?).
You would then need to write your own logic what should happen when the song finished. But you could use the
onEnded
callback to change the audio file.Ok. Thank you, man!
Will the hook create duplicate Audio elements while the player component rerenders?
Not working anymore.