Skip to content

Commit

Permalink
added: 阿里云私密播放配置
Browse files Browse the repository at this point in the history
  • Loading branch information
小滕 committed Apr 2, 2020
1 parent 5d5ae3d commit 084eb09
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/meedu.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@
'player' => [
// 跑马灯
'enabled_bullet_secret' => 0,
// 阿里云私密播放
'enabled_aliyun_private' => 0,
],

// 缓存开关
Expand Down
2 changes: 2 additions & 0 deletions resources/views/frontend/components/player/aliyun.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"useH5Prism": true,
"vid": "{{$video['aliyun_video_id']}}",
"playauth": "{{aliyun_play_auth($video)}}",
@if((int)($gConfig['system']['player']['enabled_aliyun_private'] ?? 0) === 1)
"encryptType": 1,
@endif
components: [
@if((int)$gConfig['system']['player']['enabled_bullet_secret'] === 1)
{
Expand Down
2 changes: 2 additions & 0 deletions resources/views/h5/components/player/aliyun.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"useH5Prism": true,
"vid": "{{$video['aliyun_video_id']}}",
"playauth": "{{aliyun_play_auth($video)}}",
@if((int)($gConfig['system']['player']['enabled_aliyun_private'] ?? 0) === 1)
"encryptType": 1,
@endif
components: [{
name: 'BulletScreenComponent',
type: AliPlayerComponent.BulletScreenComponent,
Expand Down

0 comments on commit 084eb09

Please sign in to comment.