-
Notifications
You must be signed in to change notification settings - Fork 33
/
live_broadcast.php
71 lines (61 loc) · 3.54 KB
/
live_broadcast.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
if (!$_GET["username"]||$_GET["username"]=="Studio") $username="Channel".rand(100,999);
else $username=$_GET["username"];
$onlyoptions = 0;
if ($_GET["onlyoptions"]) $onlyoptions = 1;
include("incsan.php");
sanV($username);
if (!$username) exit;
?>
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 15px;
color: #EEE;
}
a
{
color: #CC5577;
font-weight: normal;
text-decoration: none;
}
-->
</style>
<title>VideoWhisper Live Broadcast</title>
</head>
<body bgcolor="#333333">
<div class="div-section">VideoWhisper Live Streaming PHP - Channel Stream: <?php echo $username ?></div>
<?php
if (!$onlyoptions)
{
$swfurl="live_broadcast.swf?ssl=1&room=" . $username;
$bgcolor="#333333";
$baseurl="";
$wmode="transparent";
?>
<object width="100%" height="500" id="videowhisper_livebroadcast" type="application/x-shockwave-flash" data="<?=$swfurl?>">
<param name="movie" value="<?=$swfurl?>"></param><param bgcolor="<?=$bgcolor?>" /><param name="scale" value="noscale" /> </param><param name="salign" value="lt"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<param name="base" value="<?=$baseurl?>"/><param name="wmode" value="<?=$wmode?>" /></object>
<BR>The flash workspace above can have any size. Various settings can be configured from vc_login.php .
<?php
}
?>
<p>This html content is editable.
Test channel features (some may not be available depending on server configuration and device):
<BR> + <a href="live_broadcast.php?username=<?=urlencode($username)?>&onlyoptions=0">Flash Broadcast with Options</a>
<BR> + <a href="live_broadcast.php?username=<?=urlencode($username)?>&onlyoptions=1">Channel Options Only</a>
<BR> + <a href="webrtc-publish.php?n=<?=urlencode($username)?>">WebRTC Publish</a> (HTML5 publishing with WebRTC technology, can only stream from 1 interface)
<BR> + <a target="_blank" href="webrtc-play.php?n=<?=urlencode($username)?>">WebRTC Playback</a> (HTML5 playback with WebRTC technology, sound may not be available without matching codecs)
<BR> + <a target="_blank" href="channel.php?n=<?=urlencode($username)?>">channel page</a> (where people can also chat live)
<BR> + <a target="_blank" href="video_small.php?n=<?=$username?>">plain video</a> (<a target="_blank" href="video.php?n=<?=$username?>">fullpage video</a>)
<BR> + <a target="_blank" href="htmlchat.php?n=<?=urlencode($username)?>">plain html external text only chat</a> (for old mobile access)
<BR> + <a target="_blank" href="videotext.php?n=<?=urlencode($username)?>">plain video with floating html text</a> (read only)
<BR> + <a target="_blank" href="ls_transcoder.php?n=<?=urlencode($username)?>">Transcoder for HTML5 live video playback</a> (HLS for Safari & iOS/Android, MPEG-DASH for Chrome & Android, if available).</p>
<P>Ordering a <a target="_blan k" href="https://videowhisper.com/?p=Invest#level1">license</a> removes banner ads and usage limitations (for licensed domain).</P>
<p>For more details about this edition see VideoWhisper <a target="_blank" href="https://videowhisper.com/?p=PHP+Live+Streaming">PHP Live Streaming</a> page. This plain php edition is for easy integration with other sites and frameworks. For building a turnkey site with member/channel management, backend, see <a href="https://broadcastlivevideo.com">Broadcast Live Video</a> edition.</p></td>
</body>
</html>