CDR - Recording Playback: Fix seeking for chromium based browsers.

This commit is contained in:
fusionate
2024-10-18 18:58:44 -06:00
parent 7122ecc154
commit e0fe291da0
5 changed files with 72 additions and 76 deletions
+8 -4
View File
@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2017
Portions created by the Initial Developer are Copyright (C) 2017-2024
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -26,9 +26,9 @@
//includes files
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";
//check permisions
require_once "resources/check_auth.php";
if (permission_exists('xml_cdr_view')) {
//access granted
}
@@ -38,7 +38,11 @@
}
//download
$obj = new xml_cdr;
$obj->download($_GET['id']);
if (is_uuid($_GET['id'])) {
$obj = new xml_cdr;
$obj->recording_uuid = $_GET['id'];
$obj->binary = isset($_GET['t']) && $_GET['t'] == 'bin' ? true : false;
$obj->download();
}
?>