WO2018233190A1 - 媒体分片的下载方法、终端和计算机可读存储介质 - Google Patents

媒体分片的下载方法、终端和计算机可读存储介质 Download PDF

Info

Publication number
WO2018233190A1
WO2018233190A1 PCT/CN2017/110796 CN2017110796W WO2018233190A1 WO 2018233190 A1 WO2018233190 A1 WO 2018233190A1 CN 2017110796 W CN2017110796 W CN 2017110796W WO 2018233190 A1 WO2018233190 A1 WO 2018233190A1
Authority
WO
WIPO (PCT)
Prior art keywords
media
baseurl
attribute
service node
downloading
Prior art date
Application number
PCT/CN2017/110796
Other languages
English (en)
French (fr)
Inventor
陈耀宗
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2018233190A1 publication Critical patent/WO2018233190A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1014Server selection for load balancing based on the content of a request
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments

Definitions

  • the present invention relates to the field of network television streaming media, and in particular, to a method for downloading a media slice, a terminal, and a computer readable storage medium.
  • DASH Dynamic Adaptive Streaming over HTTP
  • HTTP HyperText Transfer Protocol
  • the main purpose of the present invention is to provide a method and a device for downloading media segments, which are intended to solve the problem of downloading existing media segments and easily affect the technical problems of smoothness and stability of the terminal.
  • the present invention provides a method for downloading a media slice, which is applied to a terminal, and the method for downloading the media slice includes:
  • Downloading a media description file parsing the media description file to extract a base uniform resource locator BaseURL field of each service node;
  • the service node where the media fragment to be downloaded is located is determined according to the field attributes corresponding to the remaining BaseURL fields, so as to download the media fragment.
  • the present invention further provides a computer readable storage medium, wherein the computer readable storage medium stores a download program of a media slice, and the download program of the media slice is implemented by a controller. The steps of the method of downloading the media slice as described above.
  • the terminal first downloads the media description file, and parses the media description file to extract the base uniform resource locator BaseURL field of each service node, and then queries the field attribute corresponding to each BaseURL field, and according to The field attribute corresponding to each BaseURL field determines the service node where the media slice to be downloaded is located. If the media slice fails to be downloaded in the determined service node, the field attribute corresponding to each remaining BaseURL field determines the media slice to be downloaded. The service node performs the download of the media slice. Even if the service node fails, the terminal can download the media slice in other service nodes without repeating the request in the same service node, thereby avoiding the situation that the video play is stuck. Improve the smoothness and stability of video playback Sex.
  • FIG. 1 is a schematic structural diagram of a terminal in a hardware operating environment according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a first embodiment of a method for downloading a media slice according to the present invention
  • step S20 in FIG. 2 is a schematic diagram of a first refinement process of step S20 in FIG. 2;
  • step S20 in FIG. 2 is a schematic diagram of a second refinement process of step S20 in FIG. 2;
  • FIG. 5 is a schematic diagram showing the refinement process of step S23 in FIG. 4;
  • FIG. 6 is a schematic flowchart diagram of a second embodiment of a method for downloading a media slice according to the present invention.
  • FIG. 7 is a schematic flowchart diagram of a third embodiment of a method for downloading a media slice according to the present invention.
  • the main difficulty of the prior art is that most video providers store media fragments of each code rate in the same video file in the same service node, causing the DASH terminal to parse the media description file. At the same time, the parsing strategy can only focus on the rate switching problem, and there is no way to deal with the success rate of the same rate request service node.
  • the present invention introduces a BaseURL field in a media description file, and the technology is applicable to multiple server locations (positions of multiple servers), that is, the same media fragment can be obtained from the A service node. It can also be obtained from the B service node.
  • the XML file description file requested by the terminal contains the BaseURL attribute. Based on this premise, the terminal can parse the attribute. When requesting a service node, if the network is wrong, it can access different service nodes. BaseURL value, automatically switch channels of different service nodes to access different service nodes and lower service nodes At the same time of load, the success rate of obtaining media fragments per unit time is also improved, and the smoothness and stability of the video played by the terminal are improved.
  • FIG. 1 is a schematic structural diagram of a terminal in a hardware operating environment according to an embodiment of the present invention.
  • the terminal may include a parser 1001, a controller 1002, a communication bus 1003, a user interface 1004, a network interface 1005, and a memory 1006.
  • the description file parser parser 1001 is configured to download and parse the media description file, and extract different BaseURLs.
  • the controller 1002 is configured to schedule selection of different service nodes and download media slice content.
  • Communication bus 1003 is used to implement connection communication between these components.
  • the user interface 1004 can include a display, an input unit such as a keyboard, and the optional user interface 1004 can also include a standard wired interface, a wireless interface.
  • the network interface 1005 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
  • the memory 1006 may be a high speed RAM memory or a non-volatile memory such as a disk memory.
  • the memory 1006 can also optionally be a storage device independent of the aforementioned controller 1002.
  • the terminal may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like.
  • the terminal can be selected as a DASH terminal.
  • terminal structure shown in FIG. 1 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • a memory 1006 as a computer readable storage medium may include an operating system, a network communication module, a user interface module, and a download program of the media slice.
  • the operating system is a program for managing and controlling terminal and software resources, and supports network communication module, user interface module, download program of media slice and operation of other programs or software; network communication module is used for managing and controlling network interface 1005;
  • the user interface module is used to manage and control the user interface 1004.
  • the network interface 1005 is mainly used to connect each service node and perform data communication with each service node;
  • the user interface 1004 is mainly used to connect users.
  • the client (user end) performs data communication with the client;
  • the controller 1002 calls the download program of the media slice stored in the memory 1006 to perform the following steps:
  • Downloading a media description file parsing the media description file to extract a base uniform resource locator BaseURL field of each service node;
  • the service node where the media fragment to be downloaded is located is determined according to the field attributes corresponding to the remaining BaseURL fields, so as to download the media fragment.
  • the field attributes corresponding to the respective BaseURL fields and the contents of the fields are stored in the linked list.
  • the field attribute includes a priority attribute, a weight value attribute, and/or a service node location attribute, and the controller 1002 also calls a downloading program of the media slice stored in the memory 1006 to perform corresponding according to each BaseURL field.
  • the field attribute determines the step of the service node where the media slice is to be downloaded:
  • each BaseURL field is sorted in the linked list according to the order of the priority attribute
  • the base URL field with the highest priority attribute is extracted, and the service node corresponding to the base URL field with the highest priority attribute is used as the service node where the media fragment to be downloaded is located.
  • controller 1002 also calls a downloading program of the media slice stored in the memory 1006 to perform the step of determining the service node where the media slice to be downloaded is located according to the field attribute corresponding to each BaseURL field:
  • the matching interval is determined according to the value of the weight value attribute and the preset random variable function
  • controller 1002 also calls a download program of the media slice stored in the memory 1006 to perform a step of determining a matching interval according to the value of the weight value attribute and the preset random variable function:
  • controller 1002 also calls a download program of the media slice stored in the memory 1006 to perform the step of downloading the media slice:
  • the download of the media slice is performed based on the URL of the service node and the BaseURL.
  • controller 1002 also calls a download program of the media slice stored in the memory 1006 to perform the following steps:
  • the error prompt information is output to prompt that each service node of the media description file is unavailable, and the media play is exited.
  • the present invention provides a downloader of a media slice. law.
  • FIG. 2 is a schematic flowchart diagram of a first embodiment of a method for downloading a media slice according to the present invention.
  • Downloading a media description file parsing the media description file to extract a base uniform resource locator BaseURL field of each service node;
  • the service node where the media fragment to be downloaded is located is determined according to the field attributes corresponding to the remaining BaseURL fields, so as to download the media fragment.
  • the terminal is a terminal as shown in FIG. 1 , and the terminal is a DASN terminal.
  • the embodiment of the present invention mainly describes a scheme for the DASN terminal to automatically select a service node provided by the CDNS network server, and the specific selection manner is: automatically selecting the BaseURL of each service node included in the media description file.
  • the DASN terminal After downloading the MPD file, the DASN terminal parses the MPD file. Since the MPD file is an XML format file, the DASN terminal parses the MPD file, and identifies each field in an MPD file in an XML format. .
  • the MPD file includes a BaseURL (Base Uniform Resource Locator) field of each service node, and the BaseURL can uniquely represent the service node. Therefore, after parsing the media description file, the BaseURL field of each service node can be extracted.
  • BaseURL Base Uniform Resource Locator
  • the DASN terminal parses the media description file to extract the BaseURL field of each service node, and may also establish a linked list and a blacklist.
  • Step S232 determining, according to the value of the weight value attribute and the random variable function, the interval in which the at least two fields are located;
  • the downloaded data is pushed to the buffer for playing. If the download fails, remove BaseURL from the list to add Add to the blacklist.
  • the embodiment of the present invention automatically selects a service node to perform media slice download switching by parsing the BaseURL field attribute (including priority, specific gravity, and the like) in the MPD file in the XML format, and on the basis of ensuring the user's viewing fluency, Improve playback stability and improve the player's robustness to network jitter (whether it is not crashing or crashing under network overload or intentional attacks).
  • BaseURL field attribute including priority, specific gravity, and the like
  • the second embodiment of the method for downloading the media slice is different from the first embodiment of the method for downloading the media slice.
  • the method for downloading the media slice further includes:
  • step S50 the attribute of the BaseURL is determined, and the BaseURL of the same attribute as the BaseURL in the media description file is added to the blacklist to cancel the access rights of each BaseURL of the attribute.
  • the service node that fails the access is added to the blacklist, and in the process of playing all the media segments of the video, the access rights of the service node are restricted to prevent repeated access to the service node.
  • the fluency and stability are reduced.
  • a third embodiment of the method for downloading the media slice of the present invention is proposed based on the second embodiment.
  • the third embodiment of the method for downloading the media slice is different from the second embodiment of the method for downloading the media slice.
  • the method for downloading the media slice further includes:
  • the DASH terminal when the last baseURL access still occurs error, the DASH terminal returns a network error, and outputs an error prompt message in the preset area, such as the terminal display interface, or the application interface outputs an error prompt message to Prompt that all service nodes of all media fragments are unavailable and exit media playback.
  • the method further includes:
  • the core of the system control is to coordinate the load balancing between different service nodes, and avoid non-fatal errors such as Heavy server load, Missing segments, Connection or packet transfer ('socket') timeout, and cause the DASH terminal to disconnect. Reduce the number of reconnections, reduce the number of visits to the same service node, and ensure that the fragmentation can be downloaded normally at this time, so that the buffer data is maintained at a reasonable level, and the media content is smoothly played.
  • This paper uses dynamic search to update the linked list and blacklist list at any time, which can greatly improve the system resource utilization efficiency under the condition of ensuring speed; DASH playback connection speed increased by about 70%, and stable Increased by more than 80% (retry limit the number of times within 1 second).
  • the technical solution of the present invention is simulated on the MATLAB simulation software.
  • the sample sample is >1000, the probability distributions drawn tend to coincide, which proves the effectiveness of the strategy, and the smoke pressure measurement on the television is found.
  • the network error type of video disconnection is reduced by more than 70%, which greatly improves the smoothness and stability of playback.
  • an embodiment of the present invention further provides a computer readable storage medium, where the download program of the media slice is stored, and when the download program of the media slice is executed by the controller, the following operations are implemented. :
  • the service node where the media fragment to be downloaded is located is determined according to the field attributes corresponding to the remaining BaseURL fields, so as to download the media fragment.
  • the field attributes corresponding to the respective BaseURL fields and the contents of the fields are stored in the linked list.
  • the field attribute includes a priority attribute, a weight value attribute, and/or a service node location attribute.
  • the field attribute corresponding to each BaseURL field is further determined to be downloaded. The operation of the service node where the media fragment is located:
  • each BaseURL field is sorted in the linked list according to the order of the priority attribute
  • the base URL field with the highest priority attribute is extracted, and the service node corresponding to the base URL field with the highest priority attribute is used as the service node where the media fragment to be downloaded is located.
  • the operation of determining the service node where the media slice to be downloaded is located according to the field attribute corresponding to each BaseURL field is further implemented:
  • the operation of determining the matching interval is further implemented according to the value of the weight value attribute and the preset random variable function:
  • the interval in which the random number is located is used as a matching interval.
  • the attribute of the BaseURL is determined, and the BaseURL of the same attribute as the BaseURL in the media description file is added to the blacklist to cancel the access rights of each BaseURL of the attribute.

