Forum

Post a new question

Categories:

Tags:

Clarification on delta and response

Emmet 2015-06-24 15:24:54 UTC in Paywall: WMSAuth and beyond

I want to disconnect users from a stream after x amount of time for a live stream.

What does delta represent in the sync request?({"id":"1","ip":"192.168.10.10","delta":286786}) Is that milliseconds of watch time?

Also, is Denylist the proper response? Will that allow them to reconnect again if they press play. I don't want to block them, I just want to ensure they are an active watcher.

Andrey Goncharov 2015-06-25 02:49:36 UTC

"delta" field represents delta of view time between sync-ups in milliseconds. In other words, each time your PPV handler receives sync request, it gets session duration delta from the last sync-up.

So, to get total view time, you need to sum all corresponding deltas. That means, you have to keep total view time for each user in your PPV handler and increment it with each incoming sync-up.

Regarding the DenyList, yes, you can issue that response in order to break specific user's session. Don't forget to reset that user's total view time at the moment of disconnection, so when the user reconnect to stream, he or she won't be dropped again.

Post a reply



This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the Privacy Policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the Privacy Policy.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.