function GenerateSwiftwillCDNKey($streamingID, $file, $key) { $hinput = "/" . $streamingID . "/$file"; $houtput = "/" . $streamingID . "/mp4:" ."$file"; return $houtput . "?hash=0" . substr(hash_hmac("sha1", $hinput . '?clientip=' . $_SERVER['REMOTE_ADDR'], $key),0,20); } $application = GenerateSwiftwillCDNKey("exploitedmoms","videos/web/mp4/uewshc/em_0009_uewshc_01_640x480-mp4-0001.mp4", '6jpBMU44vbtn8Mcjc438'); $cdnUrl = 'rtmp://cdn1.vod.exploitedmoms.com' . $application; $p1x=85; $p1y=60; $p2x=400; $p2y=60; $p3x=85; $p3y=400; $fcolor="#fff"; ?>