@dolphinweex/weex-harmony 0.1.109 → 0.1.110
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/package.json
CHANGED
|
@@ -36,6 +36,7 @@ export default {
|
|
|
36
36
|
embedPosition: 'static',
|
|
37
37
|
defaultWidth: '100%',
|
|
38
38
|
defaultHeight: '100%',
|
|
39
|
+
embedId: '',
|
|
39
40
|
};
|
|
40
41
|
},
|
|
41
42
|
name: 'MideaIjkplayerView',
|
|
@@ -127,19 +128,30 @@ export default {
|
|
|
127
128
|
type: String,
|
|
128
129
|
default: '',
|
|
129
130
|
},
|
|
131
|
+
controls: {
|
|
132
|
+
type: String,
|
|
133
|
+
default: true,
|
|
134
|
+
},
|
|
130
135
|
isShowTopRightViewOnPortrait: {
|
|
131
136
|
type: Boolean,
|
|
132
137
|
default: false,
|
|
133
138
|
},
|
|
139
|
+
isShowFullScreenBtn:{
|
|
140
|
+
type: Boolean,
|
|
141
|
+
default: true,
|
|
142
|
+
},
|
|
134
143
|
},
|
|
135
144
|
computed: {
|
|
145
|
+
ref() {
|
|
146
|
+
return this.embedId;
|
|
147
|
+
},
|
|
136
148
|
hosSameLayerArgs() {
|
|
137
149
|
return {
|
|
138
|
-
...this.hosUniqueProps,
|
|
150
|
+
...this.hosUniqueProps,
|
|
139
151
|
width: this.width,
|
|
140
152
|
height: this.height,
|
|
153
|
+
controls: this.controls,
|
|
141
154
|
onFullscreenChange: this.onFullscreenChange,
|
|
142
|
-
// 视频播放器相关属性
|
|
143
155
|
config: this.config,
|
|
144
156
|
muted: this.muted,
|
|
145
157
|
playStatus: this.playStatus,
|
|
@@ -170,6 +182,11 @@ export default {
|
|
|
170
182
|
onStartDownload: this.onStartDownload,
|
|
171
183
|
onPreviewImageClick: this.onPreviewImageClick,
|
|
172
184
|
onCaptureCompletion: this.onCaptureCompletion,
|
|
185
|
+
onPlayerClick: this.onPlayerClick,
|
|
186
|
+
onSwitchFullScreen: this.onSwitchFullScreen,
|
|
187
|
+
onClickBack: this.onClickBack,
|
|
188
|
+
onScaleChanged: this.onScaleChanged,
|
|
189
|
+
isShowFullScreenBtn: this.isShowFullScreenBtn
|
|
173
190
|
};
|
|
174
191
|
},
|
|
175
192
|
},
|
|
@@ -183,6 +200,7 @@ export default {
|
|
|
183
200
|
this.defaultHeight = this.$refs.sameLayer.$el.clientHeight;
|
|
184
201
|
this.defaultPosition =
|
|
185
202
|
this.$refs.sameLayer.$el.style.position || 'static';
|
|
203
|
+
this.embedId = this.$refs.sameLayer.embedId;
|
|
186
204
|
});
|
|
187
205
|
},
|
|
188
206
|
methods: {
|
|
@@ -133,7 +133,7 @@ export default {
|
|
|
133
133
|
default: '',
|
|
134
134
|
},
|
|
135
135
|
controls: {
|
|
136
|
-
type: String,
|
|
136
|
+
type: [Boolean, String],
|
|
137
137
|
default: true,
|
|
138
138
|
},
|
|
139
139
|
isShowTopRightViewOnPortrait: {
|
|
@@ -153,6 +153,10 @@ export default {
|
|
|
153
153
|
type: Boolean,
|
|
154
154
|
default: true,
|
|
155
155
|
},
|
|
156
|
+
harmonyRecordPipSize:{
|
|
157
|
+
type: Object,
|
|
158
|
+
default: ()=>{},
|
|
159
|
+
},
|
|
156
160
|
},
|
|
157
161
|
computed: {
|
|
158
162
|
ref() {
|
|
@@ -202,6 +206,7 @@ export default {
|
|
|
202
206
|
onSwitchFullScreen: this.onSwitchFullScreen,
|
|
203
207
|
onClickBack: this.onClickBack,
|
|
204
208
|
onScaleChanged: this.onScaleChanged,
|
|
209
|
+
harmonyRecordPipSize:this.harmonyRecordPipSize,
|
|
205
210
|
};
|
|
206
211
|
},
|
|
207
212
|
},
|