uploadVideoFirstLogic.js 447 Bytes
/**
 * Created by xiniu on 2018/11/8.
 */
import {action, observable} from 'mobx';

export default class uploadVideoFirstLogic {
    @observable
    loading = false;
    @observable
    currentTime = 0;
    @observable
    isPlaying = false;

    // 滑动slider
    @action
    moveSlider(currentTime) {
        this.currentTime = currentTime;
    }

    // 暂停/播放
    @action
    switchPlay(flag) {
        this.isPlaying = flag;
    }
}