Skip to content

Commit bb8da8d

Browse files
committed
README to documentation synchro
1 parent 753e606 commit bb8da8d

8 files changed

+51
-27
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Create documentation PR
2+
on:
3+
# Trigger the workflow on pull requests targeting the main branch
4+
pull_request:
5+
types: [assigned, unassigned, opened, reopened, synchronize, edited, labeled, unlabeled, edited, closed]
6+
branches:
7+
- main
8+
9+
jobs:
10+
create_documentation_pr:
11+
if: github.event.action != 'closed'
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Check out current repository code
17+
uses: actions/checkout@v2
18+
19+
- name: Create the documentation pull request
20+
uses: apivideo/api.video-create-readme-file-pull-request-action@main
21+
with:
22+
source-file-path: "README.md"
23+
destination-repository: apivideo/api.video-documentation
24+
destination-path: sdks/vod
25+
destination-filename: apivideo-flutter-uploader.md
26+
pat: "${{ secrets.PAT }}"
27+

.github/workflows/update-documentation.yml

-17
This file was deleted.

README.md

+24-10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--<documentation_excluded>-->
12
[![badge](https://img.shields.io/twitter/follow/api_video?style=social)](https://twitter.com/intent/follow?screen_name=api_video)
23
&nbsp; [![badge](https://img.shields.io/github/stars/apivideo/api.video-flutter-uploader?style=social)](https://github.com/apivideo/api.video-flutter-uploader)
34
&nbsp; [![badge](https://img.shields.io/discourse/topics?server=https%3A%2F%2Fcommunity.api.video)](https://community.api.video)
@@ -8,7 +9,7 @@
89
video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in
910
your app.
1011

11-
# Table of contents
12+
## Table of contents
1213

1314
- [Table of contents](#table-of-contents)
1415
- [Project description](#project-description)
@@ -22,7 +23,20 @@ your app.
2223
- [Dependencies](#dependencies)
2324
- [FAQ](#faq)
2425

25-
# Project description
26+
<!--</documentation_excluded>-->
27+
<!--<documentation_only>
28+
---
29+
title: api.video Flutter video uploader
30+
meta:
31+
description: The official api.video Flutter 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.
32+
---
33+
34+
# api.video Flutter video uploader
35+
36+
[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.
37+
38+
</documentation_only>-->
39+
## Project description
2640

2741
api.video's Flutter uploader uploads videos to api.video using delegated upload token or API Key.
2842

@@ -32,9 +46,9 @@ It allows you to upload videos in two ways:
3246
- progressive upload: to send a video file by chunks, without needing to know the final size of the
3347
video file
3448

35-
# Getting started
49+
## Getting started
3650

37-
## Installation
51+
### Installation
3852

3953
Run this command:
4054

@@ -49,9 +63,9 @@ dependencies:
4963
video_uploader: ^1.2.0
5064
```
5165
52-
## Android
66+
### Android
5367
54-
### Permissions
68+
#### Permissions
5569
5670
Permissions `android.permission.READ_MEDIA_VIDEO` (for API 33+)
5771
or `android.permission.READ_EXTERNAL_STORAGE` (for API < 33) will be requested by this library at
@@ -60,7 +74,7 @@ runtime.
6074
The uploader comes with a notification to show the progress. So if your application targets Android
6175
33+, you might request `android.permission.POST_NOTIFICATIONS` permission at runtime.
6276

63-
### Notifications
77+
#### Notifications
6478

6579
To customize the notification to your own brand, you can change the icon, color or channel name by
6680
overwriting the following resources in your own application resources:
@@ -69,15 +83,15 @@ overwriting the following resources in your own application resources:
6983
- the color: `R.color.upload_notification_color`
7084
- the channel name: `R.string.upload_notification_channel_name`
7185

72-
## Code sample
86+
### Code sample
7387

7488
```dart
7589
import 'package:video_uploader/video_uploader.dart';
7690
7791
var video = await ApiVideoUploader.uploadWithUploadToken("UPLOAD_TOKEN", "path/to/my-video.mp4");
7892
```
7993

80-
# Dependencies
94+
## Dependencies
8195

8296
This project is using external library
8397

@@ -86,7 +100,7 @@ This project is using external library
86100
| Swift-video-uploader | [Swift-video-uploader](https://github.com/apivideo/api.video-swift-uploader) |
87101
| android-video-uploader | [android-video-uploader](https://github.com/apivideo/api.video-android-uploader) |
88102

89-
# FAQ
103+
## FAQ
90104

91105
If you have any questions, ask us in the [community](https://community.api.video) or
92106
use [Issues](https://github.com/apivideo/api.video-flutter-uploader/issues).

example/assets/10m.mp4

10.1 MB
Binary file not shown.

example/assets/10m.mp4.part.a

5 MB
Binary file not shown.

example/assets/10m.mp4.part.b

5 MB
Binary file not shown.

example/assets/10m.mp4.part.c

59.4 KB
Binary file not shown.

example/assets/558k.mp4

558 KB
Binary file not shown.

0 commit comments

Comments
 (0)