diff --git a/en/readme/figures/multimedia-architecture.png b/en/readme/figures/multimedia-architecture.png new file mode 100644 index 0000000000000000000000000000000000000000..7c5341b63aa9ff48f3edfe48ed590a4cec8a3935 Binary files /dev/null and b/en/readme/figures/multimedia-architecture.png differ diff --git a/en/readme/multimedia.md b/en/readme/multimedia.md index c26c892898ccec4d4f1a442dc2a9e5abd623f27c..5c42b3425d8e33adb51ff38bb1e0ead7ec0ca8ea 100755 --- a/en/readme/multimedia.md +++ b/en/readme/multimedia.md @@ -8,23 +8,24 @@ This subsystem offers various media services covering audio, videos, and cameras - Audio playback and recording - Video playback and recording - - Photographing and recording \(with cameras\) -## Architecture - -**Figure 1** Common architecture of the multimedia subsystem - - -![](figures/en-us_image_0000001163462711.png) +## System Architecture -**Figure 2** Architecture of the multimedia subsystem suitable for the small system +**Figure 1** Architecture of the multimedia subsystem +![](figures/multimedia-architecture.png) -![](figures/multimedia-subsystem-architecture.png) - -**Figure 3** Multimedia service flow for the small system -![](figures/multimedia-service-flow-for-the-small-system.png "multimedia-service-flow-for-the-small-system") +- **Media**: provides playback and recording APIs for applications, and invokes the Gstreamer, Histreamer, or other engines through cross-process calling or direct calling. + - For the mini system, the media component invokes Histreamer to support audio playback. + - For the small system, the media component invokes recorder_lite to support audio/video recording and invokes player_lite by default to support audio/video playback. If the system variable **debug.media_service.histreamer** is set to **1**, the component invokes Histreamer to support audio/video playback. For details, see [syspara Module](https://device.harmonyos.com/en/docs/documentation/guide/subsys-boot-syspara-0000001063362360) or [syspara_lite](https://gitee.com/openharmony/startup_syspara_lite). + - For the standard system, the media component invokes Gstreamer to support audio/video playback and recording. +- **Audio**: supports audio input and output, policy management, and audio focus management. +- **Camera**: provides camera operation APIs for preview, photographing, and video recording. +- **Image**: supports encoding and decoding of common image formats. +- **MediaLibrary**: supports local and distributed media data access management. +- **Histreamer**: a lightweight media engine that supports file/network streaming media input, audio/video decoding and playback, audio/video encoding and recording, and plugin extension. +- **Gstreamer**: an open-source GStreamer engine that supports streaming media, audio and video playback, and recording. ## Directory Structure @@ -59,6 +60,13 @@ The structure of the repository directory is as follows: │ ├── figures # Architecture and process figures of the playback and recording module for the standard system │ ├── frameworks # Playback and recording framework implementation for the standard system │ └── interfaces # Playback and recording module APIs for the standard system +├── histreamer # Histreamer engine +│ └── engine # Media engine +│ ├── player # Encapsulated player +│ ├── foundation # Basic tools +│ ├── pipeline # Pipeline framework +│ └── plugin # Plugin framework +│ └── plugins # Platform software plugins └── utils # Subsystem utility module └── lite # Utility module for the small system ├── figures # Architecture and process figures of the utility module for the small system @@ -94,9 +102,10 @@ Load the kernel and related drivers before installing the repository. For detail [multimedia\_utils\_lite](https://gitee.com/openharmony/multimedia_utils_lite) +[multimedia\_histreamer](https://gitee.com/openharmony/multimedia_histreamer) + [multimedia\_camera\_standard](https://gitee.com/openharmony/multimedia_camera_standard) [multimedia\_audio\_standard](https://gitee.com/openharmony/multimedia_audio_standard) [multimedia\_media\_standard](https://gitee.com/openharmony/multimedia_media_standard) -