Skip to content

Commit

Permalink
Merge pull request #5 from apivideo/documentation-reactnative-uploader
Browse files Browse the repository at this point in the history
README to documentation synchro
  • Loading branch information
olivier-lando authored Nov 20, 2023
2 parents a3657a8 + 6a8aa41 commit aebb158
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 593 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/create-documentation-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Create documentation PR
on:
# Trigger the workflow on pull requests targeting the main branch
pull_request:
types: [assigned, unassigned, opened, reopened, synchronize, edited, labeled, unlabeled, edited, closed]
branches:
- main

jobs:
create_documentation_pr:
if: github.event.action != 'closed'

runs-on: ubuntu-latest

steps:
- name: Check out current repository code
uses: actions/checkout@v2

- name: Create the documentation pull request
uses: apivideo/api.video-create-readme-file-pull-request-action@main
with:
source-file-path: "README.md"
destination-repository: apivideo/api.video-documentation
destination-path: sdks/vod
destination-filename: apivideo-react-native-uploader.md
pat: "${{ secrets.PAT }}"

38 changes: 26 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!--<documentation_excluded>-->
[![badge](https://img.shields.io/twitter/follow/api_video?style=social)](https://twitter.com/intent/follow?screen_name=api_video) &nbsp; [![badge](https://img.shields.io/github/stars/apivideo/api.video-reactnative-uploader?style=social)](https://github.com/apivideo/api.video-reactnative-uploader) &nbsp; [![badge](https://img.shields.io/discourse/topics?server=https%3A%2F%2Fcommunity.api.video)](https://community.api.video)
![](https://github.com/apivideo/.github/blob/main/assets/apivideo_banner.png)
![npm](https://img.shields.io/npm/v/@api.video/react-native-video-uploader) ![ts](https://badgen.net/badge/-/TypeScript/blue?icon=typescript&label)
Expand All @@ -6,7 +7,7 @@

[api.video](https://api.video) is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in your app.

# Table of contents
## Table of contents

- [Table of contents](#table-of-contents)
- [Project description](#project-description)
Expand All @@ -17,13 +18,26 @@
- [Plugins](#plugins)
- [FAQ](#faq)

# Project description
<!--</documentation_excluded>-->
<!--<documentation_only>
---
title: api.video React Native video uploader
meta:
description: The official api.video React Native video uploader for api.video. [api.video](https://api.video/) is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in your app.
---
# api.video React Native video uploader
[api.video](https://api.video/) is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in your app.
</documentation_only>-->
## Project description

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

# Getting started
## Getting started

## Installation
### Installation

```sh
npm install @api.video/react-native-video-uploader
Expand All @@ -43,9 +57,9 @@ _Note: if you are on iOS, you will need two extra steps:_
cd ios && pod install
```

2. 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](docs/install_swift_dependency.md)
2. 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](https://github.com/apivideo/api.video-reactnative-uploader/blob/main/docss/install_swift_dependency.md)

## Code sample
### Code sample

```js
import ApiVideoUploader from '@api.video/react-native-video-uploader';
Expand All @@ -59,25 +73,25 @@ ApiVideoUploader.uploadWithUploadToken('MY_VIDEO_TOKEN', 'my-video.mp4')
});
```

# Example
## Example

An example that demonstrates how to use the API is provided in folder [example/](https://github.com/apivideo/api.video-reactnative-uploader/tree/master/example).

# Plugins
## Plugins

api.video-reactnative-uploader is using external native library for upload

| Plugin | README |
| ---------------------- | ------------------------ |
| iOS-video-uploader | [iOS-video-uploader] |
| swift-video-uploader | [swift-video-uploader] |
| android-video-uploader | [android-video-uploader] |

# FAQ
## FAQ

If you have any questions, ask [our community](https://community.api.video).
Or use [Issues].

[//]: # "These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen. Thanks SO - http://stackoverflow.com/questions/4823468/store-comments-in-markdown-syntax"
[videouploaderios]: https://github.com/apivideo/ios-video-uploader
[android-video-uploader]: https://github.com/apivideo/android-video-uploader
[swift-video-uploader]: https://github.com/apivideo/api.video-swift-uploader
[android-video-uploader]: https://github.com/apivideo/api.video-android-uploader
[issues]: https://github.com/apivideo/api.video-reactnative-uploader/issues
Loading

0 comments on commit aebb158

Please sign in to comment.