Skip to content

Commit 27fc815

Browse files
Merge pull request #94 from t1ooo/master
Fix autoStart (#64)
2 parents 8c4abdc + 7fa45f0 commit 27fc815

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dartvlc/internal/setters.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ class PlayerSetters: public PlayerEvents {
4646
this->state->isPlaylist = true;
4747
}
4848
this->_onOpenCallback(this->mediaList.itemAtIndex(0));
49-
this->mediaListPlayer.playItemAtIndex(0);
49+
if (autoStart) {
50+
this->mediaListPlayer.playItemAtIndex(0);
51+
}
5052
this->state->index = 0;
5153
this->state->isPlaying = this->mediaListPlayer.isPlaying();
5254
this->state->isValid = this->mediaListPlayer.isValid();

0 commit comments

Comments
 (0)