fix(legacy): add play button to stream player (#2190)

This commit is contained in:
Jonas L 2022-09-27 08:14:53 +02:00 committed by GitHub
parent 2efe714b03
commit 3ef42413d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 14 deletions

View File

@ -93,10 +93,6 @@ class DashboardController extends Zend_Controller_Action
public function streamPlayerAction()
{
$CC_CONFIG = Config::getConfig();
$baseUrl = Config::getBasePath();
$this->view->headLink()->appendStylesheet(Assets::url('js/jplayer/skin/jplayer.blue.monday.css'));
$this->_helper->layout->setLayout('livestream');

View File

@ -1,16 +1,24 @@
<?php echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<title><?php echo _("Live stream") ?></title>
<?php echo $this->headLink() ?>
<?php echo $this->headScript() ?>
<?php echo $this->headLink() ?>
<?php echo $this->headScript() ?>
</head>
<body>
<div id="content"><?php echo $this->layout()->content ?></div>
<div id="content"><?php echo $this->layout()->content ?></div>
</body>
</html>

View File

@ -14,7 +14,7 @@
$("#jquery_jplayer_1").jPlayer("destroy");
$("#jquery_jplayer_1").jPlayer({
ready: function() {
$(this).jPlayer("setMedia", obj).jPlayer("play");
$(this).jPlayer("setMedia", obj);
},
ended: function(event) {
$(this).jPlayer("play");
@ -87,6 +87,8 @@
<div class="jp-type-single">
<div id="jp_interface_1" class="jp-gui jp-interface">
<ul class="jp-controls">
<li><a title="play" tabindex="1" class="jp-play" href="javascript:;" style='top: 5px; left: 5px;'><?php echo _("play") ?></a></li>
<li><a title="pause" tabindex="1" class="jp-pause" href="javascript:;" style='top: 5px; left: 5px;'><?php echo _("pause") ?></a></li>
<li><a title="mute" tabindex="1" class="jp-mute" href="javascript:;"><?php echo _("mute") ?></a></li>
<li><a title="unmute" tabindex="1" class="jp-unmute" href="javascript:;"><?php echo _("unmute") ?></a></li>
</ul>