This commit is contained in:
2024-07-18 18:23:38 +08:00
parent 7d74f3e1e2
commit 04e05a4100

View File

@@ -885,16 +885,34 @@ export default {
if (this.videoData.type == 1) {
if(this.$platform=='ios'){
//标准加密
playerOptions = {
...playerOptions,
"playauth": this.videoData.playAuth, // 必选参数参数值可通过调用GetVideoPlayAuth接口获取。
format:'mp4',
// "encryptType": 1, // 必选参数当播放私有加密流时需要设置本参数值为1。其它情况无需设置。
"playConfig": {
"EncryptType": 'HLSEncryption',
"MtsHlsUriToken": this.videoData.MtsHlsUriToken,
},
}
}else{
//私有加密
playerOptions = {
...playerOptions,
"playauth": this.videoData.playAuth, // 必选参数参数值可通过调用GetVideoPlayAuth接口获取。
"encryptType": 1, // 必选参数当播放私有加密流时需要设置本参数值为1。其它情况无需设置。
"playConfig": {
"EncryptType": 'AliyunVoDEncryption'
},
}
}
} else {
playerOptions = {