2023-12-21 11:08:59 +00:00
|
|
|
|
# 音视频投播管理服务框架部件
|
|
|
|
|
|
|
|
|
|
## 简介
|
|
|
|
|
|
|
|
|
|
提供自适应Cast+ Stream,Wi-Fi Display,DLNA多种协议的音视频投播能力,为南北向开发者提供统一的接口及归一化的体验。
|
|
|
|
|
|
2024-11-08 01:04:16 +00:00
|
|
|
|
|
2023-12-21 11:08:59 +00:00
|
|
|
|
## 目录
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
/foundation/CastEngine/castengine_cast_framework # 音视频投播管理服务框架业务代码
|
2024-11-08 01:04:16 +00:00
|
|
|
|
├── client # 客户端实现
|
2023-12-21 11:08:59 +00:00
|
|
|
|
├── common # 公共引用
|
|
|
|
|
├── etc # SA描述
|
|
|
|
|
├── interfaces # 接口文件
|
|
|
|
|
├── sa_profile # SA profile文件
|
|
|
|
|
├── service # 服务端实现
|
2024-11-08 01:04:16 +00:00
|
|
|
|
├── LICENSE # 开源协议文件
|
2023-12-21 11:08:59 +00:00
|
|
|
|
├── BUILD.gn # 编译入口
|
|
|
|
|
└── bundle.json # 部件描述文件
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 编译构建
|
|
|
|
|
|
2024-11-08 01:04:16 +00:00
|
|
|
|
通过如下编译命令:
|
|
|
|
|
|
2023-12-21 11:08:59 +00:00
|
|
|
|
```
|
|
|
|
|
hb build cast
|
|
|
|
|
```
|
2024-11-08 01:04:16 +00:00
|
|
|
|
在out目录对应产品的文件夹中生成如下产物:
|
|
|
|
|
```
|
|
|
|
|
libcast.z.so
|
|
|
|
|
libcast_engine_client.z.so
|
|
|
|
|
libcast_engine_service.z.so
|
|
|
|
|
```
|
|
|
|
|
|
2023-12-21 11:08:59 +00:00
|
|
|
|
|
|
|
|
|
### 使用说明
|
|
|
|
|
|
|
|
|
|
提供整体的投播框架,支持其他投屏协议的接入以及投屏协议自适应选择。
|
|
|
|
|
北向接入可参考[Sample](https://gitee.com/openharmony/applications_app_samples/tree/master/code/BasicFeature/Media/AVSession)。
|
|
|
|
|
|
|
|
|
|
## 相关仓
|
|
|
|
|
|
|
|
|
|
[castengine_cast_plus_stream](https://gitee.com/openharmony-sig/castengine_cast_plus_stream)
|
|
|
|
|
|
|
|
|
|
[castengine_wifi_display](https://gitee.com/openharmony-sig/castengine_wifi_display)
|
|
|
|
|
|
|
|
|
|
[castengine_dlna](https://gitee.com/openharmony-sig/castengine_dlna)
|