Skip to content

Commit 973862e

Browse files
committed
Bug Fix - didSet videoId
1 parent 319f24a commit 973862e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ios/YouTubeView.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ import UIKit
4545
self.player.isUserInteractionEnabled = showSeekBar
4646
}
4747
}
48-
49-
@objc var videoId: NSString = ""
48+
49+
@objc var videoId: NSString = "" {
50+
didSet {
51+
_ = player.load(videoId: videoId as String, playerVars: playerVars)
52+
}
53+
}
5054

5155
override init(frame: CGRect) {
5256
super.init(frame: frame)

0 commit comments

Comments
 (0)