Skip to content

Commit

Permalink
fix(ios): losing subtitle selection on foreground (#3707)
Browse files Browse the repository at this point in the history
  • Loading branch information
Myst1024 authored Sep 5, 2024
1 parent b871d93 commit bee4123
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ios/Video/RCTVideo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bee4123

Please sign in to comment.