WO2009033345A1 - Procédé pour télécharger et lire simultanément des supports en flux de transfert hypertexte - Google Patents

Procédé pour télécharger et lire simultanément des supports en flux de transfert hypertexte Download PDF

Info

Publication number
WO2009033345A1
WO2009033345A1 PCT/CN2007/003831 CN2007003831W WO2009033345A1 WO 2009033345 A1 WO2009033345 A1 WO 2009033345A1 CN 2007003831 W CN2007003831 W CN 2007003831W WO 2009033345 A1 WO2009033345 A1 WO 2009033345A1
Authority
WO
WIPO (PCT)
Prior art keywords
media
data
download
segment
terminal
Prior art date
Application number
PCT/CN2007/003831
Other languages
English (en)
Chinese (zh)
Inventor
Gang Liu
Dingyong Gou
Xin Xie
Xiaoyan Huang
Jiangyue Wu
Original Assignee
Zte Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zte Corporation filed Critical Zte Corporation
Publication of WO2009033345A1 publication Critical patent/WO2009033345A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/764Media network packet handling at the destination 

Definitions

  • the present invention belongs to the field of multimedia, and in particular, to a method for supporting a terminal hypertext transport (HTTP) streaming media service.
  • HTTP hypertext transport
  • streaming media The main technical feature of streaming media is the use of streaming, that is, the transmission of audio and video programs to the terminal via the Internet.
  • streaming There are currently two methods for implementing streaming: sequential streaming and real-time streaming.
  • sequential streaming since a standard HTTP server can send this form of file without the need for other special protocols, it is often referred to as HTTP streaming; sequential streaming is suitable for high-quality media such as short films, advertisements, and music. Files; and, sequential streaming media files can be placed on standard HTTP or FTP servers for easy management.
  • HTTP streaming has many advantages compared with real-time streaming: Server control is simple and easy to manage; Transmission protocol uses the Internet's most popular HTTP protocol, which is versatile, easy to implement, and fast in response. The control overhead is small, especially suitable for wireless environments, and is not limited by firewalls; the protocol on the mobile phone is simplified, and only needs to use the HTTP protocol like a normal browser, and does not need to implement a complex RTSP protocol cluster. Therefore, HTTP streaming has been widely used, and many internationally renowned operators require mobile phone manufacturers to support HTTP streaming.
  • the system structure of the mobile phone supporting HTTP streaming service is as shown in FIG. 1 , and the mobile phone passes through the base station and the network.
  • the network is connected to the server.
  • the solution for implementing the HTTP streaming service in the above system is generally to download the media data to a local file or a buffer through HTTP, and then play it, specifically including the following steps, as shown in FIG. 2:
  • Step 201 The mobile terminal sends a request to the server, and downloads the URL through the uniform resource locator.
  • Step 202 The server returns a confirmation message to the mobile terminal.
  • Step 203 The mobile terminal requests the server to download the media data.
  • Step 205 Repeat steps 203 and 204 until the entire media file is downloaded.
  • the technical problem to be solved by the present invention is to provide a method for a terminal to download and play HTTP streaming media at the same time, which supports synchronous playback of HTTP streaming media and shortens waiting time on the terminal.
  • the present invention provides a method for a terminal to simultaneously download and play a hypertext transport streaming medium, characterized in that the method comprises the following steps:
  • Step B After the downloading of the first media data is completed, while continuing the downloading, the segmented media data in each storage area in which the full download data has been cached is sequentially decoded and played. Further, the above method may further have the following features: Step B is further divided into the following steps:
  • the terminal starts playing the downloaded media after decoding the first piece of media data that has been downloaded and stored in the first segment of the locally cached storage area;
  • the play read pointer in the play thread cannot point to a storage area that has not yet stored the full download data.
  • the download write pointer in the download thread cannot point to the storage area where the media data that has not been played is located.
  • the downloaded mth segment data is stored in the mth segment of the local cache in the manner of sequential storage; if the m segment data is downloaded, if the playback has finished (m - 1) The media in the segment storage area is paused until the mth segment of data is downloaded and resumed.
  • the above method may also have the following features:
  • the method of cyclic storage is used when storing media data. If m is less than or equal to N, the mth segment data is stored in the mth segment storage area of the local cache; if m is greater than the total number of storage areas allocated by the local cache for the media N, the mth segment data is stored in the
  • the above method may also have the following features:
  • the above method may also have the following features:
  • the local cache is a main memory of the terminal, or a disk placed on the terminal, or a cache space allocated for the downloaded media on the mobile storage device connected to the terminal.
  • the above method may also have the following features:
  • the local cache is a cache space allocated on the main memory of the terminal for the downloaded media.
  • the terminal is a mobile phone.
  • the invention realizes that the terminal supports the download and play synchronization of the HTTP streaming media, and the segmentation and recycling of the buffer, thereby greatly shortening the waiting time, greatly improving the user experience, and also reducing the memory resources. demand.
  • Drawing fan
  • FIG. 1 is a schematic structural diagram of a system for supporting a mobile phone HTTP stream
  • FIG. 2 is a flow chart of the system shown in FIG. 1 for implementing HTTP streaming of a mobile phone
  • FIG. 3 is a general flowchart of implementing HTTP streaming of a mobile phone according to an embodiment of the present invention
  • FIG. 4 is a detailed flowchart of implementing HTTP streaming of a mobile phone in FIG. 3;
  • FIG. 5 is a schematic diagram of a cache structure used in the flow shown in FIG. Preferred embodiment of the invention
  • the main idea of the present invention is that the terminal can start playing after downloading a certain amount of data, and realize parallel execution of downloading and playing, which can be separately controlled by using two threads; in addition, downloading and playing need to process the buffer.
  • the optimization scheme of the present invention adopts a scheme of recycling cache; In the process, the playback read pointer cannot exceed the download write pointer; the download write pointer cannot cover the content that has not been read and played, that is, under the premise of dual-thread control, the synchronization of download and play is guaranteed.
  • the cache processing of the present invention is not limited to being stored in a hardware memory such as FLASH or RAM, and includes a file format that is stored in a first in first out (FIFO) manner after the streaming media data is downloaded.
  • the FIFO file format is closely related to the specific operating system. It is not necessarily stored in the main memory such as RAM or FLASH. It can also be stored on a disk or a removable storage device.
  • the operating system ensures storage and reading. First in, first out.
  • the operating system that supports FIFO files on the terminal needs to convert the media files downloaded from the server to the local FIFO file before caching. This also allows the first to get the streaming media data to be played first, while the FIFO-enabled file format is available in existing technologies, such as Qualcomm's Brew platform.
  • Step 301 After the mobile terminal decodes the first piece of media data that has been downloaded and stored in the first segment of the local cache, the mobile terminal starts playing the downloaded media.
  • Synchronous playback is achieved through dual-thread control, that is, the download thread and the play thread are executed in parallel. OK, but the playback read pointer in the playback thread cannot point to a memory area where the full download data has not yet been stored. At the same time, the download write pointer in the download thread cannot point to the storage area where the media data that has not been played is located.
  • Step 303 Repeat step 302 until the entire media file download is completed.
  • the memory for buffering the downloaded data may be any existing storage, and may be stored in a circular storage manner or in a sequential storage manner. In order to save resources, it is better to use a cyclic storage method.
  • the downloaded mth segment data is stored in the mth segment storage area of the local cache; if the mth segment is stored, the (m - 1) segment storage area is already played. The media is paused until the mth segment of data is downloaded and resumed.
  • Step 401 The mobile phone sends a request to the HTTP server to download the media specified by the URL, for example: http://xyzw/media/testvideo.mp4;
  • the mobile phone may be used by an existing application software such as a media player. Implementation, the following downloads and other operations are also implemented by the corresponding application software, no longer - specified.
  • Step 402 After receiving the request, the HTTP server returns a confirmation message to the mobile phone application software; the above steps 401-402 are the same as the prior art.
  • Step 403 After the mobile phone receives the confirmation message of the HTTP server; if the given resource does not exist, the error message is prompted; otherwise, the download thread is started, and the HTTP server is requested to download the first piece of media data;
  • the structure of the local cache described in this step is as shown in FIG. 5;
  • Step 405 After successfully downloading the first data block, the mobile phone starts the playing thread, starts decoding the downloaded media data, and then plays the same;
  • Step 407 The mobile phone downloads the requested mth segment data from the HTTP server. If m is not greater than N, the mth segment data is stored in the mth segment cache, otherwise the mth segment data is stored in the
  • the play thread After the play thread is started, while the mobile phone requests to download the media data, the play thread is not interrupted, and is executed concurrently with the download thread. If the download speed is slow, the data of the i-th buffer to be played is not downloaded, the playback is paused, and the playback is resumed until the media data of the i-th buffer is downloaded. If m is greater than N and the download speed is fast, When the media data in the lmod(m/N) segment cache is not played, the download thread waits until the data in the
  • Step 408 The HTTP server returns a confirmation message to the mobile phone, indicating that all the media data has been downloaded, stopping the downloading thread, and continuing to play the media data in the cache that has been downloaded;
  • Step 409 The playback ends.
  • the cache structure used in the above method is as shown in FIG. 5, and the cache is divided into N segments and can be used cyclically.
  • the capacity of each segment of the storage area is determined by the user as the case may be. In this embodiment, each storage area is 1 ⁇ 0.
  • the present invention can also convert downloaded data into a FIFO file and store it. It is not necessary to write code related to read and write pointer control when downloading and playing. Synchronization of download and playback is possible with the operating system. It can be stored on a disk or on a removable storage device.
  • the present invention can also be applied to other terminals that use the HTTP stream to download media data and have limited resources.
  • the invention can be applied to terminals such as mobile phones, supports the synchronization of downloading and playing of HTTP streaming media, can greatly shorten the waiting time, greatly improves the user experience, and reduces the demand for memory resources.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

