Read the statement by Michael Teeuw here.
Simple Music Player Module
-
@DrCastor said in Simple Music Player Module:
Hi,
Could you please send a full code of “node_helper.js” file?
Thanks in advance, -
It seems that I don’t have enough priviledges for uploading a file directly in this reply, and I don’t really want to provide you a link to some uploading site, since I don’t know if it is allowed in the rules of this site. I’ll try to find a way.
Since then, just try what I told you. You juste have to cut and paste what I wrote. I’m sure you can do it, be confident in yourself ;)
-
@DrCastor
Manay thanks!
Resolved. -
Happy to have helped you :). It is sad that just for a problem of syntax, the source file was never edited :$
-
Last question.
Do you know how to write a code for a volume buttons for that player?
I know that “MMM-TouchPlayerBasic” module has that feature. -
no, I’m a noob in this. You should take a look at the files of MMM-TouchPlayerBasic, and try to enderstand how the volume is managed. Good luck!
-
would it be possible to make it so I could use a keyboard to control the music?
-
@Milk
I use the built-in Monitor’s hard buttons to control the sound.
There’s “alsamixer” command to control volume. But this is not convenient. -
'use strict'; var playingnow = false; document.addEventListener('keypress', (event) => { const keyName = event.key; if(keyName == " " && playingnow == false){ $(audioElement).trigger('play'); $(currentlyPlaying).html(songs[current]).fadeIn(fadeDuriation); playingnow = true; }else if(keyName == " " && playingnow == true){ $(audioElement).trigger('pause'); $(currentlyPlaying).fadeOut(fadeDuriation); playingnow = false; } if(keyName == "."){ next(); } if(keyName == ","){ back(); } });I have added this code to the mm-music player.js and it now accepts key presses
-
Hi Guys,
I have a problem with the MM-Music_player module.
I just can not get it to work.
No matter what I do. I’ve already tried with the proposed solutions from you, but it does not work.
I do not even know if I have the module installed correctly nor where I need to add it everywhere (config.js, defaultmodules.js)I am grateful for any help.
-
@Rolandb
Hi, are you still facing the issue?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login