An open API service indexing awesome lists of open source software.

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

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 |