From 4cc90773274f94b753388a34a322661629fffe91 Mon Sep 17 00:00:00 2001 From: biver Date: Wed, 4 May 2022 13:17:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=B5=D1=89=D0=B5=20=D0=BA=D0=BE=D0=BC=D0=B0?= =?UTF-8?q?=D0=BD=D0=B4=D1=8B=20=D1=83=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=B2=20mp3=20=D0=BF=D0=BB=D0=B5=D0=B5?= =?UTF-8?q?=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/exec/Mp3/Mp3.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/exec/Mp3/Mp3.cpp b/src/modules/exec/Mp3/Mp3.cpp index c9b9b6d5..80a33d3b 100644 --- a/src/modules/exec/Mp3/Mp3.cpp +++ b/src/modules/exec/Mp3/Mp3.cpp @@ -111,6 +111,12 @@ class Mp3 : public IoTItem { if (param.size()) { myMP3->playFolder(param[0].valD, param[1].valD); // (folderNum, fileNum) } + } else if (command == "play") { + myMP3->play(1); //Play the first mp3 + } else if (command == "next") { + myMP3->next(); //Play next mp3 + } else if (command == "previous") { + myMP3->previous(); //Play previous mp3 } }