From bee4123402f4bc08dd2eb19ab0011ffdc795d0e3 Mon Sep 17 00:00:00 2001 From: Gunnar Carlson Date: Thu, 5 Sep 2024 03:41:27 -0500 Subject: [PATCH] fix(ios): losing subtitle selection on foreground (#3707) --- ios/Video/RCTVideo.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ios/Video/RCTVideo.swift b/ios/Video/RCTVideo.swift index 7ff1a7e7..a26f7601 100644 --- a/ios/Video/RCTVideo.swift +++ b/ios/Video/RCTVideo.swift @@ -933,9 +933,12 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH setMaxBitRate(_maxBitRate) } + if _selectedTextTrackCriteria != nil { + setSelectedTextTrack(_selectedTextTrackCriteria) + } + setAudioOutput(_audioOutput) setSelectedAudioTrack(_selectedAudioTrackCriteria) - setSelectedTextTrack(_selectedTextTrackCriteria) setResizeMode(_resizeMode) setRepeat(_repeat) setControls(_controls)