Landscapes

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

Abstract

本发明公开了一种媒体分片的下载方法,应用于终端,所述媒体分片的下载方法包括:下载媒体描述文件,对所述媒体描述文件进行解析以提取出各个服务节点的基础统一资源定位符BaseURL字段;查询各个BaseURL字段对应的字段属性,并根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点;若在确定的服务节点中下载媒体分片失败时,根据剩余的各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点,以进行媒体分片的下载。本发明还公开了一种终端和计算机可读存储介质。本发明提高了媒体分片下载的流畅性和稳定性。

Description

媒体分片的下载方法、终端和计算机可读存储介质 技术领域
本发明涉及网络电视流媒体领域,尤其涉及一种媒体分片的下载方法、终端和计算机可读存储介质。
背景技术
DASH(Dynamic Adaptive Streaming over HTTP,动态自适应流媒体)是一种利用互联网上传统的HTTP(HyperText Transfer Protocol,超文本传输协议)Web服务器提供高品质流媒体内容的协议。DASH将媒体文件分成多个码率的分片组,以覆盖不同的网络带宽需求,当DASH终端开始播放一个视频文件时,它可以根据网络状况选择可支持的最高码率,从而在保证观看视频效果的同时,减少客户端的卡顿和缓冲。
现有的DASH终端是通过CDN(Content Delivery Network,内容分发网络)分发服务节点,以从服务节点中获取视频内容进行播放。CDN系统能够根据网络流量、各服务节点的连接、负载状况以及到用户的距离和响应时间等综合信息将DASH终端的请求导向离DASH终端最近的服务节点上。其目的是使DASH终端可就近取得所需内容,解决Internet网络拥挤的状况,提高DASH终端访问网站的响应速度。
目前,CDN对于客户端请求重导向功能只能在服务端进行控制,而且大部分DASH终端机只能向服务节点发送的segment(分片)的请求,无法自动选择服务节点,当请某个媒体分片请求失败时,DASH终端只能循环的再次请求,在实际播放过程中,对于一个媒体分片持续5次请求不成功,DASH终端播放就会发生明显卡顿现象,影响了DASH终端的播放流畅度和稳定性。
发明内容
本发明的主要目的在于提供一种媒体分片的下载方法和装置,旨在解决现有的媒体分片的下载方式,容易影响终端播放流畅度和稳定性的技术问题。
为实现上述目的,本发明提供一种媒体分片的下载方法,应用于终端,所述媒体分片的下载方法包括:
下载媒体描述文件,对所述媒体描述文件进行解析以提取出各个服务节点的基础统一资源定位符BaseURL字段;
查询各个BaseURL字段对应的字段属性,并根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点;
若在确定的服务节点中下载媒体分片失败时,根据剩余的各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点,以进行媒体分片的下载。
此外,为实现上述目的,本发明还提供一种终端,所述终端包括存储器、解析器、控制器及存储在所述存储器上并可在所述控制器上运行的媒体分片的下载程序,所述媒体分片的下载程序被所述控制器执行时实现如上文所述的媒体分片的下载方法的步骤。
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有媒体分片的下载程序,所述媒体分片的下载程序被控制器执行时实现如上文所述的媒体分片的下载方法的步骤。
本发明提出的技术方案,终端先下载媒体描述文件,并对所述媒体描述文件进行解析以提取出各个服务节点的基础统一资源定位符BaseURL字段,然后查询各个BaseURL字段对应的字段属性,并根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点,若在确定的服务节点中下载媒体分片失败时,根据剩余的各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点,以进行媒体分片的下载,即使有服务节点发生故障,终端也可以在其它服务节点中下载媒体分片,无须在同一个服务节点中重复请求,避免视频播放卡顿的情况发生,提高了视频播放的流畅度和稳定 性。
附图说明
图1是本发明实施例方案涉及的硬件运行环境的终端结构示意图;
图2为本发明媒体分片的下载方法第一实施例的流程示意图;
图3为图2中步骤S20的第一细化流程示意图;
图4为图2中步骤S20的第二细化流程示意图;
图5为图4中步骤S23的细化流程示意图;
图6为本发明媒体分片的下载方法第二实施例的流程示意图;
图7为本发明媒体分片的下载方法第三实施例的流程示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
应当理解的是,现有技术主要存在的难点在于:大部分的视频提供商将同一个视频文件中各个码率的媒体分片都存放在同一个服务节点中,导致DASH终端机解析媒体描述文件时,解析策略只能关注到码率切换问题,没有办法处理同个码率请求服务节点成功率问题。
为了解决现有技术的问题,本发明在媒体描述文件中引入BaseURL字段,此技术适用于multiple server locations(多个服务器的位置),也即是同一个媒体分片可以从A服务节点中获取,也可以从B服务节点获取,终端请求的XML文件描述文件包含BaseURL属性,基于此前提,终端可以解析该属性,在请求某个服务节点的时候,若网络错误,就可以通过访问不同服务节点的BaseURL值,自动切换不同服务节点的通道,以访问不同的服务节点,降低服务节点 负载的同时,也提高单位时间获取媒体分片的成功率,提高了终端播放视频的流畅度和稳定性。
如图1所示,图1是本发明实施例方案涉及的硬件运行环境的终端的结构示意图。
如图1所示,该终端可以包括:解析器1001、控制器1002,通信总线1003、用户接口1004、网络接口1005和存储器1006。其中,描述文件解析器解析器1001用于下载、解析媒体描述文件,提取出不同的BaseURL。控制器1002用于调度选择不同服务节点和下载媒体分片内容。通信总线1003用于实现这些组件之间的连接通信。用户接口1004可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1004还可以包括标准的有线接口、无线接口。网络接口1005可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1006可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1006可选的还可以是独立于前述控制器1002的存储装置。
可选地,终端还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。所述终端可选为DASH终端。
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种计算机可读存储介质的存储器1006中可以包括操作系统、网络通信模块、用户接口模块以及媒体分片的下载程序。其中,操作系统是管理和控制终端与软件资源的程序,支持网络通信模块、用户接口模块、媒体分片的下载程序以及其它程序或软件的运行;网络通信模块用于管理和控制网络接口1005;用户接口模块用于管理和控制用户接口1004。
在图1所示的终端中,网络接口1005主要用于连接各个服务节点,与各个服务节点进行数据通信;用户接口1004主要用于连接客 户端(用户端),与客户端进行数据通信;所述控制器1002调用存储器1006中存储的媒体分片的下载程序,以执行以下步骤:
下载媒体描述文件,对所述媒体描述文件进行解析以提取出各个服务节点的基础统一资源定位符BaseURL字段;
查询各个BaseURL字段对应的字段属性,并根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点;
若在确定的服务节点中下载媒体分片失败时,根据剩余的各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点,以进行媒体分片的下载。
进一步地,所述执行对所述媒体描述文件进行解析的同时,所述控制器1002还调用存储器1006中存储的媒体分片的下载程序,以执行以下步骤:
建立链表和黑名单列表;
所述查询各个BaseURL字段对应的字段属性的步骤之后,所述控制器1002还调用存储器1006中存储的媒体分片的下载程序,以执行以下步骤:
将各个BaseURL字段对应的字段属性以及字段内容存储到所述链表中。
进一步地,所述字段属性包括优先级属性、权重值属性和/或服务节点位置属性,所述控制器1002还调用存储器1006中存储的媒体分片的下载程序,以执行根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点的步骤:
在字段属性中包含有优先级属性时,在所述链表中按照优先级属性的顺序对各个BaseURL字段进行排序;
提取出优先级属性最高的BaseURL字段,将所述优先级属性最高的BaseURL字段对应的服务节点作为待下载媒体分片所在的服务节点。
进一步地,所述控制器1002还调用存储器1006中存储的媒体分片的下载程序,以执行根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点的步骤:
在字段属性中未包含优先级属性时,按照权重值属性的值以及预设随机变量函数,确定匹配区间;
根据所述匹配区间与服务节点的映射关系,确定所述匹配区间所在的服务节点,并将确定的服务节点作为待下载媒体分片所在的服务节点。
进一步地,所述控制器1002还调用存储器1006中存储的媒体分片的下载程序,以执行按照权重值属性的值以及预设随机变量函数,确定匹配区间的步骤:
调用预设随机变量函数产生随机数;
按照权重值属性的值以及所述随机变量函数,确定所述至少两个字段所在的区间;
将所述随机数位于的区间作为匹配区间。
进一步地,所述控制器1002还调用存储器1006中存储的媒体分片的下载程序,以执行进行媒体分片的下载的步骤:
获取确定的所述服务节点对应的统一资源定位符URL;
基于所述服务节点的URL和BaseURL进行媒体分片的下载。
进一步地,所述控制器1002还调用存储器1006中存储的媒体分片的下载程序,以执行以下步骤:
将下载媒体分片失败的服务节点对应的BaseURL添加到黑名单列表中;
确定所述BaseURL的属性,将所述媒体描述文件中与所述BaseURL相同属性的BaseURL都追加到所述黑名单列表中,以取消所述属性的各个BaseURL的访问权项。
进一步地,所述控制器1002还调用存储器1006中存储的媒体分片的下载程序,以执行以下步骤:
在检测到所述媒体描述文件中所有服务节点的BaseURL都访问失败时,输出错误提示信息,以提示所述媒体描述文件的各个服务节点都不可用,并退出媒体播放。
基于上述终端的硬件结构,本发明提供一种媒体分片的下载方 法。
参照图2,图2为本发明媒体分片的下载方法第一实施例的流程示意图。
在本实施例中,所述媒体分片的下载方法应用于终端,所述媒体分片的下载方法包括:
下载媒体描述文件,对所述媒体描述文件进行解析以提取出各个服务节点的基础统一资源定位符BaseURL字段;
查询各个BaseURL字段对应的字段属性,并根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点;
若在确定的服务节点中下载媒体分片失败时,根据剩余的各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点,以进行媒体分片的下载。
在本实施例中,所述终端如图1所述的终端,该终端为DASN终端。本发明实施例,主要描述DASN终端对CDNS网络服务器提供的服务节点进行自动选择的方案,具体的选择方式是:对媒体描述文件中包含的各个服务节点的BaseURL进行自动选择。
以下是本实施例中逐步实现媒体分片的下载方法的具体步骤:
步骤S10,下载媒体描述文件,对所述媒体描述文件进行解析以提取出各个服务节点的基础统一资源定位符BaseURL字段;
在本实施例中,DASN终端在接收到媒体分片的下载指令时,确定待下载的媒体类型,并在事先默认设置的服务节点中下载所述媒体类型对应的MPD(Media Presentation Description,媒体描述)文件,当DASN终端下载到MPD文件之后,将下载的该MPD文件存储到预设存储空间,如内存中。
本实施例中需要说明的是,一个视频对应一个MPD文件,一个视频可分成多个媒体分片,因此,属于同一个视频的各个媒体分片对应同一个MPD文件。
在下载到MPD文件之后,DASN终端对该MPD文件进行解析,由于MPD文件是XML格式的文件,因此,该DASN终端对该MPD文件进行解析,是在XML格式的MPD文件中对各个字段进行识别。 本实施例中,所述MPD文件中包含有各个服务节点的BaseURL(Base Uniform Resource Locator,基础统一资源定位符)字段,该BaseURL可唯一表示服务节点。因此,对所述媒体描述文件进行解析之后,即可提取出各个服务节点的BaseURL字段。
进一步地,所述DASN终端对所述媒体描述文件进行解析以提取出各个服务节点的BaseURL字段的同时,还可以建立链表和黑名单列表。
此外,也可以是DASN终端可在下载MPD文件之后,建立链表和黑名单列表,并在建立链表和黑名单列表之后,再对所述MPD文件进行解析。具体的顺序不做限定,可根据实际情况设定。
本发明实施例中,为了提高媒体分片下载的效率,优选所述DASN终端启动双进程,通过一个进程对所述媒体描述文件进行解析的同时,启动另一个进程建立链表和黑名单列表,下文也均以这种方式为例进行详述。
在本实施例中,所述链表用于存储下文提及的各个BaseURL字段的字段属性以及BaseURL字段的字段内容,所述黑名单列表用于存储媒体分片下载失败的服务节点的BaseURL字段。
步骤S20,查询各个BaseURL字段对应的字段属性,并根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点;
在本实施例中,在MPD文件中提取出各个服务节点对应的BaseURL字段之后,进一步查询各个BaseURL字段对应的字段属性,所述字段属性包括:优先级属性(priority属性)、权重值属性(weight属性)和/或服务节点位置属性(serviceLocation属性)。即,每个服务节点的BaseURL字段可包含中优先级属性、权重值属性、服务节点位置属性中的一个或多个。
在查询到各个BaseURL字段对应的字段属性之后,所述方法还包括:
将各个BaseURL字段对应的字段属性以及字段内容存储到所述链表中。
需要注意的是,此时所述黑名单列表为空。在链表中存储各个BaseURL字段对应的字段属性以及字段内容之后,根据各个BaseURL字段对应的字段属性确定待下载的媒体分片所在的服务节点。
具体地,所述步骤S20的实施方式包括:
1)方式一、参照图3,所述步骤S20包括:
步骤S21,在字段属性中包含有优先级属性时,在所述链表中按照优先级属性的顺序对各个BaseURL字段进行排序;
步骤S22,提取出优先级属性最高的BaseURL字段,将所述优先级属性最高的BaseURL字段对应的服务节点作为待下载媒体分片所在的服务节点。
在本实施方式中,先确定各个BaseURL字段的字段属性是否包含有优先级属性,然后对包含有优先级属性的字段优先进行考虑,具体地,在链表中对包含有优先级属性的各个BaseURL字段进行排序,排序的方式按照优先级属性从高到低的顺序进行排列,然后,从所述链表中提取出优先级属性最高的BaseURL字段,将所述优先级属性最高的BaseURL字段对应的服务节点作为待下载媒体分片所在的服务节点。
在本实施方式中,相当于是BaseURL字段存在优先级属性的情况下,优先在有优先级属性的BaseURL字段中确定待下载媒体分片所在的服务节点,若能找出优先级属性最高的BaseURL字段,且只找出一个BaseURL字段,后续即可在该BaseURL字段对应的服务节点中下载媒体分片。
2)方式二、参照图4,所述步骤S20包括:
步骤S23,在字段属性中未包含优先级属性时,按照权重值属性的值以及预设随机变量函数,确定匹配区间;
步骤S24,根据所述匹配区间与服务节点的映射关系,确定所述匹配区间所在的服务节点,并将确定的服务节点作为待下载媒体分片所在的服务节点。
具体地,参照图5,所述步骤S23包括:
步骤S231,调用预设随机变量函数产生随机数;
步骤S232,按照权重值属性的值以及所述随机变量函数,确定所述至少两个字段所在的区间;
步骤S233,将所述随机数位于的区间作为匹配区间。
为更好理解本实施例,举例如下:若当前优先级属性最高的BaseURL字段包括三个字段,三个字段对应的权重值属性的值分别为10、30、60,此时,对三个值求和得到总值100,将该总值100作为随机函数的X-U[a,b]区间,其中a=0,b=total weight,即b=100。
根据随机变量函数,对三个字段划分区间,其中,X取值在区间[a,b]上,并且取值在[a,b]中任意小区间内的概率与这个小区间的长度成正比,则X具有【a,b】上的均匀分布,具体的计算公式如下:
Figure PCTCN2017110796-appb-000001
若X~U[a,b],且(x1,x2)为[a,b]的任意子区间,则:
Figure PCTCN2017110796-appb-000002
当字段的权重值属性的值为10时,P(x)为10%,由于(公式2)中,a为0、b为100、x1为0,可计算出x2为10,因此,权重值属性的值为10的BaseURL字段所在的区间就为(0,10)。
同理,当字段的权重值属性的值为30时,P(x)为30%,区间起点为10,即此时代入公式中的x1为10,a和b的值保持不变,因此代入(公式2)中,可得到x2为40,因此,权重值属性的值为30的BaseURL字段所在的区间就为(10,40)。
同理,当字段的权重值属性的值为60时,P(x)为60%,区间起点为40,即此时代入公式中的x1为40,a和b的值保持不变,因此代入(公式2)中,可得到x2为100,因此,权重值属性的值为60的BaseURL字段所在的区间就为(40,100)。
因此,可知三个BaseURL字段的区间分别为(0,10)、(10,40)和(40,100)。确定了三个BaseURL字段所在的区间之后,再根据系统调用所述随机变量函数产生的随机数,确定当前待下载媒体分片所在的服务节点,若该随机数落在(0,10)区间,那么当前待下载媒体分片所在的服务节点就是权重值属性的值为10的BaseURL字段所在的服务节点,其它各种情况同理,此处不再赘述。
在本实施方式中,相当于是各个BaseURL都不存在优先级属性时,此时仅考虑各个BaseURL的权重值属性即可,并根据权重值属性确定待下载媒体分片的服务节点,后续直接在确定的服务节点中下载媒体分片。
3)方式三、所述步骤S22之后,所述步骤S20还包括:
步骤A,在优先级属性最高的BaseURL字段包括至少两个字段时,确定所述至少两个字段对应的服务节点的权重值属性;
步骤B,按照权重值属性的值以及预设随机变量函数,确定匹配区间;
步骤C,根据所述匹配区间与服务节点的映射关系,确定所述匹配区间所在的服务节点,并将确定的服务节点作为待下载媒体分片所在的服务节点。
在本实施方式中,在优先级属性最高的BaseURL字段包括两个或两个以上字段时,先确定该至少两个字段对应的服务节点的权重值属性的值,然后再获取系统预设的随机变量函数,根据权重值属性的值和该随机变量函数,确定匹配区间,最终根据所述匹配区间与服务节点的映射关系,确定所述匹配区间所在的服务节点,并将确定的服务节点作为待下载媒体分片所在的服务节点,具体的方式在上述方式二中详述,此处不进行赘述。
在本实施方式中,相当于是优先级属性最高的BaseURL字段包括多个字段时,进一步地分析这几个字段的权重值属性,根据权重值属性确定待下载媒体分片的服务节点,后续直接在确定的服务节点中下载媒体分片。此外,这种方式选取BaseURL可以保证每台DASN终端访问服务节点的概率与权重值属性匹配,且不会互相影响。
在本实施例中,当链表中包含的BaseURL包括多个时,需要先进行判断,并根据判断结果执行上文对应的任一个实施方式。应当理解的是,在链表中的BaseURL只有一个时,说明DASH终端只能从一个服务节点中下载媒体分片,那么DASH终端即可在该服务节点中下载媒体分片即可。
步骤S30,若在确定的服务节点中下载媒体分片失败时,根据剩余的各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点,以进行媒体分片的下载。
在本实施例中,媒体分片失败下载的情况包括:接收到因访问服务节点的BaseURL返回的网络错误信息,此时,说明可能发生Heavy server load(服务节点超负载),Missing segments(分片缺失),Connection or packet transfer('socket')timeout(连接或发包传输超时)等非致命错误,导致DASH终端机断开连接。在服务节点中下载媒体分片失败时,取消该BaseURL字段的访问权项,然后在剩余的各个BaseURL字段中,根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点,以进行媒体分片的下载,服务节点的确定方式上文已经详述,此处不再赘述。
在本实施例中,所述进行媒体分片的下载的步骤包括:
步骤D,获取确定的所述服务节点对应的统一资源定位符URL;
步骤E,基于所述服务节点的URL和BaseURL进行媒体分片的下载。
在本实施例中,在根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点之后,再获取确定的服务节点对应的统一资源定位符URL,然后基于所述服务节点的URL和BaseURL进行媒体分片的下载。具体地:将服务节点的BaseURL与URL进行拼接,拼接方式优选为在URL后面添加BaseURL,最终将拼接后的URL作为媒体分片的下载源,并将拼接后的URL送入下载队列中,以启动下载媒体分片。
在本实施例中,当媒体分片下载成功后,将下载的数据推送到缓冲区中,以进行播放。若下载失败,从链表中剔除BaseURL,以添 加到黑名单列表中。
本实施例提出的技术方案,终端先下载媒体描述文件,并对所述媒体描述文件进行解析以提取出各个服务节点的基础统一资源定位符BaseURL字段,然后查询各个BaseURL字段对应的字段属性,并根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点,若在确定的服务节点中下载媒体分片失败时,根据剩余的各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点,以进行媒体分片的下载,即使有服务节点发生故障,终端也可以在其它服务节点中下载媒体分片,无须在同一个服务节点中重复请求,避免视频播放卡顿的情况发生,提高了视频播放的流畅度和稳定性。
可以理解,本发明实施例通过解析XML格式的MPD文件中的BaseURL字段属性(包括优先级、比重等),自动选择服务节点进行媒体分片下载的切换,在保证用户观看流畅性的基础上,提高播放稳定性,提高播放器对于网络抖动的鲁棒性(网络过载或有意攻击情况下,能否不死机、不崩溃)。
进一步地,参照图6,基于第一实施例提出本发明媒体分片的下载方法的第二实施例。
媒体分片的下载方法的第二实施例与媒体分片的下载方法的第一实施例的区别在于,所述媒体分片的下载方法还包括:
步骤S40,将下载媒体分片失败的服务节点对应的BaseURL添加到黑名单列表中;
步骤S50,确定所述BaseURL的属性,将所述媒体描述文件中与所述BaseURL相同属性的BaseURL都追加到所述黑名单列表中,以取消所述属性的各个BaseURL的访问权项。
在本实施例中,所述步骤S40至步骤S50可在步骤S30之后执行;也可以在执行“根据剩余的各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点”的同时,执行步骤S40至步骤S50;此外,还可以在确定的服务节点中下载媒体分片失败时,确定 新的服务节点之前执行步骤S40至步骤S50,具体采用何种方式根据实际情况设定。
在本实施例中,对带有服务节点位置属性的BaseURL,假定当访问某个具体的baseURL值返回网络错误信息时,立刻将该BaseURL添加到黑名单列表中,并且把MPD文件中所有与该BaseUrl相同属性的BaseURL都追加到此黑名单列表,此时维护该黑名单列表blackList,对于在blacklist中的值,将不能进行访问。例如,当访问http://cdn2.example.com/period/"with@serviceLocation"B",http server返回错误值401,此时将avalible链表中的所有@serverLocation值为“B”的BaseURL全部追加到blacklist中。
在本实施例中,将访问失败的服务节点添加到黑名单列表,并在该视频的所有媒体分片播放过程中,都限制该服务节点的访问权限,以防止重复访问该服务节点造成的播放流畅度和稳定性降低。
需要说明的是,blackList存在内存中,只会影响该DASN终端机访问某个服务节点的权限,避免反复进行失败的请求。
进一步地,参照图7,基于第二实施例提出本发明媒体分片的下载方法的第三实施例。
媒体分片的下载方法的第三实施例与媒体分片的下载方法的第二实施例的区别在于,所述步骤S50之后,所述媒体分片的下载方法还包括:
步骤S60,在检测到所述媒体描述文件中所有服务节点的BaseURL都访问失败时,输出错误提示信息,以提示所述媒体描述文件的各个服务节点都不可用,并退出媒体播放。
在本实施例中,当最后一个baseURL访问仍然发生error,此时DASH终端机返回一个network error,并在预设区域输出错误提示信息,如在终端显示界面,或者应用界面输出错误提示信息,以提示所有媒体分片的各个服务节点都不可用,并退出媒体播放。
进一步地,所述方法还包括:
清除内存中存储的数据,清除黑名单列表中的数据。
本系统控制的核心就在于协调不同服务节点之间的负载均衡,最大限度避免Heavy server load,Missing segments,Connection or packet transfer('socket')timeout等非致命错误,导致DASH终端机断开连接,降低重连次数,降低同一个服务节点的访问量,最大限度保证每此时间分片能够正常下载,使得缓冲区数据维持在合理水平,实现媒体内容的流畅播放。
当某个媒体流文件有多个服务节点server时,DASH终端可以动态的按照server预设的比重去访问不同的server根据MPD文件中BaseURL中的priority/weight/serverLoaction三个属性,建立链表可访问的服务节点,当IPS(Internet Server Provider,互联网接入服务商)服务商不稳定,访问某个server失败时候,动态的根据serverLoaction属性添加限制访问级别,添加至另外一个黑名单列表,将该CDN临时限制访问,当媒体流文件的时间片段流完,主动释放黑名单列表,因此在播放媒体流文件时可以使这个生产-消费系统在带宽、CPU、内存等输入因素综合作用下趋于稳定,并可在一定程度内克服网络抖动、操作系统调度等产生的扰动,本文采用动态查找,随时更新链表和黑名单列表,可以在保证速度的情况下,极大地提高系统资源使用效率;经过试验,DASH播放连接速度提高了70%左右,而稳定性提高了80%以上(retry次数限制在1次以内)。
即本发明的技术方案,在MATLAB仿真软件上进行仿真,当取样样本>1000时,画出的概率分布趋于重合,很好的证明了该策略的有效性,在电视上冒烟压测发现视频断开重连的网络错误类型降低70%以上,大大的提高了播放的流畅性和稳定性。
此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有媒体分片的下载程序,所述媒体分片的下载程序被控制器执行时实现如以下操作:
下载媒体描述文件,对所述媒体描述文件进行解析以提取出各个服务节点的基础统一资源定位符BaseURL字段;
查询各个BaseURL字段对应的字段属性,并根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点;
若在确定的服务节点中下载媒体分片失败时,根据剩余的各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点,以进行媒体分片的下载。
进一步地,所述执行对所述媒体描述文件进行解析的同时,所述媒体分片的下载程序被控制器执行时,还实现以下操作:
建立链表和黑名单列表;
所述查询各个BaseURL字段对应的字段属性的步骤之后,所述媒体分片的下载被控制器执行时,还实现以下操作:
将各个BaseURL字段对应的字段属性以及字段内容存储到所述链表中。
进一步地,所述字段属性包括优先级属性、权重值属性和/或服务节点位置属性,所述媒体分片的下载程序被控制器执行时,还实现根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点的操作:
在字段属性中包含有优先级属性时,在所述链表中按照优先级属性的顺序对各个BaseURL字段进行排序;
提取出优先级属性最高的BaseURL字段,将所述优先级属性最高的BaseURL字段对应的服务节点作为待下载媒体分片所在的服务节点。
进一步地,所述媒体分片的下载程序被控制器执行时,还实现根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点的操作:
在字段属性中未包含优先级属性时,按照权重值属性的值以及预设随机变量函数,确定匹配区间;
根据所述匹配区间与服务节点的映射关系,确定所述匹配区间所在的服务节点,并将确定的服务节点作为待下载媒体分片所在的服务 节点。
进一步地,所述媒体分片的下载程序被控制器执行时,还实现按照权重值属性的值以及预设随机变量函数,确定匹配区间的操作:
调用预设随机变量函数产生随机数;
按照权重值属性的值以及所述随机变量函数,确定所述至少两个字段所在的区间;
将所述随机数位于的区间作为匹配区间。
进一步地,所述媒体分片的下载程序被控制器执行时,还实现进行媒体分片的下载的操作:
获取确定的所述服务节点对应的统一资源定位符URL;
基于所述服务节点的URL和BaseURL进行媒体分片的下载。
进一步地,所述媒体分片的下载程序被控制器执行时,还实现以下操作:
将下载媒体分片失败的服务节点对应的BaseURL添加到黑名单列表中;
确定所述BaseURL的属性,将所述媒体描述文件中与所述BaseURL相同属性的BaseURL都追加到所述黑名单列表中,以取消所述属性的各个BaseURL的访问权项。
进一步地,所述媒体分片的下载程序被控制器执行时,还实现以下操作:
在检测到所述媒体描述文件中所有服务节点的BaseURL都访问失败时,输出错误提示信息,以提示所述媒体描述文件的各个服务节点都不可用,并退出媒体播放。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (20)

  1. 一种媒体分片的下载方法,其特征在于,应用于终端,所述媒体分片的下载方法包括:
    下载媒体描述文件,对所述媒体描述文件进行解析以提取出各个服务节点的基础统一资源定位符BaseURL字段;
    查询各个BaseURL字段对应的字段属性,并根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点;
    若在确定的服务节点中下载媒体分片失败时,根据剩余的各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点,以进行媒体分片的下载。
  2. 如权利要求1所述的媒体分片的下载方法,其特征在于,所述执行对所述媒体描述文件进行解析的同时,执行以下步骤:
    建立链表和黑名单列表;
    所述查询各个BaseURL字段对应的字段属性的步骤之后,所述方法还包括:
    将各个BaseURL字段对应的字段属性以及字段内容存储到所述链表中。
  3. 如权利要求2所述的媒体分片的下载方法,其特征在于,所述字段属性包括优先级属性、权重值属性和/或服务节点位置属性,所述根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点的步骤包括:
    在字段属性中包含有优先级属性时,在所述链表中按照优先级属性的顺序对各个BaseURL字段进行排序;
    提取出优先级属性最高的BaseURL字段,将所述优先级属性最高的BaseURL字段对应的服务节点作为待下载媒体分片所在的服务节点。
  4. 如权利要求3所述的媒体分片的下载方法,其特征在于,所述根据各个BaseURL字段对应的字段属性确定待下载媒体分片所在的服务节点的步骤还包括:
    在字段属性中未包含优先级属性时,按照权重值属性的值以及预设随机变量函数,确定匹配区间;
    根据所述匹配区间与服务节点的映射关系,确定所述匹配区间所在的服务节点,并将确定的服务节点作为待下载媒体分片所在的服务节点。
  5. 如权利要求4所述的媒体分片的下载方法,其特征在于,所述按照权重值属性的值以及预设随机变量函数,确定匹配区间的步骤包括:
    调用预设随机变量函数产生随机数;
    按照权重值属性的值以及所述随机变量函数,确定所述至少两个字段所在的区间;
    将所述随机数位于的区间作为匹配区间。
  6. 如权利要求1所述的媒体分片的下载方法,其特征在于,所述进行媒体分片的下载的步骤包括:
    获取确定的所述服务节点对应的统一资源定位符URL;
    基于所述服务节点的URL和BaseURL进行媒体分片的下载。
  7. 如权利要求1所述的媒体分片的下载方法,其特征在于,所述方法还包括:
    将下载媒体分片失败的服务节点对应的BaseURL添加到黑名单列表中;
    确定所述BaseURL的属性,将所述媒体描述文件中与所述BaseURL相同属性的BaseURL都追加到所述黑名单列表中,以取消所述属性的各个BaseURL的访问权项。
  8. 如权利要求2所述的媒体分片的下载方法,其特征在于,所述方法还包括:
    将下载媒体分片失败的服务节点对应的BaseURL添加到黑名单列表中;
    确定所述BaseURL的属性,将所述媒体描述文件中与所述BaseURL相同属性的BaseURL都追加到所述黑名单列表中,以取消所述属性的各个BaseURL的访问权项。
  9. 如权利要求3所述的媒体分片的下载方法,其特征在于,所述方法还包括:
    将下载媒体分片失败的服务节点对应的BaseURL添加到黑名单列表中;
    确定所述BaseURL的属性,将所述媒体描述文件中与所述BaseURL相同属性的BaseURL都追加到所述黑名单列表中,以取消所述属性的各个BaseURL的访问权项。
  10. 如权利要求4所述的媒体分片的下载方法,其特征在于,所述方法还包括:
    将下载媒体分片失败的服务节点对应的BaseURL添加到黑名单列表中;
    确定所述BaseURL的属性,将所述媒体描述文件中与所述BaseURL相同属性的BaseURL都追加到所述黑名单列表中,以取消所述属性的各个BaseURL的访问权项。
  11. 如权利要求5所述的媒体分片的下载方法,其特征在于,所述方法还包括:
    将下载媒体分片失败的服务节点对应的BaseURL添加到黑名单列表中;
    确定所述BaseURL的属性,将所述媒体描述文件中与所述BaseURL相同属性的BaseURL都追加到所述黑名单列表中,以取消 所述属性的各个BaseURL的访问权项。
  12. 如权利要求6所述的媒体分片的下载方法,其特征在于,所述方法还包括:
    将下载媒体分片失败的服务节点对应的BaseURL添加到黑名单列表中;
    确定所述BaseURL的属性,将所述媒体描述文件中与所述BaseURL相同属性的BaseURL都追加到所述黑名单列表中,以取消所述属性的各个BaseURL的访问权项。
  13. 如权利要求7所述的媒体分片的下载方法,其特征在于,所述方法还包括:
    在检测到所述媒体描述文件中所有服务节点的BaseURL都访问失败时,输出错误提示信息,以提示所述媒体描述文件的各个服务节点都不可用,并退出媒体播放。
  14. 如权利要求8所述的媒体分片的下载方法,其特征在于,所述方法还包括:
    在检测到所述媒体描述文件中所有服务节点的BaseURL都访问失败时,输出错误提示信息,以提示所述媒体描述文件的各个服务节点都不可用,并退出媒体播放。
  15. 如权利要求9所述的媒体分片的下载方法,其特征在于,所述方法还包括:
    在检测到所述媒体描述文件中所有服务节点的BaseURL都访问失败时,输出错误提示信息,以提示所述媒体描述文件的各个服务节点都不可用,并退出媒体播放。
  16. 如权利要求10所述的媒体分片的下载方法,其特征在于,所述方法还包括:
    在检测到所述媒体描述文件中所有服务节点的BaseURL都访问失败时,输出错误提示信息,以提示所述媒体描述文件的各个服务节点都不可用,并退出媒体播放。
  17. 如权利要求11所述的媒体分片的下载方法,其特征在于,所述方法还包括:
    在检测到所述媒体描述文件中所有服务节点的BaseURL都访问失败时,输出错误提示信息,以提示所述媒体描述文件的各个服务节点都不可用,并退出媒体播放。
  18. 如权利要求12所述的媒体分片的下载方法,其特征在于,所述方法还包括:
    在检测到所述媒体描述文件中所有服务节点的BaseURL都访问失败时,输出错误提示信息,以提示所述媒体描述文件的各个服务节点都不可用,并退出媒体播放。
  19. 一种终端,其特征在于,所述终端包括存储器、解析器、控制器及存储在所述存储器上并可在所述控制器上运行的媒体分片的下载程序,所述媒体分片的下载程序被所述控制器执行时实现如权利要求1所述的媒体分片的下载方法的步骤。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有媒体分片的下载程序,所述媒体分片的下载程序被控制器执行时实现如权利要求1所述的媒体分片的下载方法的步骤。
