@galacean/effects-plugin-multimedia 2.9.1-beta.0 → 2.10.0-alpha.0

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/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects player multimedia plugin
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 云垣
6
- * Version: v2.9.1-beta.0
6
+ * Version: v2.10.0-alpha.0
7
7
  */
8
8
 
9
9
  'use strict';
@@ -831,7 +831,7 @@ exports.VideoComponent = /*#__PURE__*/ function(MaskableGraphic) {
831
831
  * 根据合成结束行为决定视频的后续处理
832
832
  */ _proto.handleCompositionEnd = function handleCompositionEnd() {
833
833
  var _this_item_composition;
834
- var rootEndBehavior = (_this_item_composition = this.item.composition) == null ? void 0 : _this_item_composition.rootItem.endBehavior;
834
+ var rootEndBehavior = (_this_item_composition = this.item.composition) == null ? void 0 : _this_item_composition.sceneRoot.endBehavior;
835
835
  if (rootEndBehavior === EFFECTS.spec.EndBehavior.restart) {
836
836
  // 合成 restart:所有视频都需要 seek 回 0,和合成时间对齐
837
837
  if (!this.videoSeeking) {
@@ -866,7 +866,7 @@ exports.VideoComponent = /*#__PURE__*/ function(MaskableGraphic) {
866
866
  if (!composition) {
867
867
  return false;
868
868
  }
869
- return composition.time + VideoComponent.threshold >= composition.rootItem.duration;
869
+ return composition.time + VideoComponent.threshold >= composition.sceneRoot.duration;
870
870
  };
871
871
  /**
872
872
  * 是否应该冻结视频(暂停在当前帧)
@@ -875,7 +875,7 @@ exports.VideoComponent = /*#__PURE__*/ function(MaskableGraphic) {
875
875
  var isVideoEnded = this.checkVideoEnded();
876
876
  var isCompositionEnded = this.checkCompositionEnded();
877
877
  var videoEndBehavior = this.item.endBehavior;
878
- var rootEndBehavior = (_this_item_composition = this.item.composition) == null ? void 0 : _this_item_composition.rootItem.endBehavior;
878
+ var rootEndBehavior = (_this_item_composition = this.item.composition) == null ? void 0 : _this_item_composition.sceneRoot.endBehavior;
879
879
  // 合成结束且合成行为是 freeze 时冻结视频
880
880
  var isCompositionFrozen = isCompositionEnded && rootEndBehavior === EFFECTS.spec.EndBehavior.freeze;
881
881
  // 合成结束且视频行为是 freeze,除合成 restart 外均冻结视频
@@ -912,7 +912,7 @@ exports.VideoComponent = /*#__PURE__*/ function(MaskableGraphic) {
912
912
  this.videoDestroyed = false;
913
913
  this.manualPause = false;
914
914
  this.lastVideoTime = -1;
915
- var rootEndBehavior = (_this_item_composition = this.item.composition) == null ? void 0 : _this_item_composition.rootItem.endBehavior;
915
+ var rootEndBehavior = (_this_item_composition = this.item.composition) == null ? void 0 : _this_item_composition.sceneRoot.endBehavior;
916
916
  var videoEndBehavior = this.item.endBehavior;
917
917
  // 视频 restart 时,浏览器 loop 处理;合成 restart 时,前面函数已经 seek 回 0
918
918
  if (rootEndBehavior !== EFFECTS.spec.EndBehavior.restart && videoEndBehavior !== EFFECTS.spec.EndBehavior.restart) {
@@ -1609,7 +1609,7 @@ exports.AudioComponent = __decorate([
1609
1609
 
1610
1610
  /**
1611
1611
  * 插件版本号
1612
- */ var version = "2.9.1-beta.0";
1612
+ */ var version = "2.10.0-alpha.0";
1613
1613
  EFFECTS.registerPlugin("video", VideoLoader);
1614
1614
  EFFECTS.registerPlugin("audio", AudioLoader);
1615
1615
  EFFECTS.logger.info("Plugin multimedia version: " + version + ".");