-
Notifications
You must be signed in to change notification settings - Fork 31
feat: add contentprotectionerror player event on all platforms #859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ public class THEOplayerRCTMainEventHandler { | |
| var onNativeRateChange: RCTDirectEventBlock? | ||
| var onNativeWaiting: RCTDirectEventBlock? | ||
| var onNativeCanPlay: RCTDirectEventBlock? | ||
| var onNativeContentProtectionError: RCTDirectEventBlock? | ||
|
wvanhaevre marked this conversation as resolved.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔍 iOS callback plumbing added but no native listener attached (deferred) The iOS changes add the bridge property ( Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| var onNativeDimensionChange: RCTDirectEventBlock? | ||
| var onNativeVideoResize: RCTDirectEventBlock? | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| /** | ||
| * An error related to content protection. | ||
| * | ||
| * @category Errors | ||
| * @category Content Protection | ||
| * @public | ||
| */ | ||
| export interface ContentProtectionErrorObject { | ||
| /** | ||
| * The error code. | ||
| */ | ||
| readonly errorCode: string; | ||
|
|
||
| /** | ||
| * The error message. | ||
| */ | ||
| readonly errorMessage: string; | ||
|
|
||
| /** | ||
| * The URL that was used in the request. | ||
| * | ||
| * @remarks | ||
| * Only available for certificate or license request errors. | ||
| */ | ||
| readonly url?: string; | ||
|
|
||
| /** | ||
| * The status code from the HTTP response. | ||
| * | ||
| * @remarks | ||
| * Only available for certificate or license request errors. | ||
| */ | ||
| readonly status?: number; | ||
|
|
||
| /** | ||
| * The status text from the HTTP response. | ||
| * | ||
| * @remarks | ||
| * Only available for certificate or license request errors. | ||
| */ | ||
| readonly statusText?: string; | ||
|
|
||
| /** | ||
| * The body contained in the HTTP response. | ||
| * | ||
| * @remarks | ||
| * Only available for certificate or license request errors. | ||
| */ | ||
| readonly response?: string; | ||
|
|
||
| /** | ||
| * The internal error code from the CDM. | ||
| * | ||
| * @remarks | ||
| * Only available for internal CDM errors. | ||
| */ | ||
| readonly systemCode?: number; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| export * from './PlayerError'; | ||
| export * from './ChromecastError'; | ||
| export * from './ContentProtectionError'; |
Uh oh!
There was an error while loading. Please reload this page.