La présente invention concerne un procédé pour télécharger et lire simultanément des supports en flux de transfert hypertexte dans un terminal, qui passe par les étapes suivantes : le terminal demande à télécharger les supports indiqués par l'URL depuis le serveur HTTP de transfert hypertexte et met en tampon les données de médias dans des segments vers la mémoire du tampon local ; simultanément, il télécharge, décode par séquences et lit les données de support segmentées dans chaque zone de mémoire qui a mis en tampon l'ensemble des données de téléchargement, après avoir achevé le téléchargement des premières données de support de segment. La solution implémente simultanément le téléchargement et la lecture du flux HTTP dans un terminal et la segmentation et la charge périodique du tampon, raccourcissant ainsi considérablement le temps d'attente, améliorant grandement l'expérience de l'utilisateur et abaissant la demande de ressources mémoire en même temps.
PCT/CN2007/003831 2007-09-11 2007-12-27 Procédé pour télécharger et lire simultanément des supports en flux de transfert hypertexte WO2009033345A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710145373.8A CN101127989A (zh) 2007-09-11 2007-09-11 一种支持手机超文本传输流媒体业务的方法
CN200710145373.8 2007-09-11

Publications (1)

Publication Number Publication Date
WO2009033345A1 true WO2009033345A1 (fr) 2009-03-19

