Skip to content

Commit e3ef986

Browse files
committed
rtsp: mp3 examlple - corrections
1 parent 6331bac commit e3ef986

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/examples-communication/rtsp/communication-player_mp3-rtsp/communication-player_mp3-rtsp.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ void setup() {
2525
Serial.begin(115200);
2626
AudioToolsLogger.begin(Serial, AudioToolsLogLevel::Warning);
2727

28-
// no delay between mp3 files
29-
source.setTimeoutAutoNext(0);
28+
// delay between mp3 files
29+
source.setTimeoutAutoNext(1000);
3030

3131
// start the player
3232
player.begin();
@@ -40,7 +40,7 @@ void setup() {
4040
}
4141

4242
void loop() {
43-
if (rtsp_out) {
43+
if (rtsp_out && rtsp) {
4444
player.copy();
4545
}
4646
}

0 commit comments

Comments
 (0)