-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlive.php
46 lines (40 loc) · 1.11 KB
/
live.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
<?php
session_start();
if (!isset($_SESSION['username']))
{
header('location:index.php');
}
else
{
$_SESSION['kanaalID'];
$_SESSION['username'];
}
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php require('components/head.php'); ?>
<title>Livestream</title>
</head>
<body class="bg-back">
<div class="d-flex">
<?php require("components/sidebar.php"); ?>
<div id="page-content-wrapper">
<?php require("components/navigation.php");?>
<div class="col">
<!-- Add a placeholder for the Twitch embed -->
<div id="twitch-embed"></div>
<!-- Load the Twitch embed script -->
<script src="https://embed.twitch.tv/embed/v1.js"></script>
<!-- Create a Twitch.Embed object that will render within the "twitch-embed" root element. -->
<script type="text/javascript">
new Twitch.Embed("twitch-embed", {
width: 1400,
height: 800,
channel: "monstercat",
});
</script>
</body>
</html>