@cc-component/cc-video 1.1.4 → 1.1.6

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.
@@ -99,6 +99,8 @@ export class VideoPlayWeb extends BaseVideo {
99
99
  const is_skip = name === this.videoPlayer.remoteURL;
100
100
  this.videoPlayer.remoteURL = name;
101
101
  this.videoPlayer.resourceType = VideoPlayer.ResourceType.REMOTE;
102
+ this.videoPlayer.loop = param.isLoop
103
+
102
104
  //console.warn('暂停', is_skip)
103
105
  if (is_skip) {
104
106
  this.isReady = true;
@@ -128,7 +130,7 @@ export class VideoPlayWeb extends BaseVideo {
128
130
  stop() {
129
131
  this.videoPlayer.stop();
130
132
  this.isPlaying = false
131
- console.log("停止")
133
+ //console.log("停止")
132
134
 
133
135
  }
134
136
  resume() {
@@ -181,6 +183,7 @@ export class VideoPlayWeb extends BaseVideo {
181
183
  this.activeVideo(false)
182
184
  this.stop()
183
185
  this.isReady = false;
186
+ console.log("销毁")
184
187
  }
185
188
  }
186
189
  activeVideo(isActive: boolean) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-video",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",