You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
2.5 KiB
Markdown
91 lines
2.5 KiB
Markdown
# flutter_superplayer
|
|
|
|
适用于 Flutter 的腾讯云超级播放器插件
|
|
|
|
[![pub version][pub-image]][pub-url]
|
|
|
|
[pub-image]: https://img.shields.io/pub/v/flutter_superplayer.svg
|
|
[pub-url]: https://pub.dev/packages/flutter_superplayer
|
|
|
|
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
|
|
- [快速开始](#%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B)
|
|
- [安装](#%E5%AE%89%E8%A3%85)
|
|
- [用法](#%E7%94%A8%E6%B3%95)
|
|
- [相关链接](#%E7%9B%B8%E5%85%B3%E9%93%BE%E6%8E%A5)
|
|
- [许可证](#%E8%AE%B8%E5%8F%AF%E8%AF%81)
|
|
|
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
|
|
## 快速开始
|
|
|
|
### 安装
|
|
|
|
将此添加到包的 pubspec.yaml 文件中:
|
|
|
|
```yaml
|
|
dependencies:
|
|
flutter_superplayer: ^0.0.1
|
|
```
|
|
|
|
或
|
|
|
|
```yaml
|
|
dependencies:
|
|
flutter_superplayer:
|
|
git:
|
|
url: https://github.com/leanflutter/flutter_superplayer.git
|
|
```
|
|
|
|
您可以从命令行安装软件包:
|
|
|
|
```bash
|
|
$ flutter packages get
|
|
```
|
|
|
|
### 用法
|
|
|
|
```dart
|
|
import 'package:flutter_superplayer/flutter_superplayer.dart';
|
|
|
|
SuperPlayerController _playerController = SuperPlayerController();
|
|
String _controlViewType = kControlViewTypeDefault;
|
|
|
|
SuperPlayerView(
|
|
controller: _playerController,
|
|
controlViewType: _controlViewType,
|
|
)
|
|
```
|
|
|
|
## 相关链接
|
|
|
|
- https://github.com/tencentyun/SuperPlayer_Android
|
|
- https://github.com/tencentyun/SuperPlayer_iOS
|
|
|
|
## 许可证
|
|
|
|
```
|
|
MIT License
|
|
|
|
Copyright (c) 2021 LiJianying <lijy91@foxmail.com>
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
```
|