Preview Video using native iOS, Android players
npm install @numbersprotocol/preview-video
npx cap sync
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
create(_args: CreatePreviewVideoArgs) => Promise<any>
Param | Type |
---|---|
_args |
CreatePreviewVideoArgs |
Returns: Promise<any>
destroy(_args: DestroyPreviewVideoArgs) => Promise<any>
Param | Type |
---|---|
_args |
DestroyPreviewVideoArgs |
Returns: Promise<any>
onScroll(args: OnScrollArgs) => Promise<void>
Param | Type |
---|---|
args |
OnScrollArgs |
Prop | Type |
---|---|
id |
string |
src |
string |
element |
HTMLElement |
config |
PreviewVideoConfig |
Prop | Type | Description |
---|---|---|
width |
number |
Override width for native Video Player |
height |
number |
Override height for native Video Player |
x |
number |
Override absolute x coordinate position for native Video Player |
y |
number |
Override absolute y coordinate position for native Video Player |
Prop | Type |
---|---|
id |
string |
Prop | Type |
---|---|
id |
string |
previewVideoBounds |
{ x: number; y: number; width: number; height: number; } |