if(isset($_GET['videoName'])) { $videoName = $_GET['videoName']; } else { $videoName = "barsraw"; }
if(isset($_GET['accountName'])) { $accountName = $_GET['accountName']; } else { $accountName = "vod"; }
if(isset($_GET['applicationName'])) { $applicationName = $_GET['applicationName']; } else { $applicationName = "_definst_"; }
if(isset($_GET['edgeSource'])) { $edgeSource = $_GET['edgeSource']; } else { $edgeSource = 0; }
if(isset($_GET['live'])) { $live = 1; } else { $live = 0; }
if(isset($_GET['autoPlay'])) { $autoPlay = $_GET['autoPlay']; } else { $autoPlay = "false"; }
if(isset($_GET['vast'])) { $vast = $_GET['vast']; } else { $vast = false; }
if(isset($_GET['cURI'])) { $cURI = $_GET['cURI']; } else { $cURI = "0"; }
if(isset($_GET['tPath'])) { $tPath = $_GET['tPath']; } else { $tPath = "0"; }
if(isset($_GET['cOverlay'])) { $cOverlay = $_GET['cOverlay']; } else { $cOverlay = "0"; }
if(isset($_GET['linkDomain'])) { $linkDomain = $_GET['linkDomain']; } else { $linkDomain = "www.westream.com"; }
if(isset($_GET['posterFrame'])) { $posterFrame = $_GET['posterFrame']; } else { $posterFrame = "preview_0001"; }
if(isset($_GET['YouTube'])) { $YouTube = $_GET['YouTube']; } else { $YouTube = "0"; }
// Live and VOD if-else cycle for generating varibles for video name
if($live == 1) {
$videoLinkVjs = 'rtmp://83.170.84.21/' . $accountName . '/mp4:' . $videoName;
$videoLinkJw = 'rtmp://62.210.152.147/' . $accountName . '/mp4:' . $videoName;
$videoLinkHLS = 'http://83.170.84.21/' . $accountName . '/mp4:' . $videoName . '/playlist.m3u8';
} elseif ($edgeSource != "0") {
$videoLinkVjs = 'rtmp://62.210.152.147/' . $accountName . '/' . $applicationName . '/&mp4:' . $edgeSource . '/' . $videoName . '_sd.mp4';
//NOTE FOR CUSTOM PATH WITH SUBFOLDERS ON HTTP STORAGE: Insert ^^^ here (before the media type) the correct path variable
$videoLinkJw = 'http://62.210.152.147/' . $accountName . '/' . $applicationName . '/' . $edgeSource . '/smil:' . $videoName . '.smil/jwplayer.smil';
//NOTE FOR CUSTOM PATH WITH SUBFOLDERS ON HTTP STORAGE: Insert ^^^ here (before the media type) the correct path variable
$videoLinkHLS = 'http://62.210.152.147/' . $accountName . '/' . $applicationName . '/' . $edgeSource . '/mp4:' . $videoName . '_sd.mp4/playlist.m3u8';
//NOTE FOR CUSTOM PATH WITH SUBFOLDERS ON HTTP STORAGE: Insert ^^^ here (before the media type) the correct path variable
} else {
$videoLinkVjs = 'rtmp://62.210.152.147/' . $accountName . '/mp4:' . $videoName . '.mp4';
$videoLinkJw = 'http://62.210.152.147/' . $accountName . '/smil:' . $videoName . '.smil/jwplayer.smil';
$videoLinkHLS = 'http://62.210.152.147/' . $accountName . '/mp4:' . $videoName . '.mp4/playlist.m3u8';
}
$url = urldecode($_SERVER[REQUEST_URI]);
$strUrl = explode("|", $url);
$vast = $strUrl[1];
for( $i=0; $i<=count($strUrl); $i++) {
if($i != 1) {
$jwpvideo .= $strUrl[$i];
}
}
$array_replace = array("&vast=", "/baldev_2015.php");
$jwpvideo = str_replace($array_replace, "", $jwpvideo);
//echo $jwpvideo;
if($autoPlay == "true") {
$autoPlayIma = " autostart";
}
?>