@mpxjs/api-proxy 2.10.13-beta.1 → 2.10.13-beta.3
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
|
@@ -65,8 +65,8 @@ const styles = StyleSheet.create({
|
|
|
65
65
|
},
|
|
66
66
|
itemTextStyle: {
|
|
67
67
|
fontSize: 18,
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
paddingTop: 2,
|
|
69
|
+
paddingBottom: 2
|
|
70
70
|
},
|
|
71
71
|
buttonStyle: {
|
|
72
72
|
paddingTop: 10,
|
|
@@ -195,8 +195,8 @@ function ActionSheet ({ itemColor, height, success, fail, complete, alertText, i
|
|
|
195
195
|
style={{
|
|
196
196
|
color: '#000000',
|
|
197
197
|
fontSize: 18,
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
paddingTop: 2,
|
|
199
|
+
paddingBottom: 2,
|
|
200
200
|
width: '100%',
|
|
201
201
|
textAlign: 'center'
|
|
202
202
|
}}
|
|
@@ -48,9 +48,9 @@ export const createVideoContext = (id, context) => {
|
|
|
48
48
|
__videoNode.oRequestFullScreen && __videoNode.oRequestFullScreen() // 欧朋
|
|
49
49
|
__videoNode.webkitEnterFullscreen && __videoNode.webkitEnterFullscreen() // 苹果
|
|
50
50
|
if (direction === 0) {
|
|
51
|
-
__videoNode.setAttribute('x5-video-orientation', 'portraint') // portraint 竖屏 landscape 横屏
|
|
51
|
+
__videoNode.__vue__._player.setAttribute('x5-video-orientation', 'portraint') // portraint 竖屏 landscape 横屏
|
|
52
52
|
} else if (direction === 90 || direction === -90) {
|
|
53
|
-
__videoNode.setAttribute('x5-video-orientation', 'landscape') // portraint 竖屏 landscape 横屏
|
|
53
|
+
__videoNode.__vue__._player.setAttribute('x5-video-orientation', 'landscape') // portraint 竖屏 landscape 横屏
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -63,28 +63,29 @@ export const createVideoContext = (id, context) => {
|
|
|
63
63
|
|
|
64
64
|
// 显示状态栏
|
|
65
65
|
__videoContext.showStatusBar = () => {
|
|
66
|
-
__videoNode.setAttribute('controls', 'controls')
|
|
66
|
+
__videoNode.__vue__._player.setAttribute('controls', 'controls')
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
// 隐藏状态栏
|
|
70
70
|
__videoContext.hideStatusBar = () => {
|
|
71
|
-
__videoNode.removeAttribute('controls')
|
|
71
|
+
__videoNode.__vue__._player.removeAttribute('controls')
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
// 暂停
|
|
75
75
|
__videoContext.pause = () => {
|
|
76
|
-
__videoNode.pause()
|
|
76
|
+
// __videoNode.pause()
|
|
77
|
+
__videoNode.__vue__._player.pause()
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
// 播放
|
|
80
81
|
__videoContext.play = () => {
|
|
81
|
-
__videoNode.play()
|
|
82
|
+
__videoNode.__vue__._player.play()
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
// 停止视频
|
|
85
86
|
__videoContext.stop = () => {
|
|
86
87
|
__videoNode.currentTime = 0
|
|
87
|
-
__videoNode.pause()
|
|
88
|
+
__videoNode.__vue__._player.pause()
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
// 设置倍速播放
|
|
@@ -93,12 +94,12 @@ export const createVideoContext = (id, context) => {
|
|
|
93
94
|
warn(`不支持${number}倍速播放`)
|
|
94
95
|
return
|
|
95
96
|
}
|
|
96
|
-
__videoNode.playbackRate = number
|
|
97
|
+
__videoNode.__vue__._player.playbackRate = number
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
// 跳转到指定位置
|
|
100
101
|
__videoContext.seek = (number) => {
|
|
101
|
-
__videoNode.currentTime = number
|
|
102
|
+
__videoNode.__vue__._player.currentTime = number
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
return __videoContext
|