https://github.com/harshmandan/capacitor-npe
NPE wrapper for capacitor - Android only
https://github.com/harshmandan/capacitor-npe
Last synced: 11 months ago
JSON representation
NPE wrapper for capacitor - Android only
- Host: GitHub
- URL: https://github.com/harshmandan/capacitor-npe
- Owner: harshmandan
- Created: 2025-07-03T14:47:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-03T15:00:35.000Z (about 1 year ago)
- Last Synced: 2025-08-31T03:03:52.819Z (11 months ago)
- Language: Java
- Homepage: https://harsh.ink/blog/capacitor-plugin
- Size: 396 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# capacitor-npe
NPE Wrapper that allows you to call the Java APIs for NPE
## Install
```bash
npm install capacitor-npe
npx cap sync
```
## API
* [`extractStreamInfo(...)`](#extractstreaminfo)
* [Interfaces](#interfaces)
### extractStreamInfo(...)
```typescript
extractStreamInfo(options: { videoUrl: string; }) => any
```
Extract 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 |