PCT/CN2017/110796 2017-06-22 2017-11-14 媒体分片的下载方法、终端和计算机可读存储介质 WO2018233190A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710486114.5 2017-06-22
CN201710486114.5A CN107040615B (zh) 2017-06-22 2017-06-22 媒体分片的下载方法、终端和计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2018233190A1 true WO2018233190A1 (zh) 2018-12-27

Family

ID=59541383

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/110796 WO2018233190A1 (zh) 2017-06-22 2017-11-14 媒体分片的下载方法、终端和计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN107040615B (zh)
WO (1) WO2018233190A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040615B (zh) * 2017-06-22 2021-07-02 深圳Tcl数字技术有限公司 媒体分片的下载方法、终端和计算机可读存储介质
CN107682436A (zh) * 2017-10-09 2018-02-09 武汉斗鱼网络科技有限公司 一种更新文件的方法、装置和设备
CN110087109B (zh) * 2019-04-19 2020-09-29 中国科学院信息工程研究所 视频码率自适应方法、装置、电子设备及存储介质
CN112199340A (zh) * 2020-10-23 2021-01-08 深圳市欢太科技有限公司 一种多线程文件下载方法、装置、电子设备及存储介质
CN114372174A (zh) * 2022-01-13 2022-04-19 集美大学 一种xml文档分布式查询方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702592A (zh) * 2015-01-08 2015-06-10 三星电子(中国)研发中心 流媒体下载方法和装置
CN105340244A (zh) * 2013-06-27 2016-02-17 思科技术公司 基于来自暂态准则的上下文的动态内容分发网络选择
CN105915945A (zh) * 2015-12-08 2016-08-31 乐视云计算有限公司 用于cdn平台的内容分发方法及调度代理服务器
CN107040615A (zh) * 2017-06-22 2017-08-11 深圳Tcl数字技术有限公司 媒体分片的下载方法、终端和计算机可读存储介质

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7565533B2 (en) * 2002-11-05 2009-07-21 Sun Microsystems, Inc. Systems and methods for providing object integrity and dynamic permission grants
KR101206111B1 (ko) * 2010-09-06 2012-11-28 한국항공대학교산학협력단 스트리밍 콘텐츠 제공 장치 및 방법
US9661104B2 (en) * 2011-02-07 2017-05-23 Blackberry Limited Method and apparatus for receiving presentation metadata
MX346306B (es) * 2012-06-25 2017-03-15 Lg Electronics Inc Aparato y método para procesamiento de un servicio interactivo.
GB2512310A (en) * 2013-03-25 2014-10-01 Sony Corp Media Distribution
CN104219261A (zh) * 2013-05-30 2014-12-17 鸿富锦精密工业(深圳)有限公司 文件下载方法及系统
CN103763209A (zh) * 2014-01-03 2014-04-30 上海聚力传媒技术有限公司 一种cdn服务器的调度方法与装置
CN104320679B (zh) * 2014-10-11 2019-02-15 中兴通讯股份有限公司 一种基于hls协议的用户信息获取方法和服务器
CN105100964A (zh) * 2015-07-07 2015-11-25 安一恒通(北京)科技有限公司 多媒体内容的处理方法、客户端及服务器
US10652603B2 (en) * 2015-07-09 2020-05-12 Triton Us Vp Acquision Co. Transitioning between broadcast and unicast streams

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105340244A (zh) * 2013-06-27 2016-02-17 思科技术公司 基于来自暂态准则的上下文的动态内容分发网络选择
CN104702592A (zh) * 2015-01-08 2015-06-10 三星电子(中国)研发中心 流媒体下载方法和装置
CN105915945A (zh) * 2015-12-08 2016-08-31 乐视云计算有限公司 用于cdn平台的内容分发方法及调度代理服务器
CN107040615A (zh) * 2017-06-22 2017-08-11 深圳Tcl数字技术有限公司 媒体分片的下载方法、终端和计算机可读存储介质

