Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Jul 25, 2024
1 parent 785a2ef commit a131a45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Examples/iOS/PlayerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import UIKit
class PlayerViewController: UIViewController {
let playerView: ApiVideoPlayerView = .init(
frame: .zero,
videoOptions: VideoOptions(videoId: "vi77Dgk0F8eLwaFOtC5870yn", videoType: .vod)
videoOptions: VideoOptions(videoId: "vi1pVSrHJVabmE44TfNp0my9", videoType: .vod)
)

let scrollView: UIScrollView = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ final class AVPlayerExtensions: XCTestCase {
_ = observer.readyExpectation

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

avPlayer.play()

waitForExpectations(timeout: 10, handler: nil)
avPlayer.currentItem?.removeObserver(observer, forKeyPath: "status")
avPlayer.removeObserver(observer, forKeyPath: "status")
}

func testValidMP4VideoIdPlay() throws {
Expand Down

0 comments on commit a131a45

Please sign in to comment.