diff --git a/app/Http/Admin/Controllers/TestController.php b/app/Http/Admin/Controllers/TestController.php index ce0118fa..baa12cc4 100644 --- a/app/Http/Admin/Controllers/TestController.php +++ b/app/Http/Admin/Controllers/TestController.php @@ -68,9 +68,11 @@ class TestController extends Controller */ public function livePushAction() { + $streamName = $this->request->getQuery('stream'); + $liveService = new LiveService(); - $pushUrl = $liveService->getPushUrl('test'); + $pushUrl = $liveService->getPushUrl($streamName); $codeUrl = $this->url->get( ['for' => 'web.qrcode_img'], @@ -95,14 +97,11 @@ class TestController extends Controller { $liveService = new LiveService(); - $m3u8PullUrls = $liveService->getPullUrls('test', 'm3u8'); - $flvPullUrls = $liveService->getPullUrls('test', 'flv'); + $pullUrls = $liveService->getPullUrls('test'); $this->view->setRenderLevel(View::LEVEL_ACTION_VIEW); - $this->view->pick('public/live_player'); - $this->view->setVar('m3u8_pull_urls', $m3u8PullUrls); - $this->view->setVar('flv_pull_urls', $flvPullUrls); + $this->view->setVar('pull_urls', $pullUrls); } /** diff --git a/app/Http/Admin/Views/chapter/edit_lesson_live.volt b/app/Http/Admin/Views/chapter/edit_lesson_live.volt index 4454817b..0f015afb 100644 --- a/app/Http/Admin/Views/chapter/edit_lesson_live.volt +++ b/app/Http/Admin/Views/chapter/edit_lesson_live.volt @@ -32,10 +32,35 @@ +
+ \ No newline at end of file diff --git a/app/Http/Admin/Views/public/live_player.volt b/app/Http/Admin/Views/public/live_player.volt index aad6007c..8a38eb50 100644 --- a/app/Http/Admin/Views/public/live_player.volt +++ b/app/Http/Admin/Views/public/live_player.volt @@ -19,20 +19,52 @@ diff --git a/app/Http/Admin/Views/setting/live_pull.volt b/app/Http/Admin/Views/setting/live_pull.volt index 88ddcaed..983534a4 100644 --- a/app/Http/Admin/Views/setting/live_pull.volt +++ b/app/Http/Admin/Views/setting/live_pull.volt @@ -26,22 +26,23 @@- | - | - | + | + | + | + | |
- | - | - | + | + | + | + | |
- | - | - | + | + | + | + |