Contact us

tel:15797766463

mail:business@seeshiontech.com

中文
English
中文
登录/注册

{user.username}

ID: {user.id}

<span><a href="/docs/index.html">首页</a> > <a href="/docs/en-us/editor/group_123.html">SDK</a> > <a href="/docs/en-us/editor/group_129.html">iOS SDK</a> > SXTrack</span>

SXTrack

Update time : 2020-08-11 17:21:33

SXTrack, divided into Media Track, Sticker Track and Text Track, should be initialized with SXEditManager.

    //example:
    if (_model.inTextAnimationEffect) {
    //Remove text animation effect. 
            [_textTrack removeTextAnimation:_model.inTextAnimationEffect.getEffectId];
             _model.inTextAnimationEffect = nil;
    }
    if (_model.outTextAnimationEffect) {
            [_textTrack removeTextAnimation:_model.outTextAnimationEffect.getEffectId];
             _model.outTextAnimationEffect = nil;
    }
    if (_model.loopTextAnimationEffect) {
    //给文字动画设置新的资源包
            [_model.loopTextAnimationEffect setResource:animationPath];
    }else {
    //添加文字动画
            _model.loopTextAnimationEffect = [_textTrack addTextAnimation:animationPath];
    }
    _model.loopTextAnimationEffect.durationOfOneCycle = _timeSliderView.value;
    [_model.loopTextAnimationEffect setEffectFollowType: SXEffectTimeFollowTypeFollowWholeProcess];