capacitor-npe
v0.24.6
Published
NPE Wrapper for capacitor. Allows you to call the Java APIs asynchronously as a plugin. Only works on Android. Fully typed.
Readme
capacitor-npe
NPE Wrapper that allows you to call the Java APIs for NPE
Install
npm install capacitor-npe
npx cap syncAPI
extractStreamInfo(...)
extractStreamInfo(options: { videoUrl: string; }) => anyExtract YouTube video stream information
| Param | Type | Description |
| ------------- | ---------------------------------- | ----------------------- |
| options | { videoUrl: string; } | - The video URL options |
Returns: any
Interfaces
StreamInfoResult
| Prop | Type |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| success | boolean |
| error | string |
| streamInfo | { title: string; duration: number; uploader: string; viewCount: number; thumbnailUrl: string; videoStreams: {}; audioStreams: {}; videoOnlyStreams: {}; } |
VideoStream
| Prop | Type |
| ---------------- | ------------------- |
| url | string |
| format | string |
| resolution | string |
| fps | number |
AudioStream
| Prop | Type |
| ------------- | ------------------- |
| url | string |
| format | string |
| bitrate | number |
