-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support all MuxCore overrides and set default values (#9)
* feat: support all MuxCore overrides * fix: set player software name and version * feat: support environment key override via MonitoringOptions * fix: remove binding from bindings dictionary * build: use v3.3.2 MUXSDKStats, fixes Xcode warning * fix: pass nil for playback ID inference
- Loading branch information
1 parent
87865e6
commit c812263
Showing
7 changed files
with
112 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// MonitorTests.swift | ||
// | ||
|
||
import AVKit | ||
import Foundation | ||
import XCTest | ||
|
||
@testable import MuxAVPlayerSDK | ||
|
||
class MonitorTests: XCTestCase { | ||
|
||
func testMonitoringLifecycle() throws { | ||
|
||
let playerViewController = AVPlayerViewController( | ||
playbackID: "abc" | ||
) | ||
|
||
let monitor = Monitor.shared | ||
|
||
XCTAssertEqual( | ||
monitor.bindings.count, | ||
1 | ||
) | ||
|
||
playerViewController.stopMonitoring() | ||
|
||
XCTAssertTrue( | ||
monitor.bindings.isEmpty | ||
) | ||
|
||
} | ||
|
||
} |