mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-07-04 16:01:35 +08:00
修复file_transcode
This commit is contained in:
parent
879333adab
commit
50a5414b13
@ -3,6 +3,7 @@
|
||||
namespace App\Services;
|
||||
|
||||
use App\Repos\Chapter as ChapterRepo;
|
||||
use App\Services\Vod as VodService;
|
||||
|
||||
class ChapterVod extends Service
|
||||
{
|
||||
@ -17,12 +18,12 @@ class ChapterVod extends Service
|
||||
return [];
|
||||
}
|
||||
|
||||
$vod = new Vod();
|
||||
$vodService = new VodService();
|
||||
|
||||
$result = [];
|
||||
|
||||
foreach ($vod->file_transcode as $key => $file) {
|
||||
$file['url'] = $vod->getPlayUrl($file['url']);
|
||||
$file['url'] = $vodService->getPlayUrl($file['url']);
|
||||
$type = $this->getDefinitionType($file['height']);
|
||||
$result[$type] = $file;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user