askbot-dragon 0.7.20 → 0.7.21
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
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
:raw-controls="true"
|
|
16
16
|
x5-video-player-type="h5-page"
|
|
17
17
|
style="object-fit: contain;width: calc(100vw - 139px);height: 160px;background-color: black;border-radius: 25px;max-width: 230px;padding-left: 10px"
|
|
18
|
+
:poster="poster"
|
|
18
19
|
class="video-player vjs-custom-skin"
|
|
19
20
|
:id="msg.keyId+'key'">
|
|
20
21
|
<source :src="videoSrc"/>
|
|
@@ -30,14 +31,7 @@
|
|
|
30
31
|
data() {
|
|
31
32
|
return {
|
|
32
33
|
videoSrc:'',
|
|
33
|
-
|
|
34
|
-
region: "oss-cn-zhangjiakou",
|
|
35
|
-
//云账号AccessKey有所有API访问权限,建议遵循阿里云安全最佳实践,创建并使用STS方式来进行API访问
|
|
36
|
-
accessKeyId: "LTAI4G3QtdEdwkEbihBngAsK",
|
|
37
|
-
accessKeySecret: "OwgdVfc5PeCkIgqIdug660xmiSPchn",
|
|
38
|
-
// stsToken: '<Your securityToken(STS)>',
|
|
39
|
-
bucket: "guoranopen-zjk",
|
|
40
|
-
}
|
|
34
|
+
poster:''
|
|
41
35
|
}
|
|
42
36
|
},
|
|
43
37
|
watch: {
|
|
@@ -86,6 +80,9 @@
|
|
|
86
80
|
let promise = uploadImageByBase64(ossConfig,blob);
|
|
87
81
|
promise.then((res)=>{
|
|
88
82
|
console.debug("upload base64 reslut",res);
|
|
83
|
+
if (res&&res.url){
|
|
84
|
+
that.poster = res.url
|
|
85
|
+
}
|
|
89
86
|
});
|
|
90
87
|
/*output.appendChild(img);*/
|
|
91
88
|
};
|