EarthSDK
    正在准备搜索索引...

    函数 createDefaultProps

    • 创建播放器的默认属性

      返回 {
          channels: ReactiveVariable<undefined | PlayerChannelType[]>;
          currentTime: number;
          duration: number;
          loop: boolean;
          playing: boolean;
          speed: number;
      }

      包含默认属性的对象

      • channels: ReactiveVariable<undefined | PlayerChannelType[]>

        播放通道,是一个数组,包含子播放器的 ID、起始时间戳和时间

      • currentTime: number

        当前时间,单位是毫秒,默认是0

      • duration: number

        总时间,单位是毫秒,默认是3000

      • loop: boolean

        是否循环播放,默认是false

      • playing: boolean

        是否播放,默认是false

      • speed: number

        播放速度,默认是1