The Media Player component (AliRtcPlayerExtension) is a playback component developed based on ApsaraVideo Player. It supports pushing media files played locally or online media streams to remote users in the channel.
Features
| Features | Description |
| Play audio and video media resources | Supports playback of mainstream online media streams and local media resources. |
| Publish media resources to the remote end | Supports sharing the audio and video images of the played media to remote users in the same channel. Remote users can subscribe to and play media streams. |
| Playback control | Supports playback control functions such as playback, pause, resume pause, adjust playback progress, and stop playback. |
Scenario
| Scenario | Description |
| Watch it together | Apply to scenes such as watching movies and listening to music together. Homeowners can use the Media Player component to play a movie or song MV and share it with other users of the channel to optimize user interactivity and synchronization experiences. |
| Online teaching | Applied to online teaching scenarios. Teachers can play teaching files through the media player component and share them with students, providing teachers with rich and diverse teaching experiences. |
Component benefits
- Rich format support
Supports playback of media files in the MP4, M3U8, FLV, MKV, and MP3 formats. Supports playback of online media streams with HTTP and RTMP protocols.
- Excellent echo processing
The industry-leading echo removal algorithm can effectively remove echo problems caused by re-collecting audio played by media files on the subscription end.
- Low-latency synchronization experience
The audio and video images of the played media are transmitted to other remote users in the same channel through RTC to solve the problem of multi-terminal audio and video synchronization.
Supported Platforms
| Platforms | Item | Requirement |
| Android | OS version | Android 4.1 or above is supported. |
| API version | 16 and later versions are supported. | |
| CPU architecture | Supports physical device architecture armeabi-v7a and arm64-v8a. | |
| Others | Video capture rotation is not supported, and USB external cameras are not supported. | |
| iOS | OS version | iOS 8.0 and later versions are supported. |
| Hardware |
| |
| CPU architecture | Supports the physical device architecture armv7 + arm64 (the simulator i386 and x86 architectures only support compilation). | |
| Others | Bitcode is not supported and screen rotation is not supported. |
该文章对您有帮助吗?