All Products
Search
Document Center

RTS SDK integration overview

Last Updated: Sep 26, 2021

This topic describes how to integrate Real-Time Streaming (RTS) SDK 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 provide your own 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 provide your own artc Demuxer. If the third-party player is based on FFmpeg, you can develop your software based on rtsdec.c.

Dynamic frameworks

Mac

source

  • rtsdec.c: sample code for stream pulling using FFmpeg.

  • rtsenc.c: sample code for stream ingest using FFmpeg.

lib

The dynamic library file libRtsSDK.dylib on Mac.

include

The header file for integrating RTS SDK.

Windows

source

  • rtsdec.c: sample code for stream pulling using FFmpeg.

  • rtsenc.c: sample code for stream ingest using FFmpeg.

lib

The library files RtsSDK.dll and RtsSDK.lib on Windows.

include

The header file for integrating RTS SDK.

Integration methods

To use RTS, you must integrate RTS SDK with players. Three types of players are supported. They are 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 an API operation of ApsaraVideo Player SDK 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 the FFmpeg-based third-party player into a project.

    3. Call an API operation of the third-party player 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 the third-party player into a project.

    3. Call an API operation of the third-party player 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 develop your own player. Click here to download the demo.

Procedures

  • Integrate RTS SDK with ApsaraVideo Player. For more information, see Integrate RTS SDK with ApsaraVideo Player.

  • Integrate RTS SDK with third-party players that are based on FFmpeg, for example, ijkplayer. For more information, see Integrate RTS SDK with third-party players that are based on FFmpeg.

  • Integrate RTS SDK with third-party players that are not based on FFmpeg. Before integration, make sure that you have in-house developed players. You must include shared libraries and header files in your project and develop Demuxer based on the rtsdec.c or rtsenc.c file in RTS SDK. For information about RTS SDK, see Download SDK.