This commit is contained in:
2024-07-19 13:07:09 +08:00
parent 017f704905
commit 3c9ae3589a
19 changed files with 332 additions and 118067 deletions

View File

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