We recently launched a free plugin called Media Player Kit, which is our first official release. We also made QuickStart to demonstrate how to use it, and you can find them on Github.

This component is not only suitable for live audio and video scenes, but also supports playing local video files.

It supports the following functions and features:

  • Support local video playback (format: AVI/MP4 / MKV/FLV/RTMP/RTSP)

  • Support video access and send to peer users via SD-RTN (format: AVI/MP4 / MKV/FLV/RTMP/RTSP)

  • Play, pause, resume playing, stop playing, obtain the total time, fast forward to a certain playing position, obtain the current playing progress and other functions

  • Supports playback of single/dual channel video with sampling rate of 32 kHz, 44100 Hz or 48 kHz

  • Supports Windows x86 / X64 and macOS

What scenario does it apply to?

It applies to video sharing in online education, social broadcast, and video conference scenarios. For example, in the educational scenario, the teacher wants to play a local video file to the students during the lecture and explain the content in the video simultaneously. If you use another player to play a separate audio file while speaking in real time, it is easy to echo, or the voice is suppressed, or the voice is out of sync with the media content. These problems can be solved by using the plug-in we provide.

For example, during a video meeting, if you want to play a presentation video to your colleagues, you can also use this component. Alternatively, you can use the media player component as your local player.

How do you use it?

You will need to download the Audio Agora video SDK and Media Player Kit at the same time and integrate it into the app. If you want to add “local play of video”, the interface call logic is as follows: