This commit is contained in:
2024-07-17 19:12:32 +08:00
parent 1dc5c16c59
commit ad9ee19e48
4 changed files with 82 additions and 40 deletions

View File

@@ -64,7 +64,7 @@
:class="`prism-fullscreen-btn ${isFullScreen ? 'fullscreen' : ''}`"
@tap="renderScript.changeVideoScreen"
></div>
</div>
</div>
</view>
<!-- <view style="width: 100%; height: 200px; position: relative" v-else>
<video
@@ -255,7 +255,7 @@ export default {
},
async getVideo() {
var data = {};
var that=this;
var that = this;
$http
.request({
url: `sociology/course/ttt`,
@@ -276,7 +276,7 @@ export default {
STS加密播放
*/
that.$refs.playerView.setVidSts({
that.$refs.playerView.setVidSts({
vid: this.videoData.video,
accessKeyId: credentials.accessKeyId,
securityToken: credentials.securityToken,
@@ -888,7 +888,8 @@ export default {
playerOptions = {
...playerOptions,
"playauth": this.videoData.playAuth, // 必选参数参数值可通过调用GetVideoPlayAuth接口获取。
"encryptType": 1, // 必选参数当播放私有加密流时需要设置本参数值为1。其它情况无需设置。
format:'mp4',
// "encryptType": 1, // 必选参数当播放私有加密流时需要设置本参数值为1。其它情况无需设置。
"playConfig": {
"EncryptType": 'AliyunVoDEncryption'
},

View File

@@ -12,7 +12,7 @@
}`"
>
<view :style="`background:#000`">
<common-video-ios
<!-- <common-video-ios
v-if="$platform == 'ios'"
@changeScreen="changeScreen"
@changeScreenLoading="changeScreenLoading"
@@ -20,10 +20,10 @@
:currentVideo="currentVideo"
:currentVideoList="videoArray"
>
</common-video-ios>
</common-video-ios> -->
<common-video
v-else
@changeScreen="changeScreen"
@changeScreen="changeScreen"
@changeScreenLoading="changeScreenLoading"
ref="commonVideo"
:currentVideo="currentVideo"