Skip to content

Commit

Permalink
8268718: [macos] Video stops, but audio continues to play when stopTi…
Browse files Browse the repository at this point in the history
…me is reached

Backport-of: 0c98d96
  • Loading branch information
kevinrushforth committed Sep 15, 2021
1 parent d7c612f commit 3c6596b
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -333,6 +333,9 @@ - (double) currentTime
- (void) setCurrentTime:(double)time
{
[self.player seekToTime:CMTimeMakeWithSeconds(time, 1)];
if (previousPlayerState == kPlayerState_FINISHED) {
[self play];
}
}

- (BOOL) mute {
Expand Down Expand Up @@ -402,6 +405,8 @@ - (void) stop {
}

- (void) finish {
[self.player pause];
[self setPlayerState:kPlayerState_FINISHED];
}

- (void) dispose {
Expand Down

1 comment on commit 3c6596b

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.