Skip to content

Commit

Permalink
fix undesired play after load (#6582)
Browse files Browse the repository at this point in the history
video shouldn't start playing until play is called

#changelog #macos
  • Loading branch information
2bbb committed May 5, 2020
1 parent 15997a0 commit 6c6ea54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/openFrameworks/video/ofAVFoundationVideoPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,8 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
// auto-play or play if started before beeing ready
if(bAutoPlayOnLoad || bPlayStateBeforeLoad) {
[self play];
} else {
[self pause];
}

// update as soon is ready so pixels are loaded.
Expand Down

0 comments on commit 6c6ea54

Please sign in to comment.