Methods
on
- on<K>(eventName: K, fn: EventReceiver<PLVCoreEventParams[K]>): void
-
Type Parameters
-
K extends EventKey<PLVCoreEventParams>
Parameters
-
eventName: K
-
fn: EventReceiver<PLVCoreEventParams[K]>
Returns void
off
- off<K>(eventName: K, fn: EventReceiver<PLVCoreEventParams[K]>): void
-
Type Parameters
-
K extends EventKey<PLVCoreEventParams>
Parameters
-
eventName: K
-
fn: EventReceiver<PLVCoreEventParams[K]>
Returns void
removeAllListeners
- removeAllListeners(): void
-
Returns void
getSdkVersion
- getSdkVersion(): string
-
Returns string
getSdkErrorDescription
- getSdkErrorDescription(code: number): string
-
Returns string
setSdkLogFile
- setSdkLogFile(path: string): number
-
Returns number
setSdkLogLevel
- setSdkLogLevel(level: PLVLogLevel): number
-
Returns number
checkFileComplete
- checkFileComplete(vid: string, filePath: string, rate: PLVVideoRateType): boolean
-
Parameters
-
vid: string
-
filePath: string
-
Returns boolean
setSdkHwdecEnable
- setSdkHwdecEnable(enable: boolean): number
-
Returns number
setSdkKeepLastFrame
- setSdkKeepLastFrame(enable: boolean): number
-
Returns number
setSdkLocalRememberPlay
- setSdkLocalRememberPlay(enable: boolean): number
-
Returns number
setSdkRetryAttempts
- setSdkRetryAttempts(count: number, minWaitTime: number, maxWaitTime: number): number
-
Parameters
-
count: number
-
minWaitTime: number
-
maxWaitTime: number
Returns number
release
- release(): void
-
Returns void
deleteLocalVideoFile
- deleteLocalVideoFile(vid: string, path: string, rate: PLVVideoRateType): number
-
Returns number
SDK接口操作全局对象