README.md
1# Media<a name="EN-US_TOPIC_0000001147574647"></a>
2
3- [Introduction](#section1158716411637)
4- [Directory Structure](#section161941989596)
5- [Repositories Involved](#section1533973044317)
6
7## Introduction<a name="section1158716411637"></a>
8
9The **media\_standard** repository provides a set of simple and easy-to-use APIs for you to access the system and media resources.
10
11It offers various media services covering audio, videos, and media storage. The following media capabilities are provided:
12
13- Audio playback and recording
14- Video playback and recording
15
16**Figure 1** Position in the subsystem architecture<a name="fig99659301300"></a>
17
18
19![](figures/en-us_image_0000001105973932.png)
20
21## Directory Structure<a name="section161941989596"></a>
22
23The structure of the repository directory is as follows:
24```
25/foundation/multimedia/player_framework
26├── interfaces # interface
27│ ├── kits # Application interface
28│ └── inner_api # APIs between systems
29├── frameworks # client process implementation
30│ ├── js # js napi implementation
31│ ├── native # native c++ implementation
32├── services # Service implementation
33│ ├── include # External header files of services
34│ ├── services # Service framework
35│ │ ├── player # Player C/S framework
36│ │ ├── recorder # Recorder C/S framework
37│ │ ├── avcodec # Codec C/S framework
38│ │ ├── avcodeclist # Codec capability C/S framework
39│ │ ├── avmetadatahelper # Metadata C/S framework
40│ │ ├── media_data_source # Datasource C/S framework
41│ │ ├── sa_media # Media master process C/S framework
42│ │ ├── factory # Engine factory
43│ │ ├── engine_intf # Engine factory API
44│ ├── engine # Engine implementation
45│ │ ├── gstreamer # Gstreamer engine
46│ │ │ ├── player # Player engine
47│ │ │ ├── recorder # Recorder engine
48│ │ │ ├── avcodec # Codec engine
49│ │ │ ├── avcodeclist # Codec capability engine
50│ │ │ ├── avmetadatahelper # Metadata engine
51│ │ │ ├── plugins # Engine self-developed plugins
52│ │ │ ├── common # Engine General Resources
53│ │ │ ├── factory # Engine factory implementation
54│ │ │ ├── loader # Engine resources loading
55│ ├── utils # Basic resources of the subsystem
56├── test # test code
57├── BUILD.gn # compile entry
58└── bundle.json # component description file
59```
60
61## Repositories Involved<a name="section1533973044317"></a>
62
63[multimedia\_player\_framework](https://gitee.com/openharmony/multimedia_player_framework)
64
README_zh.md
1# 媒体组件<a name="ZH-CN_TOPIC_0000001147574647"></a>
2
3- [简介](#section1158716411637)
4- [目录](#section161941989596)
5- [相关仓](#section1533973044317)
6
7## 简介<a name="section1158716411637"></a>
8
9媒体组件为开发者提供一套简单易于理解的接口,能够使得开发者方便接入系统并使用系统的媒体资源。
10
11媒体组件包含了音视频、媒体存储等相关媒体业务,提供以下常用功能:
12
13- 音频播放和录制。
14- 视频播放和录制。
15
16**图 1** 媒体组件架构图<a name="fig99659301300"></a>
17
18
19![](figures/zh-cn_image_0000001105973932.png)
20
21## 目录<a name="section161941989596"></a>
22
23仓目录结构如下:
24
25```
26/foundation/multimedia/player_framework # 媒体组件业务代码
27├── interfaces # 外部接口层
28│ ├── kits # 应用接口
29│ └── innerkits # 系统内部件接口
30├── frameworks # 部件无独立进程的实现
31│ ├── js # js napi实现
32│ ├── native # native c++实现
33├── services # 服务C/S实现
34│ ├── include # 服务对外头文件
35│ ├── services # 服务框架
36│ │ ├── player # 播放C/S框架
37│ │ ├── recorder # 录制C/S框架
38│ │ ├── avcodec # 编解码C/S框架
39│ │ ├── avcodeclist # 编解码器能力查询C/S框架
40│ │ ├── avmetadatahelper # 元信息缩略图C/S框架
41│ │ ├── media_data_source # datasource C/S框架
42│ │ ├── sa_media # 媒体主进程 C/S框架
43│ │ ├── factory # 引擎工厂
44│ │ ├── engine_intf # 引擎API
45│ ├── engine # 引擎实现
46│ │ ├── gstreamer # gstreamer引擎
47│ │ │ ├── player # 播放引擎
48│ │ │ ├── recorder # 录制引擎
49│ │ │ ├── avcodec # 编解码引擎
50│ │ │ ├── avcodeclist # 编解码器能力查询
51│ │ │ ├── avmetadatahelper # 元信息缩略图引擎
52│ │ │ ├── plugins # 引擎自研插件
53│ │ │ ├── common # 引擎通用资源
54│ │ │ ├── factory # 引擎工厂实现
55│ │ │ ├── loader # 引擎资源加载
56│ ├── utils # 子系统基础资源
57├── test # 测试代码
58├── BUILD.gn # 编译入口
59└── bundle.json # 部件描述文件
60```
61
62## 相关仓<a name="section1533973044317"></a>
63
64[multimedia\_player\_framework](https://gitee.com/openharmony/multimedia_player_framework)
65