US 11,818,189 B2
Method and apparatus for media streaming
Iraj Sodagar, Los Angeles, CA (US)
Assigned to TENCENT AMERICA LLC, Palo Alto, CA (US)
Filed by TENCENT AMERICA LLC, Palo Alto, CA (US)
Filed on Sep. 16, 2021, as Appl. No. 17/447,920.
Claims priority of provisional application 63/134,525, filed on Jan. 6, 2021.
Prior Publication US 2022/0217194 A1, Jul. 7, 2022
Int. Cl. H04N 21/845 (2011.01); H04N 21/2187 (2011.01); H04L 65/65 (2022.01); H04L 65/75 (2022.01)
CPC H04L 65/65 (2022.05) [H04L 65/75 (2022.05); H04N 21/2187 (2013.01); H04N 21/8456 (2013.01)] 20 Claims
OG exemplary drawing
 
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=TSBMaxDMax−(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.