I’m implementing client-side SSAI ad tracking SDK using Bitmovin Roku player. To compare and track the Live stream Ad metadata I need the player’s current time in epoch format. Like for HLS Program-Date-Time is required and for DASH Presentation Time is required. I tried lot of methods but nothing helped. Please let me know how can I get Program-Date-Time and Presentation-Time from Live Streams.
As per my knowledge… To get the current time in epoch format from a live stream on the Bitmovin Roku player, you can try accessing the HLS EXT-X-PROGRAM-DATE-TIME tag or the DASH AvailabilityStartTime and PresentationTimeOffset values. For HLS, you might need to parse the manifest directly to extract the Program-Date-Time. For DASH, use the AvailabilityStartTime from the MPD and calculate the current presentation time. Unfortunately, there isn’t a direct API for this in the Bitmovin Roku SDK, so you might need to implement custom parsing logic to achieve this.