Skip to content

Commit 3c2d660

Browse files
authored
fix: missing isPlayPauseEnabled property for tvos (#451)
1 parent 350e87f commit 3c2d660

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ios/Video/NewPlayerView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ class NewPlayerView: UIView, JSInputProtocol {
145145
jsProps.locale.value = locale
146146
}
147147
}
148+
149+
@objc var isPlayPauseEnabled: Bool = true {
150+
didSet {
151+
jsProps.isPlayPauseEnabled.value = isPlayPauseEnabled
152+
}
153+
}
148154

149155
//FIXME: review unused variables
150156
@objc var selectedTextTrack: NSDictionary?

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-video",
3-
"version": "7.12.2",
3+
"version": "7.12.3",
44
"dorisAndroidVersion": "5.2.1",
55
"messagingAndroidVersion": "1.1.0",
66
"description": "A <Video /> element for react-native",

0 commit comments

Comments
 (0)