Wowza Live Cam Secure Expired Token


Hits: 5531  
Wowza Live Cam Secure Expired Token
Wowza Live Cam Secure Expired Token

wowza-live-cam-secure-expired-token.php
// Encrypt original stream URL http://wowza-server:port/stream/playlist.m3u8
$base64ized = encryptDecrypt($secret_key, $streamURL, 0);

// Decrypt stream URL
$streamURL = encryptDecrypt($secret_key, $base64ized, 1);

stream.php

// Expire stream URL after time interval & check secure token
if (($current – $timestamp) <= $expired && ($checkhash == $hash)) { include("m3u8.php"); } m3u8.php

header(“content-type: application/vnd.apple.mpegurl”);
echo file_get_contents(“http://wowza-server:port/stream/playlist.m3u8”);

Published by

Sandeep Verma

I’m an Entrepreneur. I’m proud to work as Blogger, LAMP Programmer, Linux Admin, Web Consultant, Cloud Manager, Apps Developer, Searcher. Concentrate > Observe > Imagine > Launch

  • kmax

    Hello, I am looking for a way to secure a live stream from wowza… is there a page with more explanation of this code? Is this just part of the code? Or is this all there is?

  • Sandeep Verma

    How are from?

  • HLSStreamer

    Hi Sandeep , I am looking to secure hls stream playlist m3u8 and all .ts chunks . Is there any way to secure .ts chunks as well ?

  • Sandeep Verma

    Contact me for paid help
    http://blog.svnlabs.com/contact/