All Products
Search
Document Center

RTS integration

Last Updated: Sep 06, 2019

ApsaraVideo Player SDK provides the real-time streaming (RTS) feature. The RTS integration procedure is the same as that described in the Integration topic. This topic provides more information about RTS.

Maximum buffer delay for RTS playback

ApsaraVideo Player SDK provides the MaxDelayTime parameter of the AVPConfig method to set the maximum buffer delay for RTS playback.
In RTS playback, you can use this parameter to set the maximum buffer delay for player orchestration. We recommend that you set this parameter to a small value, such as 100 milliseconds.

  1. // Obtain player parameters.
  2. PlayerConfig config = mAliyunVodPlayer.getConfig();
  3. // Set the maximum buffer delay. This parameter is valid only for RTS playback. If the delay time exceeds the maximum limit, ApsaraVideo Player SDK synchronizes frames to reduce the delay under the set limit.
  4. config.mMaxDelayTime = 100;
  5. ... // Set other parameters.
  6. // Specify the settings for the player.
  7. mAliyunVodPlayer.setConfig(config);