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

https://github.com/svssdeva/video-data-bridge


https://github.com/svssdeva/video-data-bridge

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

          

# @svssdeva/video-data-bridge

Capacitor plugin for passing data from web to android

## Install

```bash
npm install @svssdeva/video-data-bridge
npx cap sync
```

## API

* [`openVideo(...)`](#openvideo)
* [`openDownloadsPage()`](#opendownloadspage)
* [Interfaces](#interfaces)

### openVideo(...)

```typescript
openVideo(videoData: VideoData) => Promise<{ success: boolean; }>
```

| Param | Type |
| --------------- | ----------------------------------------------- |
| **`videoData`** | VideoData |

**Returns:** Promise<{ success: boolean; }>

--------------------

### openDownloadsPage()

```typescript
openDownloadsPage() => Promise<{ success: boolean; }>
```

**Returns:** Promise<{ success: boolean; }>

--------------------

### Interfaces

#### VideoData

| Prop | Type |
| ---------------- | ------------------- |
| **`token`** | string |
| **`userId`** | string |
| **`videoData`** | string |
| **`clientId`** | string |
| **`clientType`** | string |
| **`randomId`** | string |