-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Simulator Crash for Non-DRM Video Playback
- Currently, we initialize the AVContentKeySession even for non-DRM videos. This causes issues when attempting to play non-DRM videos in the simulator, as the content key session cannot be initialized on the simulator. Consequently, this results in a crash during playback. - This is fixed by initialization AVContentKeySession only when the Asset is DRM-encrypted, so the app won't crash while playing non-DRM content in Simulator.
- Loading branch information
1 parent
2a3e261
commit 75fbce0
Showing
4 changed files
with
16 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,6 @@ struct Asset { | |
let playbackURL: String | ||
let status: String | ||
let duration: Double | ||
let drm_encrypted: Bool | ||
} | ||
} |
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