feat(android): add prop to control debug log level (#3277)

* feat: add prop to allow controlling of debug log level

* fix: move props parsing to safeGetters

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
This commit is contained in:
Olivier Bouillet
2023-10-10 09:47:56 +02:00
committed by GitHub
parent 0ad2e52499
commit add87922a6
7 changed files with 324 additions and 72 deletions

View File

@@ -48,6 +48,11 @@ export type Filter =
export type DrmType = 'widevine' | 'playready' | 'clearkey' | 'fairplay';
type DebugConfig = Readonly<{
enable?: boolean;
thread?: boolean;
}>;
type Drm = Readonly<{
drmType?: DrmType;
licenseServer?: string;
@@ -262,6 +267,7 @@ export interface VideoNativeProps extends ViewProps {
progressUpdateInterval?: number;
restoreUserInterfaceForPIPStopCompletionHandler?: boolean;
localSourceEncryptionKeyScheme?: string;
debug?: DebugConfig;
backBufferDurationMs?: number; // Android
bufferConfig?: BufferConfig; // Android

View File

@@ -39,6 +39,11 @@ export type ReactVideoSource = Readonly<{
customImageUri?: string;
}>;
type DebugConfig = Readonly<{
enable?: boolean;
thread?: boolean;
}>;
export type ReactVideoDrm = Readonly<{
type?: 'widevine' | 'playready' | 'clearkey' | 'fairplay';
licenseServer?: string;
@@ -153,4 +158,5 @@ export interface ReactVideoProps extends ReactVideoEvents {
useSecureView?: boolean; // Android
volume?: number;
localSourceEncryptionKeyScheme?: string;
debug?: DebugConfig;
}