CPC H04L 65/65 (2022.05) [H04L 65/75 (2022.05); H04N 21/2187 (2013.01); H04N 21/8456 (2013.01)] | 20 Claims |
1. A method for media playing via a dynamic adaptive streaming over hypertext transfer protocol (DASH) player, the method comprising:
configuring a media source extension (MSE) source buffer based on a first media content and a second media content that are of independent reference timelines, the first media content being preroll content;
determining a first timestamp offset (TSO) that is applied to timestamps of segments of the first media content appended in the MSE source buffer according to
first TSO=TSBMax−DMax−(PTOP/TP)
wherein TSBMax is a maximum time shift buffer depth, DMax is a maximum possible duration of the first media content, PTOP is a presentation time offset of the first media content, and TP is a timescale of the first media content;
playing the segments of the first media content that are appended in the MSE source buffer based on the first timestamp offset; and
transitioning, after a last segment of the first media content, to a first segment of segments of the second media content that are appended in the MSE source buffer,
wherein the first timestamp offset is applied to the timestamps of the segments of the first media content appended in the MSE source buffer and a second timestamp offset is applied to timestamps of the segments of the second media content appended in the MSE source buffer.
|