Skip to content

Commit a131a45

Browse files
committed
test
1 parent 785a2ef commit a131a45

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Examples/iOS/PlayerViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import UIKit
55
class PlayerViewController: UIViewController {
66
let playerView: ApiVideoPlayerView = .init(
77
frame: .zero,
8-
videoOptions: VideoOptions(videoId: "vi77Dgk0F8eLwaFOtC5870yn", videoType: .vod)
8+
videoOptions: VideoOptions(videoId: "vi1pVSrHJVabmE44TfNp0my9", videoType: .vod)
99
)
1010

1111
let scrollView: UIScrollView = {

Tests/ApiVideoPlayerTests/IntegrationTests/AVPlayerExtensionsTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ final class AVPlayerExtensions: XCTestCase {
1010
_ = observer.readyExpectation
1111

1212
let avPlayer = AVPlayer(playerItem: nil)
13+
avPlayer.addObserver(observer, forKeyPath: "status", options: .new, context: nil)
1314
avPlayer.replaceCurrentItem(withHls: VideoOptions(videoId: VideoId.validVideoId, videoType: .vod))
14-
avPlayer.currentItem?.addObserver(observer, forKeyPath: "status", options: .new, context: nil)
15+
1516
avPlayer.play()
1617

1718
waitForExpectations(timeout: 10, handler: nil)
18-
avPlayer.currentItem?.removeObserver(observer, forKeyPath: "status")
19+
avPlayer.removeObserver(observer, forKeyPath: "status")
1920
}
2021

2122
func testValidMP4VideoIdPlay() throws {

0 commit comments

Comments
 (0)