Copy this code and paste it in your HTML
function mpp_plugin_createPlayHash( $sw = 'secretword1', $v = '0.1', $ttlsec = 300, $ip = '213.132.103.66' ){
$ttl = time() + $ttlsec;
//unix epoch timestamp + 300 return $v . dechex($ttl) . md5($ip . $ttl . $sw);
}