# tx_live_plugin **Repository Path**: flutter-assembly/tx_live_plugin ## Basic Information - **Project Name**: tx_live_plugin - **Description**: 使用腾讯直播推流的sdk的插件,适配安卓与iOS的直播录像、在线播放功能 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2022-02-10 - **Last Updated**: 2024-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # tx_live_plugin #### 介绍 使用腾讯直播推流的sdk的插件,适配安卓与iOS的直播录像、在线播放功能 Android方面: 直播推流视频、推流视频在线播放、视频聊天功能 iOS方面: 未实现功能 #### 软件架构 软件架构说明 #### 安装教程 #### 使用说明 1. flutter 引用项目 flutter项目的pubspec.yaml文件中,添加该仓库 dependencies: tx_live_plugin: git: url: 'https://gitee.com/flutter-assembly/tx_live_plugin.git' version: '1.0.0' 2. Android配置 (1)需要相机权限、存储权限、录音权限 (2)如果设置外部缓存文件,Android10,需要AndroidManifest.xml的application标签中设置属性 android:requestLegacyExternalStorage="true" (3)设置混淆规则 在 proguard-rules.pro 文件中,将 LiteAVSDK 相关类加入不混淆名单: -keep class com.tencent.** { *; } (4)需要recyclerview,在build.gradle中dependencies配置 implementation 'androidx.recyclerview:recyclerview:1.1.0' 3. iOS配置 需要相机权限 4. 功能使用 使用拍摄直播推流视频功能,引用:import 'package:tx_live_plugin/widget/tx_live_push.dart'; 使用推流视频的在线播放功能,引用:import 'package:tx_live_plugin/widget/tx_live_play.dart'; 使用视频聊天功能,引用:import 'package:tx_live_plugin/widget/tx_live_chat.dart' #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request