Family

ID=39095876

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/003831 WO2009033345A1 (fr) 2007-09-11 2007-12-27 Procédé pour télécharger et lire simultanément des supports en flux de transfert hypertexte

Country Status (2)

Country Link
CN (1) CN101127989A (fr)
WO (1) WO2009033345A1 (fr)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8364838B2 (en) 2008-05-20 2013-01-29 Htc Corporation Method for playing streaming data, electronic device for performing the same and information storage media for storing the same
US8510375B2 (en) 2009-12-11 2013-08-13 Nokia Corporation Apparatus and methods for time mapping media segments in streaming media files
CN111935535A (zh) * 2019-05-13 2020-11-13 阿里巴巴集团控股有限公司 数据处理方法、装置、终端设备及计算机存储介质
CN114143294A (zh) * 2022-02-08 2022-03-04 广州长嘉电子有限公司 一种流媒体信号处理系统及方法

Families Citing this family (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420490A (zh) * 2008-05-30 2009-04-29 北京天腾时空信息科技有限公司 一种数据的读取方法和装置
CN101399691B (zh) * 2008-10-21 2011-09-07 北京闪联互动网络科技有限责任公司 移动终端的多媒体在线播放方法和装置及移动终端
EP2443807B1 (fr) * 2009-06-15 2017-12-27 BlackBerry Limited Procédé et appareil destinés à faciliter une adaptation sans session commandée par client
CN101656985B (zh) * 2009-08-18 2012-12-19 中兴通讯股份有限公司 一种管理url资源缓存的方法和装置
CN101702728B (zh) * 2009-09-02 2013-04-24 优视科技有限公司 用于移动通讯设备终端的流媒体传输系统及其应用方法
CN101662476A (zh) * 2009-09-29 2010-03-03 中兴通讯股份有限公司 彩信编辑获取媒体资源的方法及其移动终端
CN101702767B (zh) * 2009-10-28 2011-08-31 东方网力科技股份有限公司 一种时基媒体播放方法及系统
CN102404646A (zh) * 2010-09-08 2012-04-04 苏州尚嘉信息技术有限公司 一种无线电视直播系统及其直播方法
CN103747365B (zh) * 2010-09-17 2017-04-26 华为技术有限公司 基于http流的媒体内容动态插播方法、装置及系统
CN102137137B (zh) * 2010-09-17 2013-11-06 华为技术有限公司 基于http流的媒体内容动态插播方法、装置及系统
CN102420840A (zh) * 2010-09-27 2012-04-18 西安龙飞软件有限公司 一种基于brew的Http递进式视频播放器的实现方法
CN101951412B (zh) * 2010-10-15 2013-11-13 上海交通大学 基于http协议的多子流流媒体传输系统及其传输方法
CN102006368B (zh) * 2010-12-03 2013-06-19 重庆新媒农信科技有限公司 基于移动终端记忆卡缓存技术的流媒体音频文件播放方法
CN102123198A (zh) * 2011-01-11 2011-07-13 中国联合网络通信集团有限公司 媒体播放器的内存管理方法和内存管理器
CN103297452B (zh) * 2012-02-24 2016-08-24 北京对角巷科技发展有限公司 一种在互联网发布和直播流媒体的方法及系统
EP3068103A1 (fr) * 2012-08-14 2016-09-14 Telefonaktiebolaget LM Ericsson (publ) Traitement de données multimédias
CN103391454B (zh) * 2013-07-12 2016-12-28 三星电子(中国)研发中心 一种多线程下载方法和装置
CN103412782B (zh) * 2013-09-04 2017-03-22 广东全通教育股份有限公司 一种基于flash的动态资源加载方法和系统
CN103488717B (zh) * 2013-09-11 2017-02-22 北京华胜天成科技股份有限公司 一种无锁数据汇聚方法及装置
CN103648019A (zh) * 2013-11-29 2014-03-19 乐视致新电子科技(天津)有限公司 一种基于hls协议的视频下载方法及其装置
CN103731676A (zh) * 2013-12-31 2014-04-16 深圳Tcl新技术有限公司 兼容多协议多媒体数据的播放方法及其装置
CN105100172B (zh) 2014-05-22 2018-03-27 华为技术有限公司 一种http协议的缓存状态更新方法和设备、处理机
CN104184817A (zh) * 2014-08-28 2014-12-03 广州金山网络科技有限公司 一种下载优化方法及装置、终端
CN104240739B (zh) * 2014-09-04 2017-05-24 广东欧珀移动通信有限公司 一种移动终端的音乐播放方法及装置
CN104284204B (zh) * 2014-09-25 2019-02-15 中兴通讯股份有限公司 一种频道快速切换方法、系统及终端、服务器
CN104796741B (zh) * 2015-04-15 2018-03-16 姚世明 一种网络分层和资源分片的媒体分享方法装置
CN105898501A (zh) * 2015-12-30 2016-08-24 乐视致新电子科技(天津)有限公司 视频播放方法、视频播放器及电子装置
CN105872668A (zh) * 2016-03-31 2016-08-17 百度在线网络技术(北京)有限公司 音视频数据处理方法、装置以及车载终端
CN110895515A (zh) * 2018-09-12 2020-03-20 中兴通讯股份有限公司 内存缓存管理方法、多媒体服务器及计算机存储介质
CN110213643B (zh) * 2019-06-11 2023-03-24 北京奇艺世纪科技有限公司 一种流媒体缓存方法、装置及终端设备

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798097A (zh) * 2004-12-24 2006-07-05 腾讯科技(深圳)有限公司 一种缓存流媒体数据的方法
CN1937778A (zh) * 2005-09-20 2007-03-28 腾讯科技(深圳)有限公司 一种流媒体播放方法、系统及设备

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798097A (zh) * 2004-12-24 2006-07-05 腾讯科技(深圳)有限公司 一种缓存流媒体数据的方法
CN1937778A (zh) * 2005-09-20 2007-03-28 腾讯科技(深圳)有限公司 一种流媒体播放方法、系统及设备

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8364838B2 (en) 2008-05-20 2013-01-29 Htc Corporation Method for playing streaming data, electronic device for performing the same and information storage media for storing the same
US8510375B2 (en) 2009-12-11 2013-08-13 Nokia Corporation Apparatus and methods for time mapping media segments in streaming media files
CN111935535A (zh) * 2019-05-13 2020-11-13 阿里巴巴集团控股有限公司 数据处理方法、装置、终端设备及计算机存储介质
CN114143294A (zh) * 2022-02-08 2022-03-04 广州长嘉电子有限公司 一种流媒体信号处理系统及方法

Also Published As

Publication number Publication date
CN101127989A (zh) 2008-02-20

Similar Documents

Publication Publication Date Title
WO2009033345A1 (fr) Procédé pour télécharger et lire simultanément des supports en flux de transfert hypertexte
US20230289329A1 (en) Low latency and low defect media file transcoding using optimized storage, retrieval, partitioning, and delivery techniques
KR100492567B1 (ko) 이동통신 시스템의 http 기반 비디오 스트리밍 장치및 방법
CN103559165B (zh) 包含连续播放的视频分配系统
US9473812B2 (en) System and method for delivering content
US6816909B1 (en) Streaming media player with synchronous events from multiple sources
CN109286820B (zh) 基于分布式存储系统的流媒体点播方法及系统
CN101075949A (zh) 一种改变流媒体文件播放速度的方法
US20090006736A1 (en) Systems and methods for managing data storage
WO2008002296A1 (fr) Support pour dispositifs de lecture interactifs pour service de vidéo à la demande poste à poste conscient de la performance
WO2011147352A1 (fr) Procédé et dispositif pour prendre en charge une analyse de décalage dans une solution de transmission en temps réel du protocole de transfert hypertexte dynamique
WO2017059450A1 (fr) Bouclage vidéo sans discontinuité
US20210021655A1 (en) System and method for streaming music on mobile devices
US8817983B2 (en) Streaming video to cellular phones
CN112839238B (zh) 投屏播放方法、装置和存储介质
KR20070020727A (ko) 순차 조각 다운로드 방식을 이용한 의사 스트리밍 다운로드기능을 가지는 단말기 및 그 방법
JP2011501504A (ja) ストリーミングメディアコンテンツに対応する広告コンテンツを管理するためのシステム及び方法
WO2012146098A1 (fr) Procédé et système correspondant pour stocker et lire des données multimédias diffusées en continu
WO2013185514A1 (fr) Système et procédé de lecture de multimédia en flux continu
US20150268808A1 (en) Method, Device and System for Multi-Speed Playing
CN103763609A (zh) 一种基于hls协议的频道切换方法及其装置
US20090172752A1 (en) Streaming multiple videos in a playlist
WO2014190409A1 (fr) Système et procédé permettant la lecture en continu d'un fichier média depuis un serveur sur un dispositif client
US20150095447A1 (en) Serving method of cache server, cache server, and system
JP4165134B2 (ja) 情報再生装置、情報再生方法および情報再生システム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07855832

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 07855832

Country of ref document: EP

Kind code of ref document: A1