Comment

Comment by rileyteige

- Embed ads into the video itself, as suggested above

- Stream ad start/end events to the browser, with no duration info

- On sending the start event, lock the user's session such that they can't change their position within the video. lock it server-side, and client-side. Start event will include details of the ad being displayed for any interactivity.

- Unlock the session after the duration of the ad has elapsed, which is only known server-side. Then send the end event to the browser so it can be unlocked client-side.

parent rileyteige 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton