Troubleshooting

DFPlayer Pro setPlayMode

userHead Arev.Imer 2023-05-16 18:46:29 877 Views3 Replies

Hello There!

 

I am having trouble selecting another playmode than ALLCYCLE. For my purpose it's essential having SINGLE or RANDOM playback. I have 6 different Players and all exhibit the same issue.

 

with ‘DF1201S.setPlayMode(DF1201S.SINGLE);’ getplay correctly returns 3, however the file is still repeated.

however, with ‘DF1201S.setPlayMode(DF1201S.RANDOM);’ getplay returns 6…

 

Thanks a lot!

2023-05-19 09:29:53

Sorry for the inconvenience. We tested an older version of DFplayer Pro and had the same problem. We have reported this issue to the product manager. If there is a solution, you will be notified as soon as possible.

userHeadPic jenna
2023-05-17 16:47:31

Make sure you are using the correct play mode constants for the DF1201S library. Double-check the documentation or example code provided by the manufacturer to ensure that DF1201S.SINGLE corresponds to the correct constant for single play mode, and DF1201S.RANDOM corresponds to the correct constant for random play mode.

userHeadPic bidrohini.bidrohini
Arev.Imer wrote:

It doesn't matter if use

 

DF1201S.setPlayMode(DF1201S.RANDOM); // or DF1201S.RANDOM

 

or

 

DF1201S.setPlayMode(4);

 

the constant corresponds correctly. I already double checked the documentation. Do I have the right impression, that setting SINGLE should correspond to a sound being played only ONCE until play is pressed again? because that's definitely not working…

2023-05-24 00:53:33
1 Replies