1111
This commit is contained in:
@@ -885,16 +885,34 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
if (this.videoData.type == 1) {
|
if (this.videoData.type == 1) {
|
||||||
playerOptions = {
|
if(this.$platform=='ios'){
|
||||||
...playerOptions,
|
//标准加密
|
||||||
"playauth": this.videoData.playAuth, // 必选参数,参数值可通过调用GetVideoPlayAuth接口获取。
|
playerOptions = {
|
||||||
format:'mp4',
|
...playerOptions,
|
||||||
// "encryptType": 1, // 必选参数,当播放私有加密流时需要设置本参数值为1。其它情况无需设置。
|
"playauth": this.videoData.playAuth, // 必选参数,参数值可通过调用GetVideoPlayAuth接口获取。
|
||||||
"playConfig": {
|
format:'mp4',
|
||||||
"EncryptType": 'AliyunVoDEncryption'
|
// "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 {
|
} else {
|
||||||
playerOptions = {
|
playerOptions = {
|
||||||
|
|||||||
Reference in New Issue
Block a user