@@ -11,12 +11,23 @@ This directory contains the demo source code of the Player SDK for Flutter plugi
...
@@ -11,12 +11,23 @@ This directory contains the demo source code of the Player SDK for Flutter plugi
├── ios // Demo source code of the Player for iOS plugin
├── ios // Demo source code of the Player for iOS plugin
├── lib // Demo source code of the Player for Dart plugin
├── lib // Demo source code of the Player for Dart plugin
├── docs // Help documentation
├── docs // Help documentation
└── example // Superplayer component
├── superplayer_widget // Superplayer component
└── example // Demo code related to player
├── android // Demo source code for Android
├── android // Demo source code for Android
├── ios // Demo source code for iOS
├── ios // Demo source code for iOS
└── lib // Code samples for VOD and live players as well as Superplayer
└── lib // Code samples for VOD and live players as well as Superplayer
```
```
## Branch Description
The Flutter player relies on the TXLiteAVSDK. This project provides 3 branches for integration based on business needs:
[main](https://github.com/LiteAVSDK/Player_Flutter/tree/main): relies on the TXLiteAVSDK_Player SDK, which is the default branch.
[Professional](https://github.com/LiteAVSDK/Player_Flutter/tree/Professional): relies on the TXLiteAVSDK_Professional SDK. If the TXLiteAVSDK_Professional SDK has already been integrated into the project, this branch needs to be integrated.
[Player_Premium](https://github.com/LiteAVSDK/Player_Flutter/tree/Player_Premium): relies on the TXLiteAVSDK_Player_Premium SDK, which includes value-added features such as external subtitles and multiple audio tracks, and is supported starting from version 11.7.
## Project Overview
## Project Overview
The Player SDK is a subproduct of RT-Cube, which provides VOD and live players based on Tencent Cloud's powerful backend capabilities and AI technologies. It can be used together with VOD or CSS to quickly implement smooth and stable playback for various use cases. It allows you to focus on your business while delivering an ultra fast HD playback experience.
The Player SDK is a subproduct of RT-Cube, which provides VOD and live players based on Tencent Cloud's powerful backend capabilities and AI technologies. It can be used together with VOD or CSS to quickly implement smooth and stable playback for various use cases. It allows you to focus on your business while delivering an ultra fast HD playback experience.
...
@@ -43,276 +54,6 @@ In addition, those SDKs require license verification for the video playback feat
...
@@ -43,276 +54,6 @@ In addition, those SDKs require license verification for the video playback feat
If you don't have the necessary license and **need to use the live playback or VOD playback feature in the Player SDK 10.1 or later, you need to purchase the license.** For more information, see [here](https://cloud.tencent.com/document/product/881/74199#.E6.8E.88.E6.9D.83.E8.AF.B4.E6.98.8E). If you don't need to use those features or haven't upgraded the SDK to the latest version, you won't be affected by this change.
If you don't have the necessary license and **need to use the live playback or VOD playback feature in the Player SDK 10.1 or later, you need to purchase the license.** For more information, see [here](https://cloud.tencent.com/document/product/881/74199#.E6.8E.88.E6.9D.83.E8.AF.B4.E6.98.8E). If you don't need to use those features or haven't upgraded the SDK to the latest version, you won't be affected by this change.
## Quick Integration
### Configuring `pubspec.yaml`
Integrate `LiteAVSDK_Player` (which is integrated by default) and add the following configuration to `pubspec.yaml`:
```yaml
super_player:
git:
url:https://github.com/tencentyun/SuperPlayer
path:Flutter
```
To integrate `LiteAVSDK_Professional`, change the configuration in `pubspec.yaml` as follows:
```yaml
super_player:
git:
url:https://github.com/tencentyun/SuperPlayer
path:Flutter
ref:Professional
```
Then, update the dependency package:
```yaml
flutter packages get
```
### Adding native configuration
#### Android configuration
Add the following configuration to the `AndroidManifest.xml` file of Android:
If you don't have the required license, you need to get it as instructed in [Video Playback License](https://cloud.tencent.com/document/product/881/74588).
To integrate a player, you need to [sign up for a Tencent Cloud account](https://cloud.tencent.com/login), apply for the video playback license, and then integrate the license as follows. We recommend you integrate it during application start.
If no license is integrated, exceptions may occur during playback.