NPE Wrapper that allows you to call the Java APIs for NPE
npm install capacitor-npe
npx cap sync
extractStreamInfo(...)
extractStreamInfo(options: { videoUrl: string; }) => any
Extract YouTube video stream information
| Param |
Type |
Description |
options |
{ videoUrl: string; } |
- The video URL options |
Returns: any
| Prop |
Type |
success |
boolean |
error |
string |
streamInfo |
{ title: string; duration: number; uploader: string; viewCount: number; thumbnailUrl: string; videoStreams: {}; audioStreams: {}; videoOnlyStreams: {}; } |
| Prop |
Type |
url |
string |
format |
string |
resolution |
string |
fps |
number |
| Prop |
Type |
url |
string |
format |
string |
bitrate |
number |