summaryrefslogtreecommitdiff
path: root/contrib/www/esc/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/www/esc/init.php')
-rw-r--r--contrib/www/esc/init.php46
1 files changed, 0 insertions, 46 deletions
diff --git a/contrib/www/esc/init.php b/contrib/www/esc/init.php
deleted file mode 100644
index 199de5f..0000000
--- a/contrib/www/esc/init.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-require_once('browser.php');
-
-$DEFAULT_MODE = 'flash';
-if (($browser['name'] == 'firefox' && $browser['majorver'] >= 4) ||
- ($browser['name'] == 'opera' && $browser['majorver'] == 10 && $browser['minorver'] >= 60) ||
- ($browser['name'] == 'opera' && $browser['majorver'] >= 11) ||
- ($browser['name'] == 'chrome' && $browser['majorver'] >= 6) ||
- ($browser['name'] == 'safari' && $browser['platform'] == 'mac')) {
- $DEFAULT_MODE = 'html5';
-}
-
-$DEFAULT_PROFILE = 'high';
-$PROFILE= isset($_GET['profile']) ? $_GET['profile'] : $DEFAULT_PROFILE;
-switch($PROFILE) {
- case 'low': { $WIDTH = 512; $HEIGHT = 288; break; }
- default: { $PROFILE = 'high'; $WIDTH = 1024; $HEIGHT = 576; break; }
-}
-
-$SRC = isset($_GET['src']) ? $_GET['src'] : 'av';
-
-$MODE = isset($_GET['mode']) ? $_GET['mode'] : $DEFAULT_MODE;
-switch($MODE) {
- case 'flash': { break; }
- default: { $MODE = 'html5'; break; }
-}
-
-$URL_BASE = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
-$URL_BASE_IDX = preg_replace("/embed(.*)?\.php/", "index.php", $URL_BASE);
-
-$URL_FLASH = $URL_BASE . "?mode=flash&src=$SRC&profile=$PROFILE";
-$URL_HTML5 = $URL_BASE . "?mode=html5&src=$SRC&profile=$PROFILE";
-
-$URL_HIGH = $URL_BASE . "?mode=$MODE&src=$SRC&profile=high";
-$URL_MEDIUM = $URL_BASE . "?mode=$MODE&src=$SRC&profile=medium";
-$URL_LOW = $URL_BASE . "?mode=$MODE&src=$SRC&profile=low";
-$URL_MINI = $URL_BASE . "?mode=$MODE&src=$SRC&profile=mini";
-
-
-$STREAM_URL_BASE = 'http://live.esc.mur.at';
-$STREAM_URL_WEBM = "$STREAM_URL_BASE:8000/$SRC-webm-$PROFILE.webm";
-$STREAM_URL_HLS = "$STREAM_URL_BASE/esc-live/$SRC-hls-$PROFILE.m3u8";
-$STREAM_URL_FLASH = "$STREAM_URL_BASE:8000/$SRC-flash-$PROFILE.flv";
-
-?>