Also Published As

Publication number Publication date
CN107040615B (zh) 2021-07-02
CN107040615A (zh) 2017-08-11

Similar Documents

Publication Publication Date Title
US20180205976A1 (en) Method and apparatus of obtaining video fragment
CN110198307B (zh) 一种移动边缘计算节点的选择方法、装置及系统
WO2018233190A1 (zh) 媒体分片的下载方法、终端和计算机可读存储介质
KR102262982B1 (ko) 라이브 스트림 슬라이싱 방법, 장치 및 시스템
US10110507B2 (en) Push-based transmission of resources and correlated network quality estimation
US8756296B2 (en) Method, device and system for distributing file data
US8402158B2 (en) Adaptive variable fidelity media distribution system and method
US20140165119A1 (en) Offline download method, multimedia file download method and system thereof
US8589477B2 (en) Content information display device, system, and method used for creating content list information based on a storage state of contents in a cache
EP2493191B1 (en) Method, device and system for realizing hierarchically requesting content in http streaming system
US20110067074A1 (en) Method, device, and system for playing media based on p2p
US20110113124A1 (en) Method and device for downloading multimedia contents at high speed in the internet
WO2011088725A1 (zh) 基于http的同步方法和装置
US20140344901A1 (en) Method And System For Sharing A File
US20110082943A1 (en) P2p network system and data transmitting and receiving method thereof
US20240106891A1 (en) Peer-to-peer network scheduling method and system
US20240106890A1 (en) Peer-to-peer network scheduling method and system
US20160301625A1 (en) Intelligent High-Volume Cloud Application Programming Interface Request Caching
US9882794B2 (en) Method, media type server and terminal device for identifying service request type
US8583819B2 (en) System and method for controlling server usage in peer-to-peer (P2P) based streaming service
US20120254919A1 (en) Method for acquiring program content and set top box
US9071954B2 (en) Wireless optimized content delivery network
KR20150011087A (ko) 컨텐츠 전송 서비스를 위한 분산 캐싱 관리 방법 및 이를 위한 중앙 관리 장치
WO2023274267A1 (zh) 内容资源分发方法、内容分发网络、集群及介质
US20120150999A1 (en) Access of media content via media communication system

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: 17914935

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: 17914935

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 04/05/2020)