Commit ccbeca0e authored by limingzhe's avatar limingzhe

fix: 倍速接口回调

parent 96e6d316
...@@ -345,8 +345,15 @@ export function initAir(_this) { ...@@ -345,8 +345,15 @@ export function initAir(_this) {
}; };
window.courseware.callOcMethod("needUpdate", { label: label, url: url }); window.courseware.callOcMethod("needUpdate", { label: label, url: url });
}, },
modifyVideoSpeed(params = {}) { modifyVideoSpeed(params = {}, callback) {
_this.log(`===成功调用modifyVideoSpeed===`); _this.log(`===成功调用modifyVideoSpeed===`);
window.air.modifyVideoSpeedCallback = (res) => {
_this.log(`===modifyVideoSpeedCallback=== res == ${res}`);
callback && callback(res);
window.air.modifyVideoSpeedCallback = null;
};
window.courseware.callOcMethod("modifyVideoSpeed", params); window.courseware.callOcMethod("modifyVideoSpeed", params);
}, },
startScanCode(callback) { startScanCode(callback) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment