Skip to content
Permalink
Browse files
8268718: [macos] Video stops, but audio continues to play when stopTi…
…me is reached

Backport-of: 0c98d9608611aa2378b38604e2528935c94e84ae
  • Loading branch information
arapte committed Aug 19, 2021
1 parent e9433d6 commit 5185c671f4ad4df2d93dd48df1d78129101e73a1
Showing with 5 additions and 0 deletions.
  1. +5 −0 modules/javafx.media/src/main/native/jfxmedia/platform/osx/avf/AVFMediaPlayer.mm
@@ -333,6 +333,9 @@ - (double) currentTime
- (void) setCurrentTime:(double)time
{
[self.player seekToTime:CMTimeMakeWithSeconds(time, 1)];
if (previousPlayerState == kPlayerState_FINISHED) {
[self play];
}
}

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

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

- (void) dispose {

1 comment on commit 5185c67

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 5185c67 Aug 19, 2021

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.