-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecordings.php
57 lines (48 loc) · 1.64 KB
/
recordings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
require_once(dirname(__FILE__) . "/config.php");
// AJAX-JQUERY Controller Actions
// if ($_POST["action"] == "delete") {
// Controller Action - Upcoming Recordings
// } else if ($_GET["action"] == "upcoming") {
// Controller Action - Schedule Recordings
// } else if ($_GET["action"] == "schedule") {
// Controller Action - Index / list Recordings
// } else {
// Display recordings and/or filtered-searched recordings
// }
?>
<?php include "header.php" ?>
<?php
$sql = "select * from recorded";
$result = $DB->fetch_all($sql);
?>
<table class="table table-condensed table-hover">
<thead>
<th>Play</th>
<th>Title</th>
<th>SubTitle</th>
</thead>
<?php
foreach ($result as $row) {
echo "<tr><td>STREAM</td>";
echo "<td><a href='program.php?id=" . $row["program_id"] . "&station_id=" . $row["station_id"];
echo "&time=" . $row["time"] . "'>" . $row["title"] . "</td><td>";
echo $row["subtitle"] . "</td><td></tr>";
}
?>
</table>
<br />
<!-- Manually add hardcoded video player for testing purposes, note webkit video is .MOV -->
<!--
<video width="1024" height="750" controls="controls">
<source src="./recordings/test.ts" type="video/mpeg2">
<source src="./recordings/test.mov" type="video/mp4">
<source src="./recordings/test.ogg" type="video/ogg">
<source src="./recordings/test.webm" type="video/webm">
<object data="./recordings/test.mp4" width="320" height="240">
<embed src="./recordings/test.ts" width="320" height="240">
</object>
Your browser does not support the HTML5 video tag please try the latest Safari, Firefox or Chrome browsers.
</video>
-->
<?php include "footer.php" ?>