React Native Uploader

See the full details at npm

@api.video/react-native-api-video-uploader

npmnpm tsts

This module is an easy way to upload video with delegated token to Api.Video

Installation

npm install @api.video/react-native-api-video-uploader

or

yarn add @api.video/react-native-api-video-uploader

Note: if you are on iOS, you will need two extra steps:

  1. Don't forget to install the native dependencies with Cocoapods
cd ios && pod install
  1. This project contains swift code, and if it's your first dependency with swift code, you need to create an empty swift file in your project (with the bridging header) from XCode. Find how to do that

Usage

import ApiVideoUploader from "@api.video/react-native-api-video-uploader";

// ...

ApiVideoUploader.upload("YOUR_TOKEN", "VIDEO_NAME", "FILE_PATH").then((value: Video) =>{
    console.log(`video : `, value)
});

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

Plugins

API.Video LiveStream module is using external native library for broadcasting

PluginREADME
VideoUploaderIosVideoUploaderIos
android-video-uploaderandroid-video-uploader

FAQ

If you have any questions, ask us here: https://community.api.video .
Or use Issues.

Example App

You can try our example app, feel free to test it.

License

MIT License
Copyright (c) 2021 api.video


Did this page help you?