All Products
Search
Document Center

Apsara Video SDK:Animated stickers

Last Updated:Mar 22, 2024

You can create custom animated stickers by using the short video SDK. Make sure that you create a custom animated sticker by following the standards. Otherwise, the created custom animated sticker cannot be used.

Standards for creating animated stickers

For more information, see Standards for creating animated stickers and bubbles by using the short video SDK.

Methods

  • Animated stickers

    • Android

      Call the AliyunPasterManager.addPasterWithStartTime(Source path, long startTime, long duration); method to add an animated sticker. For more information about the parameters, see AliyunPasterManager.

    • iOS

      Call the addGif:startTime:duration: method of the AliyunStickerManager class to add an animated sticker. For more information about the parameters, see AliyunStickerManager.

  • Bubbles

    • Android

      Call the AliyunPasterControllerCompoundCaption.setBubbleEffectTemplate(Source aStyleTemplate); method to add a bubble. For more information about the parameters, see AliyunPasterControllerCompoundCaption.

    • iOS

      Call the addCaptionText:bubblePath:startTime:duration: method of the AliyunStickerManager class to add a bubble. For more information about the parameters, see AliyunStickerManager.