All Products
Search
Document Center

Integrate RTS SDK for a mobile client with players

Last Updated: Apr 28, 2021

This topic describes how to integrate Real-Time Streaming (RTS) SDK for a mobile client with players.

Output types

Operating system

Output type

Description

Android

maven

This output type supports only ApsaraVideo Player.

Shared libraries and header files

If you use this output type, you must develop artc Demuxer. If FFmpeg is used, you can develop artc Demuxer based on rtsdec.c.

JAR files

This output type supports Android version 1.4.1 and later. If you select shared libraries as the integrated output type, the JAR file must contain dependencies. If you select Maven as the integrated output type, the JAR file is not required.

-

rtsdec.c

The AVInputFormat plug-in for FFmpeg.

iOS

pod

This output type supports ApsaraVideo Player and third-party players. If you use a third-party player, you must develop artc Demuxer. If the third-party player is based on FFmpeg, you can develop your software based on rtsdec.c.

Dynamic frameworks

Integration methods

To use RTS, you must integrate RTS SDK with players. Three types of players are supported. This includes ApsaraVideo Player, third-party players that are based on FFmpeg, and third-party players that are not based on FFmpeg. To integrate RTS SDK with the three types of players, perform the following steps:

  • ApsaraVideo Player

    1. Integrate RTS SDK as a plug-in into ApsaraVideo Player SDK.

    2. Integrate ApsaraVideo Player SDK and RTS SDK in a project.

    3. Call the API of ApsaraVideo Player to use the RTS feature.

  • Third-party players that are based on FFmpeg

    1. Use FFmpeg to integrate RTS SDK as a plug-in into an FFmpeg-based third-party player.

    2. Integrate a player into a project.

    3. Call the player API to use the RTS feature.

  • Third-party players that are not based on FFmpeg

    1. Integrate RTS SDK as a plug-in into a third-party player.

    2. Integrate a player into a project.

    3. Call the player API to use the RTS feature.

Sample code

In the ijkplayer-RTS demo, a player is developed based on the open source ijkplayer to support RTS. You can use this demo to extend self-developed players. Click download to download the demo.

Procedures

  • For information about how to integrate RTS SDK with ApsaraVideo Player, see Integrate RTS SDK with ApsaraVideo Player.

  • For information about how to integrate RTS SDK with third-party players that are based on FFmpeg, for example, ijk, see Integrate RTS SDK with third-party players that are based on FFmpeg.

  • If you want to integrate RTS SDK with third-party players that are not based on FFmpeg, make sure you have players that are fully developed. You must include shared libraries and header files in your project and develop artc Demuxer based on rtsdec.c. For information about RTS SDK for a mobile client, see Download SDK.