Method and device for sending and playing streaming data
AssigneeHuawei Technologies Co., Ltd.
InventorsZhaozao Li, Hongbo Liu, Shen Qu
Life of this patent
Estimating the term…
Abstract
A method and a device for sending and playing the streaming data are disclosed in embodiments of the present invention. The method for playing the streaming data includes: receiving the streaming data from the client and buffering the data; and exporting the buffered streaming data according to the predefined rhythm. The statistics about the streaming data in the buffer is collected; and the rhythm is adjusted according to the amount of streaming data. The transmitting end can send the streaming data to the client as soon as possible and buffer only a little data; the client controls the rhythm to reduce the effect of network jitter on delay, thus shortening the delay of streaming play.
Claims12
A method for playing streaming data, comprising:
- receiving the streaming data from a server and storing the streaming data in a buffer;
- obtaining an amount of the streaming data in the buffer;
- adjusting playing rhythm according to the amount of the streaming data stored in the buffer, wherein the adjusting process further comprises:
- speeding up the playing rhythm if the amount of streaming data in the buffer exceeds a third waterline T3, and
- slowing down the playing rhythm if the amount of the streaming data stored in the buffer is less than the third waterline T3,
- wherein the adjustment for the playing rhythm is implemented by adjusting playing beat of the streaming data, wherein n represents the number of streaming data frames in the buffer, y represents time interval between adjacent frames that are exported after playing the adjustment, and s′ represents receiving beat of the streaming data that is sent by the server,
- if n=T3, y=1/s′;
- if n>T3, y<1/s′;
- if n<T3, y>1/s′.
A streaming service device, comprising:
- a first storage unit, configured to acquire streaming data to be sent and store the streaming data;
- a first statistics-collecting unit, configured to collect statistics on the amount of the streaming data that is stored in the first storage unit;
- a first dispatching unit, configured to discard the non-critical data of the streaming data stored in a first storage unit when the amount of streaming data stored in the first statistics-collecting unit exceeds a first waterline T1, wherein the first dispatching unit is further configured to discard all the streaming data stored in the first storage unit when the amount of the streaming data stored in the first storage unit exceeds a second waterline T2;
- a sending unit, configured to send the streaming data.
A streaming play device, comprising:
- a second storage unit, configured to buffer streaming data from a server;
- an output unit, configured to export the streaming data for playing;
- a second statistics-collecting unit, configured to collect statistics about an amount of the streaming data stored in the second storage unit;
- a second dispatching unit, configured to adjust playing rhythm of the output unit according to the amount of streaming data, wherein the second dispatching unit speeds up the playing rhythm when the amount of the streaming in the second storage unit exceeds a third waterline T3, and slow down the playing rhythm when the streaming data stored in the storage unit is less than the third waterline T3,
- wherein the adjustment for the playing rhythm is implemented by adjusting playing beat of the streaming data, wherein n represents the number of streaming data frames in the buffer, y represents time interval between adjacent frames that are exported after playing the adjustment, and s′ represents receiving beat of the streaming data that is sent by the server,
- if n=T3, y=1/s′;
- if n>T3, y<1/s′;
- if n<T3, y>1/s′.
Dependencies are inferred from the claim text.