Introduction

更新时间:
复制 MD 格式

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

FeaturesDescription
Play audio and video media resourcesSupports playback of mainstream online media streams and local media resources.
Publish media resources to the remote endSupports 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 controlSupports playback control functions such as playback, pause, resume pause, adjust playback progress, and stop playback.

Scenario

ScenarioDescription
Watch it togetherApply 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 teachingApplied 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

PlatformsItemRequirement
AndroidOS versionAndroid 4.1 or above is supported.
API version16 and later versions are supported.
CPU architectureSupports physical device architecture armeabi-v7a and arm64-v8a.
OthersVideo capture rotation is not supported, and USB external cameras are not supported.
iOSOS versioniOS 8.0 and later versions are supported.
Hardware
  • iPhone: Supports iPhone 5 and later devices.
  • iPad: Both are supported.
CPU architectureSupports the physical device architecture armv7 + arm64 (the simulator i386 and x86 architectures only support compilation).
OthersBitcode is not supported and screen rotation is not supported.