发明名称 Method and apparatus for playing streaming media file
摘要 A method for playing a streaming media file, which can improve transmission and playing efficiency of a streaming media file. The method includes: playing, by a first apparatus, a streaming media file from a streaming media server; and when the first apparatus receives a handover instruction, sending, by the first apparatus, a playing command to a second apparatus, and sending at least a part of data of the downloaded streaming media file to the second apparatus, where the at least part of the data includes data not played by the first apparatus, where the playing command is used to instruct the second apparatus to play a part of or all of the at least part of the data sent by the first apparatus. The present invention further provides a corresponding apparatus.
申请公布号 US9380095(B2) 申请公布日期 2016.06.28
申请号 US201314107133 申请日期 2013.12.16
申请人 Huawei Device Co., Ltd. 发明人 Kuang Yunsheng
分类号 H04L29/06;H04L29/08;H04N21/433;H04N21/647;H04N21/845 主分类号 H04L29/06
代理机构 Conley Rose, P.C. 代理人 Conley Rose, P.C. ;Rodolph Grant
主权项 1. A method for playing a streaming media file, comprising: downloading, by a first apparatus, a streaming media file from a streaming media server; playing, by the first apparatus, the download streaming media file; sending, by the first apparatus, a playing command to a second apparatus so as to hand over the streaming media file being played on the first apparatus to the second apparatus for playing when the first apparatus receives a handover instruction input by a subscriber, wherein the first apparatus and the second apparatus belong to a subnet of a home network; acquiring, by the first apparatus, information of data which is of the streaming media file and is stored in a cache of the first apparatus; wherein the information of data which is of the streaming media file and is stored in the cache comprises a size of the data which is of the streaming media file and is stored in the cache or a start time point and an end time point of the data which is of the streaming media file and is stored in the cache, wherein the start time point a timestamp 2 on which the streaming media file is played when the first apparatus receives the handover instruction, and wherein the end time point is a timestamp 1 corresponding to a last complete data packet of the data which is of the streaming media file and is stored in the cache; determining by the first apparatus, whether a data amount which is of the streaming media file and is stored in the cache is sufficient to play according to the acquired information of data which is of the streaming media file and is stored in the cache; sending, by the first apparatus, a uniform resource locator (URL) and a value of the timestamp 2 that are of the streaming media file to the second apparatus when the data amount which is of the streaming media file and is stored in the cache is not sufficient to play; determining, by the first apparatus, whether a value of the timestamp 1 is an end position of the streaming media file when the data amount which is of the streaming media file and is stored in the cache is sufficient to play; sending, by the first apparatus, the data which is of the streaming media file and is stored in the cache to the second apparatus through the home network when the value of the timestamp 1 is an end position of the streaming media file; and sending, by the first apparatus, the data which is of the streaming media file and is stored in the cache of the first apparatus, the URL, and the value of the timestamp 1 that are of the streaming media file to the second apparatus through the home network when the value of the timestamp 1 is not the end position of the streaming media file for the second apparatus to request from the streaming media server according to information of the URL and the timestamp 1, data which is of the streaming media file and is after the timestamp 1.
地址 Shenzhen CN