Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Jul 24, 2024
1 parent 5ce6ac0 commit 47ec0b3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ final class AVPlayerExtensions: XCTestCase {
let ready = observer.readyExpectation

let avPlayer = AVPlayer(playerItem: nil)
avPlayer.replaceCurrentItem(withHls: VideoOptions(videoId: VideoId.validVideoId, videoType: .vod))
avPlayer.currentItem?.addObserver(observer, forKeyPath: "status", options: .new, context: nil)
avPlayer.replaceCurrentItem(withHls: VideoOptions(videoId: VideoId.validVideoId, videoType: .vod))

avPlayer.play()

wait(for: [ready], timeout: 10)
Expand Down

0 comments on commit 47ec0b3

Please sign in to comment.