tv.megacubo.pip
v0.1.3
Published
PIP plugin for Megacubo project.
Readme
megacubo-pip
PIP plugin for Megacubo project.
Install
npm install megacubo-pip
npx cap syncAPI
enter(...)isPip()autoPIP(...)aspectRatio(...)onPipModeChanged()isPipModeSupported()addListener('onPipModeChanged', ...)
enter(...)
enter(options?: { width?: number | undefined; height?: number | undefined; } | undefined) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------------------------- |
| options | { width?: number; height?: number; } |
Returns: Promise<{ value: string; }>
isPip()
isPip() => Promise<{ value: boolean; }>Returns: Promise<{ value: boolean; }>
autoPIP(...)
autoPIP(options: { value: boolean; width?: number; height?: number; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ----------------------------------------------------------------- |
| options | { value: boolean; width?: number; height?: number; } |
Returns: Promise<{ value: string; }>
aspectRatio(...)
aspectRatio(options: { width: number; height: number; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ----------------------------------------------- |
| options | { width: number; height: number; } |
Returns: Promise<{ value: string; }>
onPipModeChanged()
onPipModeChanged() => Promise<void>isPipModeSupported()
isPipModeSupported() => Promise<{ value: boolean; }>Returns: Promise<{ value: boolean; }>
addListener('onPipModeChanged', ...)
addListener(eventName: 'onPipModeChanged', callback: (data: { value: boolean; }) => void) => Promise<void>| Param | Type |
| --------------- | --------------------------------------------------- |
| eventName | 'onPipModeChanged' |
| callback | (data: { value: boolean; }) => void |
