I need to activate a "pay-per-view" feature for our customers.
I set up WMSAuth Paywall, adding a password in the "Links re-publishing protection" section. Then I develop few lines of code to generate a signature and attach it to the URL of .m3u8 stream.
The clear signature is something like:
server_time=11/30/2017 11:31:52 AM&hash_value=T1ROx5DvFdHi6lyMa9p72w==&validminutes=20&id=23
(then converted in BASE64)
As you can see, the "id" parameter is present.
The "hash" is made from a string composed by:
as I found on this URL: https://github.com/WMSPanel/paywall-code-samples-wmsauth/blob/master/pay-per-view/ppv_media_signature.php
But the Global API are not sending me the "id" param so I can't evaluate it:
Where am I doing wrong?