-
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.
chore: dispatch FairPlay-related error details (#57)
* chore: add error detail collection hooks to fairplaysession manager * chore: inject PlayerSDK instance when initializing AVPlayerItem to ease unit testing * chore: support multiple observations for one AVPlayer * player item handle scaffolding * chore: handle nil inside monitor * better error instrumentation * chore: inject playerSDK when preparing existing AVPlayerLayer and AVPlayerViewController chore: remove unneeded method * feat: opt-out of automatic error tracking if using FairPlay * extract playback ID from AVPlayerItem if present to validate Mux Data configuration include test fixture variant with stubs that record call arguments more tests * pass DRM hint accurately * Improve defensive copying Make a defensive copy of MUXSDKCustomerData when it is provided. Since it is a reference, this prevents alterations the SDK makes to bubble up to client code. As well as guards against the player software name and version from being altered after they're set. Improve readability. Add customer data tests to validate dimensions are passed through and check for pointer equality
- Loading branch information
1 parent
858d45c
commit 1fd0d34
Showing
13 changed files
with
2,010 additions
and
187 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// ErrorDispatcher.swift | ||
// | ||
// | ||
|
||
import Foundation | ||
|
||
protocol ErrorDispatcher { | ||
func dispatchApplicationCertificateRequestError( | ||
error: FairPlaySessionError, | ||
playbackID: String | ||
) | ||
|
||
func dispatchLicenseRequestError( | ||
error: FairPlaySessionError, | ||
playbackID: String | ||
) | ||
|
||
|
||
|
||
} |
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
Oops, something went wrong.