Patent ID: 11930242
Assignee: MEDIATEK SINGAPORE PTE. LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 0:
1. A method for playing streaming media comprising a plurality of segments, comprising:
receiving a segment of the streaming media; wherein the segment carries information of a segment Uniform Resource Identifier (URI) corresponding to itself;
checking a Media Presentation Description (MPD) to find what Period, AdaptationSet, and Representation the segment belongs to based on the segment URI;
calculating time information of the segment based on time information of the Period where the segment is located and a zero point of an MPD timeline of the MPD;
calculating time information of an availability window and a clock offset based on the time information of the segment and a duration of a time shift buffer in the MPD; and
calculating a starting time point of the streaming media and finding the segment corresponding to the starting time point to play according to the time information of the availability window and the clock offset;
wherein the step of calculating the time information of the availability window and the clock offset based on the time information of the segment and the duration of the time shift buffer in the MPD, comprises:
determining a queue start time as earliest segment start time in a queue;
determining a queue end time as latest segment end time in the queue;
determining a start time of a period availability window as a maximum value of the queue start time of all queues in the period;
determining an end time of the period availability window as a minimum value of the queue end time of all queues in the period;
determining a start time of the availability window as a minimum value of the start time of the period availability window of all periods in the MPD; and
determining an end time of the availability window as a maximum value of the end time of the period availability window of all periods in the MPD.