@realsee/vreo 1.0.0-alpha.27 → 1.0.0-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Player/Controller.js +2 -0
- package/package.json +1 -1
package/lib/Player/Controller.js
CHANGED
|
@@ -263,6 +263,8 @@ var Controller = /*#__PURE__*/function (_Subscribe) {
|
|
|
263
263
|
// 没有被解析过且开始时间低于当前时间戳 100ms
|
|
264
264
|
return keyframes.filter(function (keyframe) {
|
|
265
265
|
if (keyframe.parsed) return false;
|
|
266
|
+
// 检测结束时间
|
|
267
|
+
if (keyframe.end < _this2.currentTime) return false;
|
|
266
268
|
if (keyframe.type === _VreoUnit.VreoKeyframeEnum.BgMusic) return true;
|
|
267
269
|
var dur = _this2.currentTime - keyframe.start;
|
|
268
270
|
return dur <= 100 && dur >= 0;
|