Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK README - api.video-flutter-uploader] fix(android): avoid name shadowing in ProxyLifecycleProvider #360

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions sdks/vod/apivideo-flutter-uploader.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ It allows you to upload videos in two ways:

### Installation

Run this command:
Run the following command at the root of your project:

```bash
flutter pub add video_uploader
Expand All @@ -33,7 +33,7 @@ This will add the following lines to your package's pubspec.yaml file:

``` yaml
dependencies:
video_uploader: ^1.2.0
video_uploader: ^1.2.3
```

### Android
Expand All @@ -47,6 +47,17 @@ runtime.
The uploader comes with a notification to show the progress. So if your application targets Android
33+, you might request `android.permission.POST_NOTIFICATIONS` permission at runtime.

When targeting Android API Level 34+, you must declare the service type in your application's manifest file.
In your `AndroidManifest.xml` file, add the following lines in the `<application>` tag:

```xml

<service
android:name="androidx.work.impl.foreground.SystemForegroundService"
android:exported="false"
android:foregroundServiceType="dataSync" />
```

#### Notifications

To customize the notification to your own brand, you can change the icon, color or channel name by
Expand All @@ -61,7 +72,7 @@ overwriting the following resources in your own application resources:
```dart
import 'package:video_uploader/video_uploader.dart';

var video = await ApiVideoUploader.uploadWithUploadToken("UPLOAD_TOKEN", "path/to/my-video.mp4");
var video = await ApiVideoUploader.uploadWithUploadToken("YOUR_UPLOAD_TOKEN", "path/to/my-video.mp4");
```

## Dependencies
Expand Down
Loading