WO2020177468A1 - Method and apparatus for controlling content presentation, and server and storage medium - Google Patents

Method and apparatus for controlling content presentation, and server and storage medium Download PDF

Info

Publication number
WO2020177468A1
WO2020177468A1 PCT/CN2019/130258 CN2019130258W WO2020177468A1 WO 2020177468 A1 WO2020177468 A1 WO 2020177468A1 CN 2019130258 W CN2019130258 W CN 2019130258W WO 2020177468 A1 WO2020177468 A1 WO 2020177468A1
Authority
WO
WIPO (PCT)
Prior art keywords
content
playback
restricted
playlist file
display
Prior art date
Application number
PCT/CN2019/130258
Other languages
French (fr)
Chinese (zh)
Inventor
刘秀萍
李锐
童浩
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2020177468A1 publication Critical patent/WO2020177468A1/en

Links

Images

Classifications

    • 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/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/2625Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for delaying content or additional data distribution, e.g. because of an extended sport event
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26258Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • 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
    • 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
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • 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/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed are a method and apparatus for controlling content presentation, and a server and a storage medium. The method comprises: receiving a playing request URL sent by a terminal; parsing the playing request URL to obtain presentation limitation policy-related information carried in the playing request URL; generating a first play list file according to the presentation limitation policy-related information; and sending the first play list file to the terminal, wherein the first play list file is used for controlling the content playing and presentation of the terminal.

Description

内容展示的控制方法、装置、服务器及存储介质Content display control method, device, server and storage medium 技术领域Technical field
本公开涉及(但不限于)信息展示技术领域。The present disclosure relates to (but not limited to) the field of information display technology.
背景技术Background technique
随着互联网的快速发展和普及,用户获取资源的渠道和方式更加丰富多样,随时随地都可以观看获取的资源的内容,比如媒体流。在此基础上,内容运营商希望能够灵活、有效、精准的控制内容的呈现,丰富内容呈现方式。With the rapid development and popularization of the Internet, the channels and methods for users to obtain resources are more abundant and diverse, and the content of the obtained resources, such as media streams, can be watched anytime and anywhere. On this basis, content operators hope to be able to control the presentation of content flexibly, effectively, and accurately, and enrich the way of content presentation.
相关技术中,可以通过用户分组的方式或者终端实现的方式,对内容的呈现进行控制。然而,相关技术中内容呈现的控制方法均无法满足内容运营商的复杂需求,比如,对于某频道来说,不允许内容在特定时间段、特定区域进行播放;再比如,对于某视频内容来说,存在仅在特定地区进行播放等复杂条件的限制。In related technologies, the presentation of content can be controlled by means of user grouping or terminal implementation. However, none of the methods for controlling content presentation in related technologies can meet the complex needs of content operators. For example, for a certain channel, content is not allowed to be played in a specific time period or in a specific area; for another example, for a certain video content , There are restrictions on complicated conditions such as playing only in specific areas.
显然,相关技术无法实现对内容呈现的灵活、有效、精确的控制,以满足内容运营商的复杂需求。Obviously, related technologies cannot achieve flexible, effective, and precise control of content presentation to meet the complex needs of content operators.
发明内容Summary of the invention
本公开实施例提供了一种内容展示的控制方法,应用于服务器,包括:接收终端发送的播放请求统一资源定位符(URL,Uniform Resource Locator);解析所述播放请求URL,获得所述播放请求URL中携带的展示受限策略相关信息;根据所述展示受限策略相关信息,生成第一播放列表文件;以及将所述第一播放列表文件发送至所述终端,其中,所述第一播放列表文件用于控制所述终端的内容播放展示。The embodiment of the present disclosure provides a content display control method, which is applied to a server, and includes: receiving a uniform resource locator (URL, Uniform Resource Locator) for a playback request sent by a terminal; parsing the playback request URL to obtain the playback request Information related to the display restricted policy carried in the URL; generate a first playlist file according to the relevant information of the display restricted policy; and send the first playlist file to the terminal, wherein the first playlist The list file is used to control the content playback and display of the terminal.
本公开实施例还提供了一种内容展示的控制装置,包括:接收单元,用于接收终端发送的播放请求URL;解析单元,用于解析所述播放请求URL,获得所述播放请求URL中携带的展示受限策略相关信息;生成单元,用于根据所述展示受限策略相关信息,生成第一播放列表文件;以及发送单元,用于将所述第一播放列表文件发送至所述 终端,其中,所述第一播放列表文件用于控制所述终端的内容播放展示。The embodiment of the present disclosure also provides a content display control device, including: a receiving unit, configured to receive a playback request URL sent by a terminal; and a parsing unit, configured to parse the playback request URL to obtain the playback request URL carried Information related to the display restricted strategy; a generating unit for generating a first playlist file according to the information related to the display restricted strategy; and a sending unit for sending the first playlist file to the terminal, Wherein, the first playlist file is used to control content playback and display of the terminal.
本公开实施例还提供了一种服务器,包括:处理器和用于存储能够在所述处理器上运行的计算机程序的存储器,其中,所述处理器用于运行所述计算机程序时,执行本公开实施例提供的内容展示的控制方法的步骤。The embodiment of the present disclosure also provides a server, including: a processor and a memory for storing a computer program that can run on the processor, where the processor is used to run the computer program to execute the present disclosure The embodiment provides the steps of the content display control method.
本公开实施例还提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器实现本公开实施例提供的内容展示的控制方法的步骤。The embodiment of the present disclosure further provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the processor realizes the steps of the content display control method provided by the embodiment of the present disclosure.
附图说明Description of the drawings
图1为根据本公开实施例的服务器侧的内容展示的控制方法的实现流程示意图;FIG. 1 is a schematic diagram of an implementation process of a method for controlling content display on a server side according to an embodiment of the present disclosure;
图2为根据本公开实施例的服务器侧的内容展示的控制方法的另一实现流程示意图;FIG. 2 is a schematic diagram of another implementation process of a method for controlling content display on a server side according to an embodiment of the present disclosure;
图3为根据本公开实施例的内容展示的控制方法的实现流程示意图;Fig. 3 is a schematic diagram of an implementation flow of a content display control method according to an embodiment of the present disclosure;
图4为根据本公开实施例的内容展示的控制方法的另一实现流程示意图;FIG. 4 is a schematic diagram of another implementation process of a content display control method according to an embodiment of the present disclosure;
图5为根据本公开实施例的频道播放展示的控制方法的实现流程示意图;FIG. 5 is a schematic diagram of an implementation process of a method for controlling channel playback and display according to an embodiment of the present disclosure;
图6为根据本公开实施例的内容播放频道往前时移1分钟时对应的内容展示的控制方法的实现流程示意图;FIG. 6 is a schematic diagram of the implementation process of the control method of the content display corresponding to the time shift of the content playing channel forward by 1 minute according to the embodiment of the present disclosure;
图7为根据本公开实施例的内容播放频道往前时移2分钟时对应的内容展示的控制方法的实现流程示意图;FIG. 7 is a schematic diagram of the implementation process of the control method of the corresponding content display when the content playback channel is shifted forward by 2 minutes according to an embodiment of the present disclosure;
图8A至图8C为当前播放频道分片示意图;8A to 8C are schematic diagrams of current broadcast channel fragmentation;
图8D为频道往前时移1分钟的分片示意图;FIG. 8D is a schematic diagram of a fragmentation of the channel moving forward by 1 minute;
图8E为频道往前时移2分钟的分片示意图;FIG. 8E is a schematic diagram of a fragmentation of a channel moving forward by 2 minutes;
图9为根据本公开实施例的设置在服务器上的内容展示的控制装置的结构示意图;Fig. 9 is a schematic structural diagram of a content display control device set on a server according to an embodiment of the present disclosure;
图10为根据本公开实施例的服务器的结构示意图;以及FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present disclosure; and
图11为根据本公开实施例的内容展示的控制系统的结构示意图。Fig. 11 is a schematic structural diagram of a content display control system according to an embodiment of the present disclosure.
具体实施方式detailed description
为了能够更加详尽地了解本公开实施例的特点与技术内容,下面将结合附图及实施例对本公开的实现进行清楚、完整的阐述,所附附图仅供参考说明之用,并非用来限定本公开。In order to have a more detailed understanding of the features and technical content of the embodiments of the present disclosure, the implementation of the present disclosure will be explained clearly and completely with reference to the accompanying drawings and embodiments. The attached drawings are for reference only and are not intended to limit This disclosure.
需要说明的是,在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。It should be noted that in the following description, “some embodiments” are involved, which describe a subset of all possible embodiments, but it is understood that “some embodiments” may be the same subset or the same subset of all possible embodiments. Different subsets, and can be combined with each other without conflict.
目前,互联网公司越过运营商,发展基于开放互联网的各种视频及数据服务业务(OTT,Over The Top)越来越多的深入到用户的日常工作和生活中,通过互联网向用户提供各种应用服务,且这种应用和目前运营商所提供的通信业务不同,其仅利用运营商的网络,而服务由运营商之外的第三方提供。目前,典型的OTT业务有OTT视频、苹果应用商店等。At present, Internet companies have surpassed operators to develop various video and data service services (OTT, Over The Top) based on the open Internet, and more and more go deep into the daily work and life of users, and provide users with various applications through the Internet. Service, and this kind of application is different from the current communication service provided by the operator. It only uses the operator's network, and the service is provided by a third party other than the operator. At present, typical OTT services include OTT video and Apple App Store.
通过仔细研究,申请人发现:目前的OTT系统对内容的呈现进行控制的方式,可以归纳为以下两类:第一类,对播放内容如视频在播放前进行限制,主要表现方式有:通过用户分组的方式对内容的呈现进行控制,具体地,按照游客、会员、VIP、黄金会员等类别,将用户划分为几个组别,根据每个组别中的用户所具有的对播放内容的观看权限,控制呈现给用户的内容;第二类,通过终端实现的方式对内容的呈现进行控制,具体地,关闭终端之前播放的原视频流音频,在原视频流上覆盖展示特定的静态图片或视频,以实现对内容呈现的控制。Through careful research, the applicant found that: the current OTT system controls the presentation of content, which can be summarized into the following two categories: The first category restricts playback content such as video before playback. The main manifestations are: through the user The way of grouping controls the presentation of content. Specifically, users are divided into several groups according to categories such as tourists, members, VIPs, and gold members, and users in each group have their viewing of the content. Permission, controlling the content presented to the user; the second category, controlling the presentation of content through the terminal implementation, specifically, closing the original video stream audio played before the terminal, and overlaying and displaying specific static pictures or videos on the original video stream , In order to realize the control of content presentation.
对于第一类方式来说,只是粗略地将用户划分为几个组别,组别划分的条件比较单一,导致对内容呈现控制粗放,并且不能根据用户需求对各个组别进行灵活调整,从而不能灵活控制内容呈现。For the first type of method, users are only roughly divided into several groups. The conditions for group division are relatively simple, resulting in extensive control of content presentation, and it is impossible to flexibly adjust each group according to user needs. Flexible control of content presentation.
对于第二类方式来说,可以理解为终端是根据策略来控制视频 流的播放,且对策略每增加一种限制,终端都需要进行一次改动,导致该方法实现复杂度高、成本高;终端的限制策略通常是在某一个时机出现的,不能立即生效,导致该方法的实时性差;实际应用时,当视频流播放受限时,实际上视频流已经被下拉至终端,因此不能对视频流的展示进行有效控制,尤其是对于时移或回看的视频流无法进行有效控制,安全性差。可见,上述第二类方式的实现成本高且不安全。For the second type of method, it can be understood that the terminal controls the playback of the video stream according to the strategy, and each time a restriction is added to the strategy, the terminal needs to be changed once, which leads to the high complexity and high cost of this method. The restriction strategy usually occurs at a certain time and cannot take effect immediately, resulting in poor real-time performance of the method; in actual application, when the video stream is restricted, the video stream has actually been pulled down to the terminal, so the video stream cannot be Effective control of the display, especially for time-shifted or replayed video streams cannot be effectively controlled, and the security is poor. It can be seen that the implementation cost of the above-mentioned second method is high and unsafe.
然而,实际应用时,内容运营商对内容的呈现有复杂的需求,如对内容的播放区域、播放时间段等条件的限制,此时需要根据这些复杂的需求,灵活、有效、精确的控制内容的呈现。显然,相关技术中,目前尚没有提出一种可以实现对内容呈现的灵活、有效、精确的控制,以满足内容运营商的复杂需求的解决方案。However, in actual applications, content operators have complex requirements for the presentation of content, such as restrictions on the content's playing area, playing time period and other conditions. At this time, it is necessary to control the content flexibly, effectively and accurately according to these complex requirements. The presentation. Obviously, in related technologies, there is currently no solution that can achieve flexible, effective, and precise control of content presentation to meet the complex needs of content operators.
基于此,在本公开的各种实施例中,解析播放请求URL中的展示受限策略相关信息,基于展示受限策略相关信息生成第一播放列表文件,并通过第一播放列表文件实现在内容播放源端(如CDN控制系统侧)内容的动态展示,从而能够灵活、有效、精准的控制输出的内容比如媒体流的播放展示,满足内容运营商的复杂需求。Based on this, in various embodiments of the present disclosure, the display restriction strategy related information in the playback request URL is parsed, and the first playlist file is generated based on the display restriction strategy related information, and the first playlist file is implemented in the content through the first playlist file. The dynamic display of content at the playback source end (such as the CDN control system side) can flexibly, effectively and accurately control the playback and display of output content, such as media streams, to meet the complex needs of content operators.
下面结合附图对本公开实施例中内容展示的控制方法的实现过程做进一步说明。The implementation process of the control method shown in the embodiments of the present disclosure will be further described below in conjunction with the accompanying drawings.
图1为根据本公开实施例的服务器侧的内容展示的控制方法的实现流程示意图,所述内容展示的控制方法可应用于服务器,比如内容分发网络(CDN,Content Delivery Network)控制服务器。如图1所示,本公开实施例中提供的内容展示的控制方法的实现流程可以包括以下步骤S101至S104。FIG. 1 is a schematic diagram of an implementation flow of a method for controlling content presentation on a server side according to an embodiment of the present disclosure. The method for controlling content presentation may be applied to a server, such as a content delivery network (CDN, Content Delivery Network) control server. As shown in FIG. 1, the implementation process of the content display control method provided in the embodiment of the present disclosure may include the following steps S101 to S104.
在步骤S101,接收终端发送的播放请求URL。In step S101, the playback request URL sent by the terminal is received.
这里,所述播放请求URL用于指示播放请求的内容的数据源地址。所述终端可以包括但不限于智能手机、平板电脑、掌上电脑等具有播放器的电子设备。Here, the playback request URL is used to indicate the data source address of the content of the playback request. The terminal may include, but is not limited to, electronic devices with players such as smart phones, tablet computers, and palmtop computers.
在步骤S102,解析所述播放请求URL,获得所述播放请求URL中携带的展示受限策略相关信息。In step S102, the playback request URL is parsed to obtain the display restriction policy related information carried in the playback request URL.
这里,实际应用时,服务器在接收到终端发送的播放请求URL 后,对所述播放请求URL进行解析时,由于所述播放请求URL中配置了当前内容展示的受限条件,即所述播放请求URL中携带了针对播放内容的展示受限策略相关信息,这样,通过对所述播放请求URL进行解析,就可以方便获取到播放内容的展示受限策略相关信息。所述播放内容可以包括视频、静态图片等,视频可以为OTT视频。Here, in actual application, when the server parses the playback request URL after receiving the playback request URL sent by the terminal, because the playback request URL is configured with the current content display restricted conditions, that is, the playback request The URL carries information about the display restriction strategy for the playback content. In this way, by parsing the playback request URL, the display restriction strategy related information for the playback content can be easily obtained. The playback content may include videos, static pictures, etc., and the video may be an OTT video.
这里,所述播放内容的展示受限策略相关信息包括以下至少之一:用户分组;终端特征信息;播放区域;播放频道;播放时间段等。Here, the information related to the display restriction strategy of the play content includes at least one of the following: user grouping; terminal feature information; play area; play channel; play time period, etc.
所述终端特征信息包括以下至少之一:终端IP段;终端类型等。The terminal feature information includes at least one of the following: terminal IP segment; terminal type, etc.
具体来说,所述终端IP段是指终端的IP地址所属的段IP地理信息,举例来说,段IP1为1.1.1.0至1.1.1.255的地理信息对应的是广东省深圳市,段IP2为1.1.3.0至1.1.3.255的地理信息对应的是广东省东莞市,若当前终端的IP地址为1.1.1.201,则可以确定当前终端的IP地址属于段IP1。对于所述终端类型,根据终端支持的操作系统的不同,可以将终端分为支持安卓(Android)系统的终端和支持iOS系统的终端。Specifically, the terminal IP segment refers to the segment of IP geographic information to which the IP address of the terminal belongs. For example, the geographic information of the segment IP1 from 1.1.1.0 to 1.1.1.255 corresponds to Shenzhen, Guangdong Province, and the segment IP2 is The geographic information from 1.1.3.0 to 1.1.3.255 corresponds to Dongguan City, Guangdong Province. If the IP address of the current terminal is 1.1.1.201, it can be determined that the IP address of the current terminal belongs to the segment IP1. For the terminal types, according to different operating systems supported by the terminal, the terminal can be divided into a terminal supporting the Android system and a terminal supporting the iOS system.
可以理解的是,实际应用时,所述终端类型并不仅限于上述划分的类型,本公开实施例对此不作进一步的限定。It can be understood that, in actual applications, the terminal type is not limited to the above-mentioned divided types, and the embodiment of the present disclosure does not further limit this.
在步骤S103,根据所述展示受限策略相关信息,生成第一播放列表文件。In step S103, a first playlist file is generated according to the information related to the display restriction policy.
在步骤S104,将所述第一播放列表文件发送至所述终端。In step S104, the first playlist file is sent to the terminal.
这里,所述第一播放列表文件用于控制所述终端的内容播放展示。换句话说,服务器将生成的第一播放列表文件发送至终端,以供所述终端基于接收到的所述第一播放列表文件请求进行播放展示。Here, the first playlist file is used to control the content playback and display of the terminal. In other words, the server sends the generated first playlist file to the terminal, so that the terminal can play and display based on the received first playlist file request.
在一些实施例中,所述第一播放列表文件可以采用M3U8格式的文件表示,当然并非仅限定于M3U8格式的文件,还可以采用其它格式的文件来表示第一播放列表文件,这里不做限定。In some embodiments, the first playlist file may be represented by a file in M3U8 format. Of course, it is not limited to files in M3U8 format, and files in other formats may also be used to represent the first playlist file, which is not limited here. .
实际应用时,当所述第一播放列表文件以M3U8格式表示时,终端请求从所述第一播放列表文件中选择播放的实体文件即实际播放的文件内容可以以分片的形式存储在服务器中。In actual application, when the first playlist file is expressed in the M3U8 format, the terminal requests to select the entity file to be played from the first playlist file, that is, the actual file content that is played can be stored in the server in the form of fragments .
实际应用时,所述服务器如CDN控制服务器需要获取受限策略 管理服务器同步的针对所述播放内容的展示受限策略,以便CDN控制服务器根据展示受限策略相关信息与展示受限策略的匹配结果,生成第一播放列表文件,从而就可以控制终端的内容播放展示。In actual application, the server, such as the CDN control server, needs to obtain the display restriction policy for the playback content synchronized by the restriction policy management server, so that the CDN control server can match the display restriction policy with the information related to the display restriction policy. , Generate the first playlist file, so that you can control the content playback and display of the terminal.
基于此,在一些实施例中,如图2所示,图2为根据本公开实施例提供的服务器侧的内容展示的控制方法的另一实现流程示意图,该方法还可以包括步骤S105。Based on this, in some embodiments, as shown in FIG. 2, FIG. 2 is a schematic diagram of another implementation process of the method for controlling content display on the server side according to an embodiment of the present disclosure. The method may further include step S105.
在步骤S105,获取配置的针对播放内容的展示受限策略。In step S105, the configured display restriction strategy for the content to be played is acquired.
这里,所述展示受限策略是由受限策略管理服务器根据内容运营商的需求预先配置的,并在配置完成后实时同步至CDN控制服务器。也就是说,CDN控制服务器获取所述展示受限策略的步骤,实际上为CDN控制服务器获取受限策略管理服务器预先配置的展示受限策略。Here, the display restricted policy is pre-configured by the restricted policy management server according to the requirements of the content operator, and is synchronized to the CDN control server in real time after the configuration is completed. That is to say, the step of the CDN control server obtaining the display restriction policy actually obtains the display restriction policy pre-configured by the restriction policy management server for the CDN control server.
这里,所述展示受限策略可以包括第一受限条件和第二受限条件。Here, the display restriction strategy may include a first restriction condition and a second restriction condition.
所述第一受限条件用于表示基于用户对应的特征信息设置的受限条件,比如,基于内容的受众范围进行设置,或者基于用户持有的终端进行设置等,所述第一受限条件可以包括用户分组受限;终端特征信息受限;播放区域受限等;所述第二受限条件用于表示基于用户需求设置的受限条件,比如,基于用户希望在哪个时间段内观看内容的需求进行设置,或者基于用户想要观看哪个频道的内容的需求进行设置等,所述第二受限条件可以包括播放频道受限和播放时间段受限。The first restricted condition is used to indicate a restricted condition set based on the characteristic information corresponding to the user, for example, setting based on the audience range of the content, or setting based on the terminal held by the user, etc., the first restricted condition It may include restricted user grouping; restricted terminal feature information; restricted playback area, etc.; the second restricted condition is used to indicate restricted conditions set based on user needs, for example, based on the time period the user wants to watch content The second restriction condition may include the limitation of the broadcasting channel and the limitation of the broadcasting time period, etc. based on the requirements of the content of which channel the user wants to watch.
这里,所述终端特征信息受限包括终端IP段受限和终端类型受限。Here, the terminal characteristic information limitation includes terminal IP segment limitation and terminal type limitation.
实际应用时,所述展示受限策略可以是多种受限条件的灵活组合,以满足内容运营商的复杂需求,扩大应用范围。In actual application, the display restriction strategy may be a flexible combination of multiple restriction conditions to meet the complex needs of content operators and expand the application range.
需要说明的是,本公开实施例对步骤S101与步骤S105的执行顺序不进行限定,比如,可以先执行步骤S105,再执行步骤S101,也就是说,服务器先获取展示受限策略,然后再接收终端发送的播放请求URL,对所述播放请求URL进行解析,获得展示受限策略相关信息(如图2所示);再比如,可以先执行步骤S101,再执行步骤S105,也就是说,服务器先接收终端发送的播放请求URL,对所述播放请求 URL进行解析,获得展示受限策略相关信息,然后再获取展示受限策略。It should be noted that the embodiment of the present disclosure does not limit the execution order of step S101 and step S105. For example, step S105 may be executed first, and then step S101 may be executed, that is, the server first obtains the display restriction policy, and then receives The playback request URL sent by the terminal analyzes the playback request URL to obtain information about the display restriction strategy (as shown in Figure 2); for another example, step S101 can be performed first, and then step S105 can be performed, that is, the server The playback request URL sent by the terminal is received first, and the playback request URL is parsed to obtain information related to the display restricted policy, and then the display restricted policy is acquired.
在一些实施例中,步骤S103中的根据所述展示受限策略相关信息,生成第一播放列表文件的具体实现过程可以包括:将所述展示受限策略相关信息与所述展示受限策略进行匹配,获得匹配结果;以及根据所述匹配结果,生成第一播放列表文件。In some embodiments, the specific implementation process of generating the first playlist file according to the information related to the display restriction strategy in step S103 may include: performing the information related to the display restriction strategy with the display restriction policy. Matching to obtain a matching result; and generating a first playlist file according to the matching result.
实际应用时,根据匹配结果生成第一播放列表文件的过程中,当所述匹配结果符合不同的受限条件时,服务器生成第一播放列表文件的过程也有所不同。相应的,服务器所生成的第一播放列表文件的内容也存在差异。In actual application, in the process of generating the first playlist file according to the matching result, when the matching result meets different restricted conditions, the process of generating the first playlist file by the server is also different. Correspondingly, there are differences in the content of the first playlist file generated by the server.
在一些实施例中,根据所述匹配结果,生成第一播放列表文件的步骤可以包括:所述匹配结果符合第一受限条件时,生成第一特定内容对应的第一播放列表文件;以及所述第一特定内容用于表示所述第一受限条件内允许播放的内容。In some embodiments, the step of generating a first playlist file according to the matching result may include: when the matching result meets the first restricted condition, generating a first playlist file corresponding to the first specific content; and The first specific content is used to indicate content that is allowed to be played within the first restricted condition.
也就是说,当服务器比如CDN控制服务器将所述展示受限策略相关信息与所述展示受限策略进行匹配时,若确定所述匹配结果符合第一受限条件,即匹配结果为用户分组受限/终端特征信息受限/播放区域受限中的至少一个时,换句话说,内容运营商对内容的播放面向对象、播放终端、播放区域中的至少一个条件进行了限制,此时,CDN控制服务器将生成第一特定内容对应的第一播放列表文件,并将所述第一特定内容对应的第一播放列表文件返回给终端。That is to say, when a server such as a CDN control server matches the display restricted policy related information with the display restricted policy, if it is determined that the matching result meets the first restricted condition, that is, the matching result is the user group receiving In other words, the content operator restricts at least one of the object-oriented playback of the content, the playback terminal, and the playback area. At this time, the CDN The control server will generate a first playlist file corresponding to the first specific content, and return the first playlist file corresponding to the first specific content to the terminal.
这里,所述第一特定内容用于表示受限的用户分组、终端特征信息、播放区域内所允许播放的内容,即替换受限的用户分组、终端特征信息、播放区域对应的播放内容。比如,确定某视频内容A在区域a不允许播放,那么,CDN控制服务器生成的第一特定内容如视频内容B能够在区域a进行播放,并将视频内容A替换为视频内容B;也就是说,视频内容B为区域a内允许播放的内容。Here, the first specific content is used to indicate restricted user groups, terminal characteristic information, and content allowed to be played in the play area, that is, to replace restricted user groups, terminal characteristic information, and play content corresponding to the play area. For example, if it is determined that a certain video content A is not allowed to be played in area a, then the first specific content generated by the CDN control server, such as video content B, can be played in area a, and video content A is replaced with video content B; , Video content B is the content allowed to be played in area a.
所述第一特定内容可以是系统默认的内容,也可以是服务器根据需要确定的内容,比如对应所述展示受限策略配置的内容,本公开实施例对此不作进一步的限定。The first specific content may be the default content of the system, or the content determined by the server as required, such as the content corresponding to the display restriction policy configuration, which is not further limited in the embodiment of the present disclosure.
实际应用时,CDN控制服务器可以根据需要对所述第一特定内容进行灵活修改。In actual application, the CDN control server can flexibly modify the first specific content as required.
在一些实施例中,根据所述匹配结果,生成第一播放列表文件的步骤可以包括:所述匹配结果符合第二受限条件时,根据当前正在播放的播放内容包含的分片的播放时间点与所述第二受限条件的关系、以及发送所述播放请求URL的当前时间点与所述第二受限条件的关系,生成所述第一播放列表文件。In some embodiments, the step of generating the first playlist file according to the matching result may include: when the matching result meets the second restricted condition, according to the playback time point of the segment included in the currently playing content The relationship with the second restricted condition and the relationship between the current time point when the playback request URL is sent and the second restricted condition are generated to generate the first playlist file.
也就是说,当CDN控制服务器将所述展示受限策略相关信息与所述展示受限策略进行匹配时,若确定所述匹配结果符合第二受限条件,比如匹配结果为播放时间段受限时,换句话说,内容运营商对内容在特定时间段不允许播放,此时,CDN控制服务器将根据当前正在播放的播放内容包含的分片的播放时间点与第二受限条件的关系、以及发送播放请求URL的当前时间点与第二受限条件的关系,生成第一播放列表文件,并将所生成的第一播放列表文件返回给终端。That is, when the CDN control server matches the display restriction policy related information with the display restriction policy, if it is determined that the matching result meets the second restriction condition, for example, the matching result is that the playing time period is restricted In other words, the content operator does not allow the content to be played during a specific time period. At this time, the CDN control server will determine the relationship between the playback time point of the segment contained in the currently playing content and the second restricted condition, And the relationship between the current time point of sending the play request URL and the second restricted condition, generate the first playlist file, and return the generated first playlist file to the terminal.
下面针对所述第二受限条件为播放时间段受限时存在的几种情况,对上述生成第一播放列表文件的过程进行详细说明。In the following, the process of generating the first playlist file will be described in detail for several situations that exist when the second restricted condition is that the playing time period is restricted.
情况1Situation 1
在一些实施例中,根据当前正在播放的播放内容包含的分片的播放时间点与所述第二受限条件的关系、以及发送所述播放请求URL的当前时间点与所述第二受限条件的关系,生成所述第一播放列表文件的步骤可以包括:当所述发送所述播放请求URL的当前时间点与受限的所述播放时间段不匹配,且所述当前正在播放的播放内容包含的分片的播放时间点与受限的所述播放时间段不匹配时,生成第四特定内容对应的第一播放列表文件。In some embodiments, according to the relationship between the playback time point of the segment included in the playback content currently being played and the second restricted condition, and the current time point at which the playback request URL is sent and the second restricted condition In relation to conditions, the step of generating the first playlist file may include: when the current time point of sending the playback request URL does not match the limited playback time period, and the currently playing playback When the playback time point of the segment included in the content does not match the restricted playback time period, a first playlist file corresponding to the fourth specific content is generated.
这里,所述第四特定内容用于表示受限时间段所允许播放的内容。所述第四特定内容可以是系统默认的内容,也可以是服务器根据需要确定的内容,本公开实施例对此不作进一步的限定。Here, the fourth specific content is used to indicate content that is allowed to be played in a limited time period. The fourth specific content may be the default content of the system, or may be the content determined by the server as required, which is not further limited in the embodiment of the present disclosure.
举例来说,受限的播放时间段为上午的9:00至10:00,假设发送所述播放请求URL的当前时间点为上午的8:56,当前正在播放的播放内容包含的分片的播放时间点为上午的10:05,显然,发送播放 请求URL的时间点8:56不在受限的播放时间段9:00至10:00的范围内,且播放的分片的时间点10:05也不在受限的播放时间段9:00至10:00的范围内,此时,CDN控制服务器直接将生成的第四特定内容对应的第一播放列表文件返回给终端。For example, the restricted playing time period is from 9:00 to 10:00 in the morning. Assuming that the current time point when the playback request URL is sent is 8:56 in the morning, the current playback content contains the fragments The playback time is 10:05 in the morning. Obviously, 8:56 when the playback request URL is sent is not within the range of 9:00 to 10:00 in the restricted playback time period, and the playback time of the segment is 10: 05 is also not within the range of 9:00 to 10:00 in the restricted play time period. At this time, the CDN control server directly returns the first playlist file corresponding to the generated fourth specific content to the terminal.
情况2Situation 2
在一些实施例中,根据当前正在播放的播放内容包含的分片的播放时间点与所述第二受限条件的关系、以及发送所述播放请求URL的当前时间点与所述第二受限条件的关系,生成所述第一播放列表文件的步骤可以包括:当所述发送所述播放请求URL的当前时间点与受限的所述播放时间段不匹配,且所述当前正在播放的播放内容包含的部分分片的播放时间点与受限的所述播放时间段存在交叉关系时,将交叉部分对应的分片替换为第二特定内容对应的分片,生成所述第一播放列表文件。In some embodiments, according to the relationship between the playback time point of the segment included in the playback content currently being played and the second restricted condition, and the current time point at which the playback request URL is sent and the second restricted condition In relation to conditions, the step of generating the first playlist file may include: when the current time point of sending the playback request URL does not match the limited playback time period, and the currently playing playback When there is a cross relationship between the playback time points of the partial fragments contained in the content and the limited playback time period, replace the fragments corresponding to the crossed part with the fragments corresponding to the second specific content, and generate the first playlist file .
所述第二特定内容用于表示所述第二受限条件内允许播放的内容。The second specific content is used to indicate content that is allowed to be played within the second restricted condition.
这里,所述第二特定内容用于表示受限时间段所允许播放的内容。所述第二特定内容可以是系统默认的内容,也可以是服务器根据需要确定的内容,本公开实施例对此不作进一步的限定。Here, the second specific content is used to indicate content that is allowed to be played in a limited time period. The second specific content may be the default content of the system, or may be the content determined by the server as required, which is not further limited in the embodiment of the present disclosure.
举例来说,受限的播放时间段为上午的9:00至10:00,假设发送所述播放请求URL的当前时间点为上午的8:56,当前正在播放的播放内容包含的部分分片的播放时间点为上午的8:59至9:10之间,显然,发送播放请求URL的时间点8:56不在受限的播放时间段9:00至10:00的范围内,但播放的部分分片的时间点与受限的播放时间段9:00至10:00存在交叉部分,此时,CDN控制服务器将交叉部分即9:00至9:10对应的分片替换为第二特定内容对应的分片,以生成第一播放列表文件。For example, the restricted playing time period is from 9:00 to 10:00 in the morning. Assuming that the current time when the playback request URL is sent is 8:56 in the morning, part of the fragments contained in the currently playing content The playback time of the video is between 8:59 and 9:10 in the morning. Obviously, the time of sending the playback request URL at 8:56 is not within the range of 9:00 to 10:00 in the restricted playback time period. There is a cross section between the time point of some fragments and the restricted play time period from 9:00 to 10:00. At this time, the CDN control server replaces the cross section, that is, the fragment corresponding to 9:00 to 9:10 with the second specific Fragments corresponding to the content to generate the first playlist file.
情况3Situation 3
在一些实施例中,根据当前正在播放的播放内容包含的分片的播放时间点与所述第二受限条件的关系、以及发送所述播放请求URL的当前时间点与所述第二受限条件的关系,生成所述第一播放列表文 件的步骤可以包括:当所述发送所述播放请求URL的当前时间点与受限的所述播放时间段不匹配,且所述当前正在播放的播放内容包含的部分分片的播放时间点与受限的所述播放时间段存在重叠关系时,将重叠部分对应的分片替换为第三特定内容对应的分片,保留未重叠部分对应的分片,生成所述第一播放列表文件。In some embodiments, according to the relationship between the playback time point of the segment included in the playback content currently being played and the second restricted condition, and the current time point at which the playback request URL is sent and the second restricted condition In relation to conditions, the step of generating the first playlist file may include: when the current time point of sending the playback request URL does not match the limited playback time period, and the currently playing playback When there is an overlapping relationship between the playback time point of a part of the fragments contained in the content and the limited playback time period, the fragment corresponding to the overlapping part is replaced with the fragment corresponding to the third specific content, and the fragment corresponding to the non-overlapping part is retained To generate the first playlist file.
所述第三特定内容用于表示所述第二受限条件内允许播放的内容,即用于表示受限时间段所允许播放的内容。The third specific content is used to indicate content allowed to be played within the second restricted condition, that is, used to indicate content allowed to be played within a restricted time period.
这里,所述第三特定内容可以是系统默认的内容,也可以是服务器根据需要确定的内容,本公开实施例对此不作进一步的限定。Here, the third specific content may be the default content of the system, or may be the content determined by the server as required, which is not further limited in the embodiment of the present disclosure.
举例来说,受限的播放时间段为上午的9:00至10:00,假设发送所述播放请求URL的当前时间点为上午的8:56,当前正在播放的播放内容包含的部分分片的播放时间点为上午的9:00至10:30之间,显然,发送播放请求URL的时间点8:56不在受限的播放时间段9:00至10:00的范围内,但播放的部分分片的时间点与受限的播放时间段9:00至10:00存在重叠部分,此时,CDN控制服务器将重叠部分即9:00至10:00对应的分片替换为第三特定内容对应的分片,对于未重叠部分即10:01至10:30对应的分片保留原内容的分片,以生成第一播放列表文件。For example, the restricted playing time period is from 9:00 to 10:00 in the morning. Assuming that the current time when the playback request URL is sent is 8:56 in the morning, part of the fragments contained in the currently playing content The playing time of the NAS is between 9:00 and 10:30 in the morning. Obviously, the time of sending the request URL at 8:56 is not within the range of 9:00 to 10:00 in the restricted playing time period, but the There is an overlap between the time point of some of the fragments and the restricted playback time period from 9:00 to 10:00. At this time, the CDN control server replaces the overlapped part, that is, the fragment corresponding to 9:00 to 10:00 with a third specific For the fragments corresponding to the content, the fragments of the original content are retained for the non-overlapping part, that is, the fragments corresponding to 10:01 to 10:30, to generate the first playlist file.
情况4Situation 4
在一些实施例中,根据当前正在播放的播放内容包含的分片的播放时间点与所述第二受限条件的关系、以及发送所述播放请求URL的当前时间点与所述第二受限条件的关系,生成所述第一播放列表文件的步骤可以包括:当所述发送所述播放请求URL的当前时间点与受限的所述播放时间段相匹配,且所述当前正在播放的播放内容包含的分片的播放时间点与受限的所述播放时间段不匹配时,将与受限的所述播放时间段不匹配的分片替换为原播放内容对应的分片,生成所述第一播放列表文件。In some embodiments, according to the relationship between the playback time point of the segment included in the playback content currently being played and the second restricted condition, and the current time point at which the playback request URL is sent and the second restricted condition In relation to conditions, the step of generating the first playlist file may include: when the current time point of sending the playback request URL matches the limited playback time period, and the currently playing playback When the playback time point of the segment included in the content does not match the restricted playback time period, replace the segment that does not match the restricted playback time period with the segment corresponding to the original playback content, and generate the The first playlist file.
举例来说,受限的播放时间段为上午的9:00至10:00,假设发送所述播放请求URL的当前时间点为上午的9:02,当前正在播放的播放内容包含的分片的播放时间点为上午的10:05,显然,发送播放 请求URL的时间点9:02在受限的播放时间段9:00至10:00的范围内,但播放的分片的时间点10:05不在受限的播放时间段9:00至10:00的范围内,此时,CDN控制服务器将与受限的所述播放时间段不匹配的分片替换为原播放内容对应的分片,生成第一播放列表文件。For example, the restricted play time period is from 9:00 to 10:00 in the morning. Assuming that the current time of sending the playback request URL is 9:02 in the morning, the current playback content contains the The playback time point is 10:05 in the morning. Obviously, the time point of 9:02 when the playback request URL is sent is within the range of 9:00 to 10:00 in the limited playback time period, but the time point of the played segment is 10: 05 is not within the range of 9:00 to 10:00 in the restricted playback time period. At this time, the CDN control server replaces the fragments that do not match the restricted playback time period with the fragments corresponding to the original playback content. Generate the first playlist file.
情况5Situation 5
在一些实施例中,根据当前正在播放的播放内容包含的分片的播放时间点与所述第二受限条件的关系、以及发送所述播放请求URL的当前时间点与所述第二受限条件的关系,生成所述第一播放列表文件的步骤可以包括:当所述发送所述播放请求URL的当前时间点与受限的所述播放时间段相匹配,且所述当前正在播放的播放内容包含的分片的播放时间点与受限的所述播放时间段相匹配时,生成第五特定内容对应的第一播放列表文件。In some embodiments, according to the relationship between the playback time point of the segment included in the playback content currently being played and the second restricted condition, and the current time point at which the playback request URL is sent and the second restricted condition In relation to conditions, the step of generating the first playlist file may include: when the current time point of sending the playback request URL matches the limited playback time period, and the currently playing playback When the playback time point of the segment included in the content matches the limited playback time period, a first playlist file corresponding to the fifth specific content is generated.
这里,所述第五特定内容可以是系统默认的内容,也可以是服务器根据需要确定的内容,本公开实施例对此不作进一步的限定。Here, the fifth specific content may be the default content of the system, or may be the content determined by the server as required, which is not further limited in the embodiment of the present disclosure.
举例来说,受限的播放时间段为上午的9:00至10:00,假设发送所述播放请求URL的当前时间点为上午的9:02,当前正在播放的播放内容包含的分片的播放时间点为上午的9:05至9:20之间,显然,发送播放请求URL的时间点9:02在受限的播放时间段9:00至10:00的范围内,且播放的分片的时间点9:05至9:20之间的任意一个也在受限的播放时间段9:00至10:00的范围内,此时,CDN控制服务器将生成第五特定内容对应的第一播放列表文件,并将所生成的所述第五特定内容对应的第一播放列表文件返回给终端。For example, the restricted play time period is from 9:00 to 10:00 in the morning. Assuming that the current time of sending the playback request URL is 9:02 in the morning, the current playback content contains the The play time is between 9:05 and 9:20 in the morning. Obviously, the time of sending the play request URL at 9:02 is within the limited play time period of 9:00 to 10:00, and the play minutes Any one of the time points between 9:05 and 9:20 is also within the range of the restricted play time period 9:00 to 10:00. At this time, the CDN control server will generate the first corresponding to the fifth specific content. A playlist file, and the generated first playlist file corresponding to the fifth specific content is returned to the terminal.
需要特别指出的是,本公开实施例中的第二特定内容、第三特定内容、第四特定内容和第五特定内容可以相同(包括全部相同和部分相同),也可以不同,这里不作进一步的限定。It should be particularly pointed out that the second specific content, the third specific content, the fourth specific content, and the fifth specific content in the embodiments of the present disclosure may be the same (including all the same and part of the same) or different, and no further details will be made here. limited.
本公开实施例提供的内容展示的控制方法,基于播放请求URL中携带的展示受限策略相关信息,以生成第一播放列表文件,通过第一播放列表文件实现在内容播放源端内容的动态展示,能够灵活、有效、精准的控制输出的内容比如媒体流的播放展示,从而在保证安全性、实时性、准确性的同时,丰富了内容呈现的方式,满足内容运营 商的复杂需求,提升了用户体验。The content display control method provided by the embodiments of the present disclosure generates a first playlist file based on the display restriction policy related information carried in the playback request URL, and realizes the dynamic display of the content at the content playback source through the first playlist file , Can flexibly, effectively, and accurately control the output content such as the playback and display of media streams, thereby ensuring safety, real-time, and accuracy, while enriching the ways of content presentation, meeting the complex needs of content operators, and improving user experience.
图3为根据本公开实施例的内容展示的控制方法的实现流程示意图。如图3所示,本公开实施例所提供的内容展示的控制方法的实现流程可以包括以下步骤S301至S306。Fig. 3 is a schematic diagram of an implementation process of a content display control method according to an embodiment of the present disclosure. As shown in FIG. 3, the implementation process of the content display control method provided by the embodiment of the present disclosure may include the following steps S301 to S306.
在步骤S301,终端向服务器发送播放请求URL。In step S301, the terminal sends a playback request URL to the server.
这里,当使用终端的用户想要观看播放内容比如视频时,通过终端向服务器发送播放请求URL,其中,可将播放请求URL携带在播放请求消息中。Here, when a user who uses a terminal wants to watch playback content such as a video, the terminal sends a playback request URL to the server through the terminal, where the playback request URL can be carried in the playback request message.
在步骤S302,服务器接收终端发送的播放请求URL。In step S302, the server receives the playback request URL sent by the terminal.
在步骤S303,服务器解析播放请求URL,获得所述播放请求URL中携带的展示受限策略相关信息。In step S303, the server parses the playback request URL, and obtains the display restriction policy related information carried in the playback request URL.
实际应用时,所述展示受限策略相关信息可由受限策略管理服务器基于用户对应的特征信息或者用户需求进行设置,且在受限策略管理服务器设置完成后,将所述展示受限策略相关信息发送至终端,这样,终端在向服务器发送播放请求URL时,就可以将所述展示受限策略相关信息携带在播放请求URL中一并进行发送。In actual application, the display restricted policy related information can be set by the restricted policy management server based on the characteristic information corresponding to the user or user needs, and after the restricted policy management server is set, the display restricted policy related information Send to the terminal, so that when the terminal sends the playback request URL to the server, it can carry the display restriction policy related information in the playback request URL and send it together.
这里,所述展示受限策略相关信息包括以下至少之一:用户分组;终端特征信息;播放区域;播放频道;播放时间段等。所述终端特征信息包括以下至少之一:终端IP段;终端类型等。Here, the information related to the display restriction strategy includes at least one of the following: user grouping; terminal feature information; playing area; playing channel; playing time period, etc. The terminal feature information includes at least one of the following: terminal IP segment; terminal type, etc.
在一些实施例中,在获得所述播放请求URL中携带的展示受限策略相关信息之前,所述方法还可以包括:获取配置的针对所述播放内容的展示受限策略。In some embodiments, before obtaining the display restriction policy related information carried in the playback request URL, the method may further include: obtaining a configured display restriction policy for the playback content.
这里,所述展示受限策略是由受限策略管理服务器根据内容运营商的需求预先配置的,并在配置完成后实时同步至CDN控制服务器。也就是说,CDN控制服务器获取所述展示受限策略的步骤,实际上可为CDN控制服务器获取受限策略管理服务器预先配置的展示受限策略。Here, the display restricted policy is pre-configured by the restricted policy management server according to the requirements of the content operator, and is synchronized to the CDN control server in real time after the configuration is completed. That is to say, the step of the CDN control server obtaining the display restriction policy can actually obtain the display restriction policy pre-configured by the restriction policy management server for the CDN control server.
实际应用时,所述展示受限策略可以是多种受限条件的灵活组合,以满足内容运营商的复杂需求,扩大应用范围。In actual application, the display restriction strategy may be a flexible combination of multiple restriction conditions to meet the complex needs of content operators and expand the application range.
在步骤S304,服务器根据所述展示受限策略相关信息,生成第 一播放列表文件。In step S304, the server generates a first playlist file according to the information related to the display restriction policy.
在一些实施例中,当服务器获取了所述展示受限策略,则步骤S304的具体实现过程可以包括:将所述展示受限策略相关信息与所述展示受限策略进行匹配,获得匹配结果;根据所述匹配结果,生成第一播放列表文件。In some embodiments, when the server obtains the display restriction strategy, the specific implementation process of step S304 may include: matching the display restriction strategy related information with the display restriction strategy to obtain a matching result; According to the matching result, a first playlist file is generated.
在步骤S305,服务器将生成的所述第一播放列表文件发送至终端。In step S305, the server sends the generated first playlist file to the terminal.
这里,所述第一播放列表文件用于控制所述终端的内容播放展示。Here, the first playlist file is used to control the content playback and display of the terminal.
实际应用时,所述第一播放列表文件可以采用M3U8格式的文件表示,当然并非仅限定于M3U8格式的文件,还可以采用其它格式的文件来表示第一播放列表文件,这里不做限定。In actual application, the first playlist file can be represented by a file in the M3U8 format, and of course it is not limited to a file in the M3U8 format, and files in other formats can also be used to represent the first playlist file, which is not limited here.
在步骤S306,终端接收到所述第一播放列表文件后,基于所述第一播放列表文件请求进行播放展示。In step S306, after receiving the first playlist file, the terminal performs playback and display based on the first playlist file request.
实际应用时,当所述第一播放列表文件以M3U8格式表示时,终端请求从所述第一播放列表文件中选择播放的实体文件即实际播放的文件可以以分片的形式存储在服务器中。In practical applications, when the first playlist file is represented in the M3U8 format, the entity file that the terminal requests to select and play from the first playlist file, that is, the actual file that is played, may be stored in the server in the form of fragments.
这里,所述终端基于所述第一播放列表文件请求进行播放展示的步骤,实际上可以是基于所述第一播放列表文件中包括的至少两个分片文件,依次请求对所述至少两个分片文件进行播放展示。Here, the step of the terminal requesting to perform playback and display based on the first playlist file may actually be based on the at least two fragment files included in the first playlist file, requesting for the at least two fragment files in turn. Split files for playback and display.
这里,所述至少两个分片文件的时长可以相同,也可以不同,本公开实施例对此不作进一步的限定。Here, the duration of the at least two fragmented files may be the same or different, which is not further limited in the embodiment of the present disclosure.
在一些实施例中,在所述终端基于所述第一播放列表文件请求进行播放展示时,所述方法还可以包括:监测所述至少两个分片文件的播放进度;以及当监测到所述至少两个分片文件的播放进度均达到设定阈值时,向所述服务器再次发送播放请求URL,其中,再次发送的所述播放请求URL用于请求获取第二播放列表文件。In some embodiments, when the terminal requests to play and display based on the first playlist file, the method may further include: monitoring the playback progress of the at least two fragment files; and when the When the playback progress of at least two fragmented files reaches the set threshold, the playback request URL is sent to the server again, where the playback request URL sent again is used to request to obtain the second playlist file.
也就是说,终端向服务器再次请求新的播放列表文件,即第二播放列表文件时,可以重复执行步骤S301至步骤S306,以达到周期性请求新的播放列表文件的要求。这里,所述设定阈值可以根据需要 预先设定,在此不作进一步的限定。That is to say, when the terminal requests a new playlist file from the server again, that is, the second playlist file, steps S301 to S306 can be repeated to meet the requirement of periodically requesting a new playlist file. Here, the set threshold can be preset according to needs, which is not further limited here.
需要说明的是,服务器的具体处理过程已在上文详述,这里不再赘述。It should be noted that the specific processing process of the server has been described in detail above, and will not be repeated here.
本公开实施例提供的内容展示的控制方法,服务器接收到终端发送的播放请求URL后,对所述播放请求URL进行解析,基于解析的播放请求URL中携带的展示受限策略相关信息,以生成第一播放列表文件,通过第一播放列表文件实现在内容播放源端内容的动态展示,能够灵活、有效、精准的控制输出的内容比如媒体流的播放展示,从而在保证安全性、实时性、准确性的同时,丰富了内容呈现的方式,满足内容运营商的复杂需求,提升了用户体验。In the content display control method provided by the embodiments of the present disclosure, after the server receives the playback request URL sent by the terminal, the server parses the playback request URL, and generates information based on the display restriction policy carried in the parsed playback request URL. The first playlist file, through the first playlist file, realizes the dynamic display of the content at the content playback source, which can flexibly, effectively, and accurately control the output content such as the playback and display of media streams, thereby ensuring safety, real-time, and At the same time of accuracy, it enriches the way of content presentation, meets the complex needs of content operators, and improves user experience.
实际应用时,所述服务器在获得所述播放请求URL中携带的展示受限策略相关信息之前,还可以获取配置的针对所述播放内容的展示受限策略,以便服务器根据展示受限策略相关信息与展示受限策略的匹配结果,生成第一播放列表文件,从而就可以控制终端的内容播放展示。In actual application, before obtaining the display restriction policy related information carried in the playback request URL, the server may also obtain the configured display restriction policy for the playback content, so that the server can according to the display restriction policy related information The first playlist file is generated as a result of the matching result with the display restriction strategy, so that the content playback and display of the terminal can be controlled.
本公开实施例提出了另一种内容展示的控制方法。图4为根据本公开实施例的内容展示的控制方法的另一实现流程示意图。如图4所示,本公开实施例所提供的另一种内容展示的控制方法的实现流程可以包括以下步骤S401至S408。The embodiment of the present disclosure proposes another method for controlling content presentation. Fig. 4 is a schematic diagram of another implementation process of a content display control method according to an embodiment of the present disclosure. As shown in FIG. 4, the implementation process of another content display control method provided by the embodiment of the present disclosure may include the following steps S401 to S408.
在步骤S401,受限策略管理服务器设置内容受限规则,基于所述内容受限规则生成展示受限策略。In step S401, the restricted policy management server sets content restriction rules, and generates a display restriction policy based on the content restriction rules.
这里,实际应用时,所述受限策略管理服务器可以根据内容运营商的需求设置内容受限规则,比如可以预先在所述受限策略管理服务器上配置了内容受限规则,即设置内容运营商对内容播放展示的限制条件,本公开实施例对此不作进一步的限定。Here, in actual application, the restricted policy management server may set content restriction rules according to the needs of the content operator. For example, the content restriction rules may be configured on the restricted policy management server in advance, that is, the content operator may be set The embodiment of the present disclosure does not make further restrictions on the restriction conditions for content playback and display.
在步骤S402,受限策略管理服务器将所述展示受限策略下发至CDN控制服务器。In step S402, the restricted policy management server issues the display restricted policy to the CDN control server.
这里,受限策略管理服务器将所述展示受限策略下发至CDN控制服务器,例如可以为将所述展示受限策略实时下发至CDN控制服务器,如此,能够保证CDN控制服务器对内容播放展示进行控制的实时 性。Here, the restricted policy management server issues the display restricted policy to the CDN control server. For example, the display restricted policy may be sent to the CDN control server in real time. In this way, the CDN control server can ensure that the content is played and displayed. Real-time control.
在步骤S403,CDN控制服务器接收并存储所述展示受限策略。In step S403, the CDN control server receives and stores the display restriction policy.
在步骤S404,终端向CDN控制服务器发送播放请求URL。In step S404, the terminal sends a playback request URL to the CDN control server.
在步骤S405,CDN控制服务器接收到所述播放请求URL后,获取展示受限策略相关信息。In step S405, after receiving the playback request URL, the CDN control server obtains information related to the display restriction policy.
这里,由于所述播放请求URL中配置了当前内容展示的受限条件,即所述播放请求URL中携带了针对播放内容的展示受限策略相关信息,这样,CDN控制服务器在接收到所述播放请求URL后,对所述播放请求URL进行解析,就可以获得所述播放请求URL中携带的展示受限策略相关信息。Here, since the playback request URL is configured with the current content display restriction conditions, that is, the playback request URL carries information about the display restriction strategy for the playback content, so that the CDN control server receives the playback After the URL is requested, the playback request URL is parsed to obtain the display restriction policy related information carried in the playback request URL.
在步骤S406,CDN控制服务器将所述展示受限策略相关信息与所述展示受限策略进行匹配,获得匹配结果,根据匹配结果生成第一播放列表文件。In step S406, the CDN control server matches the display restricted policy related information with the display restricted policy to obtain a matching result, and generates a first playlist file according to the matching result.
在步骤S407,CDN控制服务器将生成的所述第一播放列表文件发送至终端。In step S407, the CDN control server sends the generated first playlist file to the terminal.
在步骤S408,终端接收到所述第一播放列表文件后,依次请求所述第一播放列表文件中的分片文件并进行播放。In step S408, after receiving the first playlist file, the terminal sequentially requests and plays the fragment files in the first playlist file.
在一些实施例中,在终端依次请求所述第一播放列表文件中的分片文件并进行播放时,终端还可以监测所述第一播放列表文件中的至少两个分片文件的播放进度,当确定所述至少两个分片文件的播放进度达到设定阈值,比如所述至少两个分片文件的播放进度均接近结束播放时,终端将向CDN控制服务器再次请求新的播放列表文件,即第二播放列表文件,此时可以重复执行步骤S404至步骤S408,以达到终端周期性请求新的播放列表文件的要求。In some embodiments, when the terminal sequentially requests and plays the fragment files in the first playlist file, the terminal may also monitor the playback progress of at least two fragment files in the first playlist file. When it is determined that the playback progress of the at least two fragmented files reaches the set threshold, for example, when the playback progress of the at least two fragmented files is close to the end of playback, the terminal will request a new playlist file from the CDN control server again, That is, the second playlist file, at this time, step S404 to step S408 can be repeated to meet the requirement of the terminal periodically requesting a new playlist file.
需要说明的是,所述CDN控制服务器和终端的具体处理过程已在上文详述,这里不再赘述。It should be noted that the specific processing procedures of the CDN control server and terminal have been described in detail above, and will not be repeated here.
本公开实施例提供的内容展示的控制方法,服务器接收到终端发送的播放请求URL后,对所述播放请求URL进行解析,基于解析的播放请求URL中携带的展示受限策略相关信息,以生成第一播放列表文件,通过第一播放列表文件实现在内容播放源端内容的动态展示, 能够灵活、有效、精准的控制输出的内容比如媒体流的播放展示,从而在保证安全性、实时性、准确性的同时,丰富了内容呈现的方式,满足内容运营商的复杂需求,提升了用户体验。In the content display control method provided by the embodiments of the present disclosure, after the server receives the playback request URL sent by the terminal, the server parses the playback request URL, and generates information based on the display restriction policy carried in the parsed playback request URL. The first playlist file, through the first playlist file, realizes the dynamic display of content at the content playback source, which can flexibly, effectively and accurately control the output content such as the playback and display of media streams, thereby ensuring safety, real-time, and At the same time of accuracy, it enriches the way of content presentation, meets the complex needs of content operators, and improves user experience.
下面结合具体的应用实施例对本公开再作进一步详细的描述。The disclosure will be further described in detail below in conjunction with specific application embodiments.
应用实施例一Application Example One
本应用实施例中,CDN控制服务器确定匹配结果为当前频道播放受限,以及为当前频道播放不受限时,根据匹配结果对应控制终端的内容播放展示。In this application embodiment, when the CDN control server determines that the matching result is that the playback of the current channel is restricted, and that the playback of the current channel is not restricted, the content playback display of the terminal is controlled correspondingly according to the matching result.
图5为根据本公开实施例的频道播放展示的控制方法的实现流程示意图。如图5所示,本公开实施例所提供的频道播放展示的控制方法的实现流程可以包括以下步骤S501至S510。Fig. 5 is a schematic diagram of an implementation process of a method for controlling channel playing and displaying according to an embodiment of the present disclosure. As shown in FIG. 5, the implementation process of the method for controlling channel playing and displaying provided by the embodiment of the present disclosure may include the following steps S501 to S510.
在步骤S501,终端向CDN控制服务器发送播放请求URL。In step S501, the terminal sends a playback request URL to the CDN control server.
在步骤S502,CDN控制服务器对所述播放请求URL进行解析,获得展示受限策略相关信息。In step S502, the CDN control server parses the playback request URL to obtain information related to the display restriction policy.
这里,可以将所述展示受限策略相关信息携带在所述播放请求URL中。Here, the information related to the display restriction policy may be carried in the playback request URL.
在步骤S503,CDN控制服务器将当前播放频道分片对应的播放时间与展示受限策略相关信息进行匹配,获得匹配结果。In step S503, the CDN control server matches the play time corresponding to the current play channel segment with the information related to the display restriction strategy to obtain a matching result.
在步骤S504,CDN控制服务器确定匹配结果为当前频道播放受限时,开始播放受限内容,生成M3U8文件,将所生成的M3U8文件发送至终端。In step S504, when the CDN control server determines that the matching result is that the playback of the current channel is restricted, it starts to play the restricted content, generates an M3U8 file, and sends the generated M3U8 file to the terminal.
实际应用时,播放内容以分片的形式存在,假设每个分片文件的播放时长为10s。如图8A所示,CDN控制服务器确定出当前正在播放的频道分片为b2427。CDN控制服务器将分片b2427对应的播放时间与展示受限策略相关信息进行匹配,获得匹配结果,当确定匹配结果为当前频道播放受限时,生成M3U8文件,如图8B所示,生成的M3U8文件包含三个分片文件,比如为分片c3315、c3316和c3317。In actual application, the playback content exists in the form of fragments, assuming that the playback duration of each fragment file is 10s. As shown in Figure 8A, the CDN control server determines that the currently playing channel segment is b2427. The CDN control server matches the playback time corresponding to the segment b2427 with the information related to the display restriction strategy, and obtains the matching result. When the matching result is determined that the current channel playback is restricted, the M3U8 file is generated, as shown in Figure 8B, the generated M3U8 The file contains three fragmented files, such as fragments c3315, c3316, and c3317.
在步骤S505,终端接收到M3U8文件后,依次请求M3U8文件中的分片文件进行播放。In step S505, after receiving the M3U8 file, the terminal sequentially requests the segmented files in the M3U8 file to play.
在步骤S506,终端监测到M3U8文件中所有分片的播放进度达到 设定阈值时,向CDN控制服务器再次发送新的播放请求URL,以请求新的M3U8文件。In step S506, when the terminal detects that the playback progress of all the segments in the M3U8 file reaches the set threshold, it sends a new playback request URL to the CDN control server again to request a new M3U8 file.
在步骤S507,CDN控制服务器接收到新的播放请求URL后,对新的播放请求URL进行解析,获得相应的展示受限策略相关信息。In step S507, after receiving the new playback request URL, the CDN control server parses the new playback request URL to obtain corresponding information about the display restriction policy.
在步骤S508,CDN控制服务器将此时刻播放频道分片对应的播放时间与展示受限策略相关信息进行匹配,获得匹配结果。In step S508, the CDN control server matches the playing time corresponding to the playing channel segment at this moment with the information related to the display restriction strategy to obtain a matching result.
在步骤S509,CDN控制服务器确定匹配结果为当前频道播放不受限时,开始播放当前频道分片,生成新的M3U8文件,将所生成的新的M3U8文件发送至终端。In step S509, when the CDN control server determines that the matching result is that the current channel is not restricted, it starts to play the current channel segment, generates a new M3U8 file, and sends the generated new M3U8 file to the terminal.
在步骤S510,终端接收到新的M3U8文件后,依次请求新的M3U8文件中的分片文件进行播放。In step S510, after receiving the new M3U8 file, the terminal sequentially requests the segmented files in the new M3U8 file to play.
这里,如图8C所示,终端当前请求的是新的M3U8文件中的分片b2431进行播放。Here, as shown in FIG. 8C, the terminal currently requests the segment b2431 in the new M3U8 file to be played.
需要说明的是,所述CDN控制服务器和终端的具体处理过程已在上文详述,这里不再赘述。It should be noted that the specific processing procedures of the CDN control server and terminal have been described in detail above, and will not be repeated here.
应用实施例二Application Example Two
本应用实施例中,终端可以对内容播放频道进行时移,CDN控制服务器通过将时移播放时间与展示受限策略相关信息进行匹配,根据匹配结果控制终端的内容播放展示。本应用实施例提供的是将内容播放频道往前时移1分钟时对应的内容展示的控制方法。In this application embodiment, the terminal can time-shift the content playback channel, and the CDN control server controls the content playback and display of the terminal according to the matching result by matching the time-shifted playback time with information related to the display restriction policy. This application embodiment provides a control method for the corresponding content display when the content playing channel is moved forward by 1 minute.
图6为根据本公开实施例的内容播放频道往前时移1分钟时对应的内容展示的控制方法的实现流程示意图。如图6所示,本公开实施例所提供的内容播放频道往前时移1分钟时对应的内容展示的控制方法的实现流程可以包括以下步骤S601至S611。FIG. 6 is a schematic diagram of the implementation process of the control method for content display when the content playback channel is shifted forward by 1 minute according to an embodiment of the present disclosure. As shown in FIG. 6, the implementation process of the method for controlling the content display corresponding to when the content playing channel is shifted forward by 1 minute according to the embodiment of the present disclosure may include the following steps S601 to S611.
在步骤S601,终端向CDN控制服务器发送播放请求URL,以及时移播放开始时间点。In step S601, the terminal sends a playback request URL and a time-shifted playback start time point to the CDN control server.
在步骤S602,CDN控制服务器对所述播放请求URL进行解析,获得展示受限策略相关信息。In step S602, the CDN control server parses the playback request URL to obtain information related to the display restriction policy.
这里,可以将所述展示受限策略相关信息携带在所述播放请求URL中。Here, the information related to the display restriction policy may be carried in the playback request URL.
在步骤S603,CDN控制服务器基于时移播放开始时间点和时移播放时间计算时移时间差。In step S603, the CDN control server calculates the time-shift time difference based on the time-shift playback start time point and the time-shift playback time.
在步骤S604,CDN控制服务器将内容播放频道的时移播放时间与展示受限策略相关信息进行匹配,获得匹配结果。In step S604, the CDN control server matches the time-shifted play time of the content play channel with information related to the display restriction strategy to obtain a matching result.
在步骤S605,CDN控制服务器确定匹配结果为时移播放频道受限时,开始播放受限内容,根据时移时间差确定对应分片地址,生成M3U8文件,将所生成的M3U8文件发送至终端。In step S605, when the CDN control server determines that the time-shifted broadcast channel is restricted, the CDN control server starts to play the restricted content, determines the corresponding segment address according to the time-shift time difference, generates an M3U8 file, and sends the generated M3U8 file to the terminal.
这里,如图8B所示,生成的M3U8文件可以包含三个分片文件,比如为分片c3315、c3316和c3317。Here, as shown in FIG. 8B, the generated M3U8 file may include three fragmented files, such as fragments c3315, c3316, and c3317.
在步骤S606,终端接收到M3U8文件后,依次请求M3U8文件中的分片文件进行播放。In step S606, after receiving the M3U8 file, the terminal sequentially requests the segmented files in the M3U8 file to play.
在步骤S607,终端监测到M3U8文件中所有分片的播放进度达到设定阈值时,向CDN控制服务器再次发送新的播放请求URL,以请求新的M3U8文件。In step S607, when the terminal detects that the playback progress of all the segments in the M3U8 file reaches the set threshold, it sends a new playback request URL to the CDN control server again to request a new M3U8 file.
在步骤S608,CDN控制服务器接收到新的播放请求URL后,对新的播放请求URL进行解析,获得相应的展示受限策略相关信息,以及再次计算新的时移时间差。In step S608, after receiving the new playback request URL, the CDN control server parses the new playback request URL, obtains corresponding information about the display restriction strategy, and calculates the new time shift again.
在步骤S609,CDN控制服务器将当前的内容播放频道的时移播放时间与展示受限策略相关信息进行匹配,获得匹配结果。In step S609, the CDN control server matches the time-shifted play time of the current content play channel with information related to the display restriction strategy to obtain a matching result.
在步骤S610,CDN控制服务器确定匹配结果为时移播放频道不受限时,根据新的时移时间差确定对应分片地址,生成新的M3U8文件,将所生成的新的M3U8文件发送至终端。In step S610, when the CDN control server determines that the matching result is that the time-shifted broadcast channel is not limited, it determines the corresponding segment address according to the new time-shift time difference, generates a new M3U8 file, and sends the generated new M3U8 file to the terminal.
在步骤S611,终端接收到新的M3U8文件后,依次请求新的M3U8文件中的分片文件进行播放。In step S611, after receiving the new M3U8 file, the terminal sequentially requests the segmented files in the new M3U8 file to play.
如图8D所示,CDN控制服务器确定出当前正在播放的频道分片为b2427,当对内容播放频道进行时移,即将内容播放频道往前时移1分钟后,请求播放分片b2421的内容。As shown in Figure 8D, the CDN control server determines that the currently playing channel segment is b2427. When the content playback channel is time-shifted, that is, the content playback channel is time-shifted forward by 1 minute, it requests to play the content of segment b2421.
需要说明的是,所述CDN控制服务器和终端的具体处理过程已在上文详述,这里不再赘述。It should be noted that the specific processing procedures of the CDN control server and terminal have been described in detail above, and will not be repeated here.
应用实施例三Application Example Three
本应用实施例中,终端可以对内容播放频道进行时移,CDN控制服务器通过将时移播放时间与展示受限策略相关信息进行匹配,根据匹配结果控制终端的内容播放展示。本应用实施例提供的是将内容播放频道往前时移2分钟时对应的内容展示的控制方法。In this application embodiment, the terminal can time-shift the content playback channel, and the CDN control server controls the content playback and display of the terminal according to the matching result by matching the time-shifted playback time with information related to the display restriction policy. This application embodiment provides a control method for the corresponding content display when the content playing channel is moved forward by 2 minutes.
图7为根据本公开实施例的内容播放频道往前时移2分钟时对应的内容展示的控制方法的实现流程示意图。如图7所示,本公开实施例所提供的内容播放频道往前时移2分钟时对应的内容展示的控制方法的实现流程可以包括以下步骤S701至S711。FIG. 7 is a schematic diagram of the implementation process of the control method of corresponding content display when the content playing channel is shifted forward by 2 minutes according to an embodiment of the present disclosure. As shown in FIG. 7, the implementation process of the method for controlling the content display corresponding to the content playback channel provided by the embodiment of the present disclosure when the content playback channel is shifted forward by 2 minutes may include the following steps S701 to S711.
在步骤S701,终端向CDN控制服务器发送播放请求URL,以及时移播放开始时间点。In step S701, the terminal sends a playback request URL and a time-shifted playback start time point to the CDN control server.
在步骤S702,CDN控制服务器对所述播放请求URL进行解析,获得展示受限策略相关信息。In step S702, the CDN control server parses the playback request URL to obtain information related to the display restriction policy.
这里,可以将所述展示受限策略相关信息携带在所述播放请求URL中。Here, the information related to the display restriction policy may be carried in the playback request URL.
在步骤S703,CDN控制服务器基于时移播放开始时间点和时移播放时间计算时移时间差。In step S703, the CDN control server calculates the time-shift time difference based on the time-shift playback start time point and the time-shift playback time.
在步骤S704,CDN控制服务器将内容播放频道的时移播放时间与展示受限策略相关信息进行匹配,获得匹配结果。In step S704, the CDN control server matches the time-shifted play time of the content play channel with information related to the display restriction policy to obtain a matching result.
在步骤S705,CDN控制服务器确定匹配结果为时移播放频道受限时,开始播放受限内容,根据时移时间差确定对应分片地址,生成M3U8文件,将所生成的M3U8文件发送至终端。In step S705, when the CDN control server determines that the time-shifted playback channel is restricted, the CDN control server starts to play the restricted content, determines the corresponding segment address according to the time-shift time difference, generates an M3U8 file, and sends the generated M3U8 file to the terminal.
这里,如图8B所示,生成的M3U8文件可以包含三个分片文件,比如包含分片c3315、c3316和c3317。Here, as shown in FIG. 8B, the generated M3U8 file may include three fragment files, such as fragments c3315, c3316, and c3317.
在步骤S706,终端接收到M3U8文件后,依次请求M3U8文件中的分片文件进行播放。In step S706, after receiving the M3U8 file, the terminal sequentially requests the segmented files in the M3U8 file to play.
在步骤S707,终端监测到M3U8文件中所有分片的播放进度达到设定阈值时,向CDN控制服务器再次发送新的播放请求URL,以请求新的M3U8文件。In step S707, when the terminal detects that the playback progress of all the segments in the M3U8 file reaches the set threshold, it sends a new playback request URL to the CDN control server again to request a new M3U8 file.
在步骤S708,CDN控制服务器接收到新的播放请求URL后,对新的播放请求URL进行解析,获得相应的展示受限策略相关信息,以 及再次计算新的时移时间差。In step S708, after receiving the new playback request URL, the CDN control server parses the new playback request URL, obtains corresponding information about the display restriction strategy, and calculates the new time shift again.
在步骤S709,CDN控制服务器将当前的内容播放频道的时移播放时间与展示受限策略相关信息进行匹配,获得匹配结果。In step S709, the CDN control server matches the time-shifted play time of the current content play channel with information related to the display restriction strategy to obtain a matching result.
在步骤S710,CDN控制服务器确定匹配结果为时移播放频道受限时,根据受限内容播放分片序列查询对应分片地址,生成新的M3U8文件,将所生成的新的M3U8文件发送至终端。In step S710, when the CDN control server determines that the matching result is that the time-shifted broadcast channel is restricted, it queries the corresponding segment address according to the restricted content playback segment sequence, generates a new M3U8 file, and sends the generated new M3U8 file to the terminal .
这里,所述新的M3U8文件包含三个分片文件,序号分别为c3318、c3319和c3320的分片文件。Here, the new M3U8 file contains three fragment files, the fragment files with serial numbers c3318, c3319 and c3320 respectively.
在步骤S711,终端接收到新的M3U8文件后,请求与前面衔接的分片文件进行播放。In step S711, after receiving the new M3U8 file, the terminal requests playback of the previously connected fragment file.
如图8E所示,CDN控制服务器确定出当前正在播放的频道分片为b2427,当对内容播放频道进行时移,即将内容播放频道往前时移2分钟后,请求播放分片b2415的内容。As shown in Figure 8E, the CDN control server determines that the currently playing channel segment is b2427. When the content playback channel is time-shifted, that is, the content playback channel is time-shifted forward by 2 minutes, it requests to play the content of segment b2415.
需要说明的是,所述CDN控制服务器和终端的具体处理过程已在上文详述,这里不再赘述。It should be noted that the specific processing procedures of the CDN control server and terminal have been described in detail above, and will not be repeated here.
为了实现本公开实施例中的内容展示的控制方法,本公开实施例还提供了一种内容展示的控制装置,该装置设置在服务器,比如CDN控制服务器上,图9为根据本公开实施例的设置在服务器上的内容展示的控制装置的结构示意图。In order to implement the content display control method in the embodiment of the present disclosure, the embodiment of the present disclosure also provides a content display control device, which is set on a server, such as a CDN control server. FIG. 9 is a control device according to an embodiment of the present disclosure. A schematic diagram of the structure of the control device for displaying content set on the server.
如图9所示,该装置包括:接收单元91,用于接收终端发送的播放请求URL;解析单元92,用于解析所述播放请求URL,获得所述播放请求URL中携带的展示受限策略相关信息;生成单元93,用于根据所述展示受限策略相关信息,生成第一播放列表文件;以及发送单元94,用于将所述第一播放列表文件发送至所述终端。As shown in FIG. 9, the device includes: a receiving unit 91, configured to receive a playback request URL sent by a terminal; and a parsing unit 92, configured to parse the playback request URL to obtain the display restriction policy carried in the playback request URL Related information; a generating unit 93, configured to generate a first playlist file according to the information related to the display restriction policy; and a sending unit 94, configured to send the first playlist file to the terminal.
这里,所述第一播放列表文件用于控制所述终端的内容播放展示。Here, the first playlist file is used to control the content playback and display of the terminal.
实际应用时,所述服务器如CDN控制服务器需要获取受限策略管理服务器同步的针对所述播放内容的展示受限策略,以便CDN控制服务器根据展示受限策略相关信息与展示受限策略的匹配结果,生成第一播放列表文件,从而就可以控制终端的内容播放展示。In actual application, the server, such as the CDN control server, needs to obtain the display restriction policy for the playback content synchronized by the restriction policy management server, so that the CDN control server can match the display restriction policy with the information related to the display restriction policy. , Generate the first playlist file, so that you can control the content playback and display of the terminal.
在一些实施例中,如图9所示,所述装置还可以包括:获取单元95,用于获取配置的针对所述播放内容的展示受限策略。相应地,生成单元93用于:将所述展示受限策略相关信息与所述展示受限策略进行匹配,获得匹配结果;根据所述匹配结果,生成第一播放列表文件。In some embodiments, as shown in FIG. 9, the apparatus may further include: an obtaining unit 95, configured to obtain a configured display restriction policy for the playback content. Correspondingly, the generating unit 93 is configured to: match the display restricted policy related information with the display restricted policy to obtain a matching result; and generate a first playlist file according to the matching result.
在一些实施例中,生成单元93用于:所述匹配结果符合第一受限条件时,生成第一特定内容对应的第一播放列表文件;所述第一特定内容用于表示所述第一受限条件内允许播放的内容。In some embodiments, the generating unit 93 is configured to: when the matching result meets the first restricted condition, generate a first playlist file corresponding to the first specific content; the first specific content is used to represent the first Content that is allowed to play within the restricted conditions.
在一些实施例中,生成单元93用于:所述匹配结果符合第二受限条件时,根据当前正在播放的播放内容包含的分片的播放时间点与所述第二受限条件的关系、以及发送所述播放请求URL的当前时间点与所述第二受限条件的关系,生成所述第一播放列表文件。In some embodiments, the generating unit 93 is configured to: when the matching result meets the second restricted condition, according to the relationship between the playback time point of the segment included in the currently playing content and the second restricted condition, And the relationship between the current point in time when the playback request URL is sent and the second restricted condition to generate the first playlist file.
在一些实施例中,所述第二受限条件为播放时间段受限时,生成单元93用于:当所述发送所述播放请求URL的当前时间点与受限的所述播放时间段不匹配,且所述当前正在播放的播放内容包含的部分分片的播放时间点与受限的所述播放时间段存在交叉关系时,将交叉部分对应的分片替换为第二特定内容对应的分片,生成所述第一播放列表文件。In some embodiments, when the second restricted condition is that the play time period is limited, the generating unit 93 is configured to: when the current time point of sending the play request URL is different from the restricted play time period Match, and there is a cross relationship between the playback time points of the partial segments included in the currently playing content and the limited playback time period, replace the segment corresponding to the crossed part with the segment corresponding to the second specific content To generate the first playlist file.
所述第二特定内容用于表示所述第二受限条件内允许播放的内容。The second specific content is used to indicate content that is allowed to be played within the second restricted condition.
在一些实施例中,所述第二受限条件为播放时间段受限时,生成单元93用于:当所述发送所述播放请求URL的当前时间点与受限的所述播放时间段不匹配,且所述当前正在播放的播放内容包含的部分分片的播放时间点与受限的所述播放时间段存在重叠关系时,将重叠部分对应的分片替换为第三特定内容对应的分片,保留未重叠部分对应的分片,生成所述第一播放列表文件。In some embodiments, when the second restricted condition is that the play time period is limited, the generating unit 93 is configured to: when the current time point of sending the play request URL is different from the restricted play time period Match, and there is an overlap relationship between the playback time point of a part of the fragments contained in the currently playing content and the limited playback time period, replace the fragment corresponding to the overlapping part with the fragment corresponding to the third specific content A slice, the slice corresponding to the non-overlapping part is reserved, and the first playlist file is generated.
所述第三特定内容用于表示所述第二受限条件内允许播放的内容。The third specific content is used to indicate content that is allowed to be played within the second restricted condition.
实际应用时,接收单元91、获取单元95及发送单元94可由内容展示的控制装置中的通信接口实现;解析单元92和生成单元93 可由内容展示的控制装置中的处理器结合通信接口实现。In practical applications, the receiving unit 91, the acquiring unit 95, and the sending unit 94 can be implemented by the communication interface in the content display control device; the parsing unit 92 and the generating unit 93 can be implemented by the processor in the content display control device combined with the communication interface.
需要说明的是,上述实施例提供的内容展示的控制装置在对内容展示进行控制时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的内容展示的控制装置与内容展示的控制方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, when the content display control device provided in the above embodiment controls content display, only the division of the above-mentioned program modules is used as an example for illustration. In actual applications, the above-mentioned processing can be allocated to different types according to needs. The program module is completed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the content display control device provided in the foregoing embodiment and the content display control method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
基于上述程序模块的硬件实现,且为了实现本公开实施例提供的内容展示的控制方法,本公开实施例还提供了一种服务器,所述服务器具体可以为CDN控制服务器,图10为根据本公开实施例的服务器的结构示意图。Based on the hardware implementation of the program modules described above, and in order to implement the content display control method provided by the embodiments of the present disclosure, the embodiments of the present disclosure also provide a server. The server may specifically be a CDN control server. The structure diagram of the server of the embodiment.
如图10所示,服务器100包括:通信接口101,能够与其它设备进行信息交互;处理器102,与所述通信接口101连接,以实现与终端进行信息交互,用于在运行计算机程序时,执行上述服务器侧的一个或多个技术方案提供的内容展示的控制方法,而所述计算机程序存储在存储器103上。As shown in FIG. 10, the server 100 includes: a communication interface 101 capable of communicating information with other devices; a processor 102 is connected to the communication interface 101 to realize information interaction with a terminal, and is used when running computer programs, The method for controlling content presentation provided by one or more technical solutions on the server side is executed, and the computer program is stored in the memory 103.
在服务器100执行内容展示的控制方法的过程中,通信接口101用于接收终端发送的播放请求URL;处理器102用于解析所述播放请求URL,获得所述播放请求URL中携带的展示受限策略相关信息;处理器102还用于根据所述展示受限策略相关信息,生成第一播放列表文件;通信接口101还用于将所述第一播放列表文件发送至所述终端。When the server 100 executes the content display control method, the communication interface 101 is used to receive the playback request URL sent by the terminal; the processor 102 is used to parse the playback request URL to obtain the display restriction carried in the playback request URL Policy-related information; the processor 102 is further configured to generate a first playlist file according to the display-restricted policy related information; the communication interface 101 is also configured to send the first playlist file to the terminal.
这里,所述第一播放列表文件用于控制所述终端的内容播放展示。Here, the first playlist file is used to control the content playback and display of the terminal.
在一些实施例中,通信接口101还用于获取配置的针对所述播放内容的展示受限策略。In some embodiments, the communication interface 101 is also used to obtain a configured display restriction policy for the played content.
处理器102用于:将所述展示受限策略相关信息与所述展示受限策略进行匹配,获得匹配结果;根据所述匹配结果,生成第一播放列表文件。The processor 102 is configured to match the information related to the display restriction strategy with the display restriction strategy to obtain a matching result; and generate a first playlist file according to the matching result.
在一些实施例中,处理器102用于:所述匹配结果符合第一受 限条件时,生成第一特定内容对应的第一播放列表文件。In some embodiments, the processor 102 is configured to: when the matching result meets the first restricted condition, generate a first playlist file corresponding to the first specific content.
所述第一特定内容用于表示所述第一受限条件内允许播放的内容。The first specific content is used to indicate content that is allowed to be played within the first restricted condition.
在一些实施例中,处理器102用于:所述匹配结果符合第二受限条件时,根据当前正在播放的播放内容包含的分片的播放时间点与所述第二受限条件的关系、以及发送所述播放请求URL的当前时间点与所述第二受限条件的关系,生成所述第一播放列表文件。In some embodiments, the processor 102 is configured to: when the matching result meets the second restricted condition, according to the relationship between the playback time point of the segment included in the currently playing content and the second restricted condition, And the relationship between the current point in time when the playback request URL is sent and the second restricted condition to generate the first playlist file.
在一些实施例中,所述第二受限条件为播放时间段受限,处理器102用于:当所述发送所述播放请求URL的当前时间点与受限的所述播放时间段不匹配,且所述当前正在播放的播放内容包含的部分分片的播放时间点与受限的所述播放时间段存在交叉关系时,将交叉部分对应的分片替换为第二特定内容对应的分片,生成所述第一播放列表文件。In some embodiments, the second restricted condition is that the playback time period is restricted, and the processor 102 is configured to: when the current time point of sending the playback request URL does not match the restricted playback time period , And when there is a cross relationship between the playback time point of the partial segment included in the currently playing content and the limited playback time period, replace the segment corresponding to the crossed part with the segment corresponding to the second specific content To generate the first playlist file.
所述第二特定内容用于表示所述第二受限条件内允许播放的内容。The second specific content is used to indicate content that is allowed to be played within the second restricted condition.
在一些实施例中,所述第二受限条件为播放时间段受限,处理器102用于:当所述发送所述播放请求URL的当前时间点与受限的所述播放时间段不匹配,且所述当前正在播放的播放内容包含的部分分片的播放时间点与受限的所述播放时间段存在重叠关系时,将重叠部分对应的分片替换为第三特定内容对应的分片,保留未重叠部分对应的分片,生成所述第一播放列表文件。In some embodiments, the second restricted condition is that the playback time period is restricted, and the processor 102 is configured to: when the current time point of sending the playback request URL does not match the restricted playback time period , And when there is an overlap relationship between the playback time point of a part of the fragments included in the currently playing content and the limited playback time period, replace the fragment corresponding to the overlapping part with the fragment corresponding to the third specific content , Retaining the segments corresponding to the non-overlapping part, and generating the first playlist file.
所述第三特定内容用于表示所述第二受限条件内允许播放的内容。The third specific content is used to indicate content that is allowed to be played within the second restricted condition.
需要说明的是,通信接口101和处理器102的具体处理过程详见方法实施例,这里不再赘述。It should be noted that the specific processing procedures of the communication interface 101 and the processor 102 are detailed in the method embodiment, which will not be repeated here.
当然,实际应用时,服务器100中的各个组件通过总线系统104耦合在一起。可以理解,总线系统104用于实现这些组件之间的连接通信。总线系统104除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图10中将各种总线都标记为总线系统104。Of course, in actual applications, the various components in the server 100 are coupled together through the bus system 104. It can be understood that the bus system 104 is used to implement connection and communication between these components. In addition to the data bus, the bus system 104 also includes a power bus, a control bus, and a status signal bus. However, for clear description, various buses are marked as the bus system 104 in FIG. 10.
本公开实施例中的存储器103用于存储各种类型的数据以支持服务器100的操作。这些数据的示例包括:用于在服务器100上操作的任何计算机程序。The memory 103 in the embodiment of the present disclosure is used to store various types of data to support the operation of the server 100. Examples of these data include: any computer program used to operate on the server 100.
上述本公开实施例揭示的方法可以应用于处理器102中,或者由处理器102实现。处理器102可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器102中的硬件的集成逻辑电路或者软件形式的指令完成。处理器102可以是通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器102可以实现或者执行本公开实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本公开实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器103上,处理器102读取存储器103中的信息,结合其硬件完成前述方法的步骤。The methods disclosed in the foregoing embodiments of the present disclosure may be applied to the processor 102 or implemented by the processor 102. The processor 102 may be an integrated circuit chip with signal processing capability. In the implementation process, the steps of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 102 or instructions in the form of software. The processor 102 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The processor 102 may implement or execute various methods, steps, and logical block diagrams disclosed in the embodiments of the present disclosure. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present disclosure may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located on the memory 103. The processor 102 reads the information in the memory 103 and completes the steps of the foregoing method in combination with its hardware.
在示例性实施例中,服务器100可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,Programmable Logic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、现场可编程门阵列(FPGA,Field-Programmable Gate Array)、通用处理器、控制器、微控制器(MCU,Micro Controller Unit)、微处理器(Microprocessor)、或者其他电子元件实现,用于执行前述方法。In an exemplary embodiment, the server 100 may be configured by one or more Application Specific Integrated Circuits (ASIC, Application Specific Integrated Circuit), DSP, Programmable Logic Device (PLD, Programmable Logic Device), and Complex Programmable Logic Device (CPLD, Complex Programmable Logic Device, Field-Programmable Gate Array (FPGA, Field-Programmable Gate Array), general-purpose processor, controller, microcontroller (MCU, Micro Controller Unit), microprocessor (Microprocessor), or other electronic components Implementation, used to perform the aforementioned method.
可以理解的是,本公开实施例的存储器103可以是易失性存储器或者非易失性存储器,也可包括易失性和非易失性存储器两者。非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器 (FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,Sync Link Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本公开实施例描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 103 of the embodiment of the present disclosure may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory. Non-volatile memory can be read only memory (ROM, Read Only Memory), programmable read only memory (PROM, Programmable Read-Only Memory), erasable programmable read only memory (EPROM, Erasable Programmable Read-Only Memory) ), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access memory (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface memory, optical disk , Or CD-ROM (Compact Disc Read-Only Memory); magnetic surface memory can be magnetic disk storage or tape storage. The volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache. By way of exemplary but not restrictive description, many forms of RAM are available, such as static random access memory (SRAM, Static Random Access Memory), synchronous static random access memory (SSRAM, Synchronous Static Random Access Memory), and dynamic random access Memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced Type synchronous dynamic random access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronous connection dynamic random access memory (SLDRAM, Sync Link Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, Direct Rambus Random Access) Memory). The memories described in the embodiments of the present disclosure are intended to include, but are not limited to, these and any other suitable types of memories.
为了实现本公开实施例的上述方法,本公开实施例还提供了一种内容展示的控制系统,图11为根据本公开实施例的内容展示的控制系统的结构示意图。In order to implement the above-mentioned method of the embodiment of the present disclosure, the embodiment of the present disclosure also provides a content display control system. FIG. 11 is a schematic structural diagram of the content display control system according to the embodiment of the present disclosure.
如图11所示,该系统包括终端111和CDN控制服务器112。As shown in FIG. 11, the system includes a terminal 111 and a CDN control server 112.
终端111用于向CDN控制服务器112发送播放请求URL;以及接收所述CDN控制服务器112返回的第一播放列表文件,并基于所述第一播放列表文件请求进行播放展示。The terminal 111 is configured to send a playback request URL to the CDN control server 112; and receive the first playlist file returned by the CDN control server 112, and perform playback and display based on the first playlist file request.
CDN控制服务器112用于接收终端111发送的播放请求URL;解析所述播放请求URL,获得所述播放请求URL中携带的展示受限策略相关信息;根据所述展示受限策略相关信息,生成第一播放列表文件,将所述第一播放列表文件发送至所述终端111。The CDN control server 112 is configured to receive the playback request URL sent by the terminal 111; parse the playback request URL to obtain the display restriction policy related information carried in the playback request URL; and generate the first A playlist file, sending the first playlist file to the terminal 111.
这里,所述第一播放列表文件用于控制所述终端的内容播放展示。Here, the first playlist file is used to control the content playback and display of the terminal.
如前所述,该系统还可以包括受限策略管理服务器113,用于设置内容受限规则,基于所述内容受限规则生成展示受限策略;以及将所述展示受限策略下发至CDN控制服务器112。As mentioned above, the system may also include a restricted policy management server 113, configured to set content restricted rules, generate a display restricted policy based on the content restricted rules; and deliver the display restricted policy to the CDN Control server 112.
CDN控制服务器112还用于接收并存储受限策略管理服务器113下发的所述展示受限策略。The CDN control server 112 is also configured to receive and store the display restricted policy issued by the restricted policy management server 113.
这里,受限策略管理服务器113将所述展示受限策略下发至CDN控制服务器112,具体可以为:将所述展示受限策略实时下发至CDN控制服务器112,如此,能够保证CDN控制服务器对内容播放展示进行控制的实时性。Here, the restricted policy management server 113 issues the display restricted policy to the CDN control server 112, which may specifically be: delivers the display restricted policy to the CDN control server 112 in real time. In this way, the CDN control server can be guaranteed Real-time control of content playback and display.
需要说明的是,终端111和CDN控制服务器112的具体处理过程已在上文详述,这里不再赘述。It should be noted that the specific processing procedures of the terminal 111 and the CDN control server 112 have been described in detail above, and will not be repeated here.
在示例性实施例中,本公开实施例还提供了一种存储介质,即计算机存储介质,具体可以为计算机可读存储介质,例如包括存储计算机程序的存储器103,上述计算机程序可由服务器100比如CDN控制服务器的处理器102执行,以完成前述的内容展示的控制方法的步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘或CD-ROM等存储器。In an exemplary embodiment, the embodiment of the present disclosure also provides a storage medium, that is, a computer storage medium, which may specifically be a computer-readable storage medium, such as a memory 103 storing a computer program. The computer program may be used by a server 100 such as a CDN. The processor 102 of the control server executes to complete the steps of the aforementioned content display control method. The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
需要说明的是,“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
另外,本领域技术人员应当理解,本公开实施例所记载的各技术方案之间,在不冲突的情况下,可以任意组合。In addition, those skilled in the art should understand that the various technical solutions described in the embodiments of the present disclosure can be combined arbitrarily without conflict.
以上所述,仅为本公开的较佳实施例而已,并非用于限定本公开的保护范围,凡在本公开的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本公开的保护范围之内。The above are only the preferred embodiments of the present disclosure and are not used to limit the scope of protection of the present disclosure. Any modification, equivalent replacement and improvement made within the spirit and principle of the present disclosure shall be included in Within the protection scope of this disclosure.

Claims (14)

  1. 一种内容展示的控制方法,应用于服务器,包括:A content display control method, applied to a server, includes:
    接收终端发送的播放请求统一资源定位符URL;Receive the uniform resource locator URL of the playback request sent by the terminal;
    解析所述播放请求URL,获得所述播放请求URL中携带的展示受限策略相关信息;Parsing the playback request URL to obtain the display restriction policy related information carried in the playback request URL;
    根据所述展示受限策略相关信息,生成第一播放列表文件;以及Generate a first playlist file according to the information related to the display restriction strategy; and
    将所述第一播放列表文件发送至所述终端,Sending the first playlist file to the terminal,
    其中,所述第一播放列表文件用于控制所述终端的内容播放展示。Wherein, the first playlist file is used to control content playback and display of the terminal.
  2. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising:
    获取配置的针对播放内容的展示受限策略,Get the configured display restriction strategy for playing content,
    并且根据所述展示受限策略相关信息,生成第一播放列表文件的步骤包括:And the step of generating a first playlist file according to the information related to the display restriction strategy includes:
    将所述展示受限策略相关信息与所述展示受限策略进行匹配,获得匹配结果;以及Matching the display restriction strategy related information with the display restriction strategy to obtain a matching result; and
    根据所述匹配结果,生成第一播放列表文件。According to the matching result, a first playlist file is generated.
  3. 根据权利要求2所述的方法,其中,根据所述匹配结果,生成第一播放列表文件的步骤包括:The method according to claim 2, wherein the step of generating a first playlist file according to the matching result comprises:
    所述匹配结果符合第一受限条件时,生成第一特定内容对应的第一播放列表文件,When the matching result meets the first restricted condition, a first playlist file corresponding to the first specific content is generated,
    其中,所述第一特定内容用于表示所述第一受限条件内允许播放的内容。Wherein, the first specific content is used to indicate content that is allowed to be played within the first restricted condition.
  4. 根据权利要求2所述的方法,其中,根据所述匹配结果,生成第一播放列表文件的步骤包括:The method according to claim 2, wherein the step of generating a first playlist file according to the matching result comprises:
    所述匹配结果符合第二受限条件时,根据当前正在播放的播放 内容包含的分片的播放时间点与所述第二受限条件的关系、以及发送所述播放请求URL的当前时间点与所述第二受限条件的关系,生成所述第一播放列表文件。When the matching result meets the second restricted condition, the relationship between the playback time point of the segment included in the currently playing content and the second restricted condition, and the current time point at which the playback request URL is sent and The relationship of the second restricted condition generates the first playlist file.
  5. 根据权利要求4所述的方法,其中,所述第二受限条件为播放时间段受限;The method according to claim 4, wherein the second restricted condition is that the playing time period is restricted;
    并且根据当前正在播放的播放内容包含的分片的播放时间点与所述第二受限条件的关系、以及发送所述播放请求URL的当前时间点与所述第二受限条件的关系,生成所述第一播放列表文件的步骤包括:And according to the relationship between the playback time point of the segment contained in the currently playing content and the second restricted condition, and the relationship between the current time point of sending the playback request URL and the second restricted condition, generate The steps of the first playlist file include:
    当所述发送所述播放请求URL的当前时间点与受限的所述播放时间段不匹配,且所述当前正在播放的播放内容包含的部分分片的播放时间点与受限的所述播放时间段存在交叉关系时,将交叉部分对应的分片替换为第二特定内容对应的分片,生成所述第一播放列表文件,When the current time point of sending the playback request URL does not match the restricted playback time period, and the playback time point of a partial segment included in the currently playing content is not the same as the restricted playback time point When there is a cross relationship in the time period, replace the segment corresponding to the cross part with the segment corresponding to the second specific content to generate the first playlist file,
    其中,所述第二特定内容用于表示所述第二受限条件内允许播放的内容。Wherein, the second specific content is used to indicate content that is allowed to be played within the second restricted condition.
  6. 根据权利要求4所述的方法,其中,所述第二受限条件为播放时间段受限;The method according to claim 4, wherein the second restricted condition is that the playing time period is restricted;
    并且根据当前正在播放的播放内容包含的分片的播放时间点与所述第二受限条件的关系、以及发送所述播放请求URL的当前时间点与所述第二受限条件的关系,生成所述第一播放列表文件的步骤包括:And according to the relationship between the playback time point of the segment contained in the currently playing content and the second restricted condition, and the relationship between the current time point of sending the playback request URL and the second restricted condition, generate The steps of the first playlist file include:
    当所述发送所述播放请求URL的当前时间点与受限的所述播放时间段不匹配,且所述当前正在播放的播放内容包含的部分分片的播放时间点与受限的所述播放时间段存在重叠关系时,将重叠部分对应的分片替换为第三特定内容对应的分片,保留未重叠部分对应的分片,生成所述第一播放列表文件,When the current time point of sending the playback request URL does not match the restricted playback time period, and the playback time point of a partial segment included in the currently playing content is not the same as the restricted playback time point When there is an overlap relationship in the time period, replace the segment corresponding to the overlapped part with the segment corresponding to the third specific content, retain the segment corresponding to the non-overlapped part, and generate the first playlist file,
    其中,所述第三特定内容用于表示所述第二受限条件内允许播放的内容。The third specific content is used to indicate content that is allowed to be played within the second restricted condition.
  7. 一种内容展示的控制装置,包括:A content display control device, including:
    接收单元,用于接收终端发送的播放请求统一资源定位符URL;The receiving unit is used to receive the playing request uniform resource locator URL sent by the terminal;
    解析单元,用于解析所述播放请求URL,获得所述播放请求URL中携带的展示受限策略相关信息;A parsing unit, configured to parse the playback request URL, and obtain the display restriction policy related information carried in the playback request URL;
    生成单元,用于根据所述展示受限策略相关信息,生成第一播放列表文件;以及A generating unit, configured to generate a first playlist file according to the information related to the display restriction strategy; and
    发送单元,用于将所述第一播放列表文件发送至所述终端,A sending unit, configured to send the first playlist file to the terminal,
    其中,所述第一播放列表文件用于控制所述终端的内容播放展示。Wherein, the first playlist file is used to control content playback and display of the terminal.
  8. 根据权利要求7所述的装置,还包括:The device according to claim 7, further comprising:
    获取单元,用于获取配置的针对播放内容的展示受限策略;The obtaining unit is used to obtain the configured display restriction strategy for the playback content;
    并且所述生成单元用于:And the generating unit is used for:
    将所述展示受限策略相关信息与所述展示受限策略进行匹配,获得匹配结果;以及Matching the display restriction strategy related information with the display restriction strategy to obtain a matching result; and
    根据所述匹配结果,生成第一播放列表文件。According to the matching result, a first playlist file is generated.
  9. 根据权利要求8所述的装置,其中,所述生成单元用于:The apparatus according to claim 8, wherein the generating unit is used for:
    所述匹配结果符合第一受限条件时,生成第一特定内容对应的第一播放列表文件,When the matching result meets the first restricted condition, a first playlist file corresponding to the first specific content is generated,
    其中,所述第一特定内容用于表示所述第一受限条件内允许播放的内容。Wherein, the first specific content is used to indicate content that is allowed to be played within the first restricted condition.
  10. 根据权利要求8所述的装置,其中,所述生成单元用于:The apparatus according to claim 8, wherein the generating unit is used for:
    所述匹配结果符合第二受限条件时,根据当前正在播放的播放内容包含的分片的播放时间点与所述第二受限条件的关系、以及发送所述播放请求URL的当前时间点与所述第二受限条件的关系,生成所述第一播放列表文件。When the matching result meets the second restricted condition, the relationship between the playback time point of the segment included in the currently playing content and the second restricted condition, and the current time point at which the playback request URL is sent and The relationship of the second restricted condition generates the first playlist file.
  11. 根据权利要求10所述的装置,其中,所述第二受限条件为播放时间段受限;The device according to claim 10, wherein the second restricted condition is that the playing time period is restricted;
    并且所述生成单元用于:And the generating unit is used for:
    当所述发送所述播放请求URL的当前时间点与受限的所述播放时间段不匹配,且所述当前正在播放的播放内容包含的部分分片的播放时间点与受限的所述播放时间段存在交叉关系时,将交叉部分对应的分片替换为第二特定内容对应的分片,生成所述第一播放列表文件,When the current time point of sending the playback request URL does not match the restricted playback time period, and the playback time point of a partial segment included in the currently playing content is not the same as the restricted playback time point When there is a cross relationship in the time period, replace the segment corresponding to the cross part with the segment corresponding to the second specific content to generate the first playlist file,
    其中,所述第二特定内容用于表示所述第二受限条件内允许播放的内容。Wherein, the second specific content is used to indicate content that is allowed to be played within the second restricted condition.
  12. 根据权利要求10所述的装置,其中,所述第二受限条件为播放时间段受限;The device according to claim 10, wherein the second restricted condition is that the playing time period is restricted;
    并且所述生成单元用于:And the generating unit is used for:
    当所述发送所述播放请求URL的当前时间点与受限的所述播放时间段不匹配,且所述当前正在播放的播放内容包含的部分分片的播放时间点与受限的所述播放时间段存在重叠关系时,将重叠部分对应的分片替换为第三特定内容对应的分片,保留未重叠部分对应的分片,生成所述第一播放列表文件,When the current time point of sending the playback request URL does not match the restricted playback time period, and the playback time point of a partial segment included in the currently playing content is not the same as the restricted playback time point When there is an overlap relationship in the time period, replace the segment corresponding to the overlapped part with the segment corresponding to the third specific content, retain the segment corresponding to the non-overlapped part, and generate the first playlist file,
    其中,所述第三特定内容用于表示所述第二受限条件内允许播放的内容。The third specific content is used to indicate content that is allowed to be played within the second restricted condition.
  13. 一种服务器,包括:处理器和用于存储能够在所述处理器上运行的计算机程序的存储器,A server includes: a processor and a memory for storing computer programs that can run on the processor,
    其中,所述处理器用于运行所述计算机程序时,执行权利要求1至6任一项所述的内容展示的控制方法的步骤。Wherein, the processor is used to execute the steps of the content display control method according to any one of claims 1 to 6 when running the computer program.
  14. 一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器实现权利要求1至6任一项所述的内容展示的控制方法的步骤。A storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the processor realizes the steps of the content display control method according to any one of claims 1 to 6.
PCT/CN2019/130258 2019-03-06 2019-12-31 Method and apparatus for controlling content presentation, and server and storage medium WO2020177468A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910168998.9 2019-03-06
CN201910168998.9A CN111669667B (en) 2019-03-06 2019-03-06 Content display control method and device, server and storage medium

Publications (1)

Publication Number Publication Date
WO2020177468A1 true WO2020177468A1 (en) 2020-09-10

Family

ID=72338388

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/130258 WO2020177468A1 (en) 2019-03-06 2019-12-31 Method and apparatus for controlling content presentation, and server and storage medium

Country Status (2)

Country Link
CN (1) CN111669667B (en)
WO (1) WO2020177468A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022076770A (en) * 2020-11-10 2022-05-20 シャープ株式会社 Content reproduction system, content reproduction method, and content reproduction program

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588472A (en) * 2008-05-22 2009-11-25 华为技术有限公司 Method, device and system for controlling program broadcasting
CN104159132A (en) * 2014-08-22 2014-11-19 华为软件技术有限公司 Method and device of implementing customized service of video
CN104202625A (en) * 2014-08-26 2014-12-10 青岛海信电器股份有限公司 Method and device for processing media file
US20140380386A1 (en) * 2013-03-08 2014-12-25 Thomson Licensing Method and apparatus for searching and generating a channel
CN105872626A (en) * 2015-12-15 2016-08-17 乐视网信息技术(北京)股份有限公司 Video playing method and device
CN106303615A (en) * 2016-08-15 2017-01-04 腾讯科技(深圳)有限公司 Play the methods, devices and systems of video
CN106534883A (en) * 2015-09-11 2017-03-22 中兴通讯股份有限公司 Video control method and device
CN106534053A (en) * 2015-09-15 2017-03-22 腾讯科技(北京)有限公司 Authority control method of media file, server and equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100162330A1 (en) * 2007-08-23 2010-06-24 Gregory Charles Herlein Method, apparatus and system for dynamic playlist over-ride
US8234350B1 (en) * 2011-12-19 2012-07-31 Seachange International, Inc. Systems and methods for generating targeted manifest files
CN102665128B (en) * 2012-04-27 2015-05-27 北京人民广播电台 Method and device for customizing timer-shaft content
US10587667B2 (en) * 2014-12-30 2020-03-10 Spotify Ab Location-based tagging and retrieving of media content
CN105898445A (en) * 2015-12-14 2016-08-24 乐视网信息技术(北京)股份有限公司 Advertising method and device
US10412178B2 (en) * 2016-06-30 2019-09-10 Rovi Guides, Inc. Systems and methods for ensuring continued access to media of a playlist despite geographic content restrictions
CN106210803A (en) * 2016-07-12 2016-12-07 乐视控股(北京)有限公司 The player method of a kind of media program and device
CN107181970B (en) * 2017-05-02 2020-09-11 成都智元汇通信息技术有限公司 Method for automatically generating playlist by advertisement terminal
CN107948408B (en) * 2017-11-14 2020-10-09 维沃移动通信有限公司 Media file playing method and device
US10212468B1 (en) * 2018-03-01 2019-02-19 Facebook, Inc. Obtaining ratings for content items from a group of users while limiting a number of times the content items are presented to the group of users within a time interval

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588472A (en) * 2008-05-22 2009-11-25 华为技术有限公司 Method, device and system for controlling program broadcasting
US20140380386A1 (en) * 2013-03-08 2014-12-25 Thomson Licensing Method and apparatus for searching and generating a channel
CN104159132A (en) * 2014-08-22 2014-11-19 华为软件技术有限公司 Method and device of implementing customized service of video
CN104202625A (en) * 2014-08-26 2014-12-10 青岛海信电器股份有限公司 Method and device for processing media file
CN106534883A (en) * 2015-09-11 2017-03-22 中兴通讯股份有限公司 Video control method and device
CN106534053A (en) * 2015-09-15 2017-03-22 腾讯科技(北京)有限公司 Authority control method of media file, server and equipment
CN105872626A (en) * 2015-12-15 2016-08-17 乐视网信息技术(北京)股份有限公司 Video playing method and device
CN106303615A (en) * 2016-08-15 2017-01-04 腾讯科技(深圳)有限公司 Play the methods, devices and systems of video

Also Published As

Publication number Publication date
CN111669667A (en) 2020-09-15
CN111669667B (en) 2021-08-03

Similar Documents

Publication Publication Date Title
US10945048B2 (en) Methods and apparatus for presenting advertisements during playback of recorded television content
KR102378107B1 (en) Method for implementing personalized presentation of associated multimedia content, and application
US9755847B2 (en) Method and system for sharing and discovery
US8886896B2 (en) Storage format for media streams
WO2016058411A1 (en) Splicing method and splicing system for http live streaming media fragmentation
KR101470904B1 (en) Method and system for providing video
CN111316652A (en) Personalized content stream using aligned encoded content segments
US10642917B2 (en) Method and device for sharing segmented video content across multiple manifests
TW201123795A (en) System, method and apparatus for dynamic media file streaming
KR20080004503A (en) System and method for effectuating playlist seeking with respect to digital multimedia content from a network node
US9179173B1 (en) Systems and methods for processing a traffic log having an optional-promotion log entry
WO2018153237A1 (en) Caching method and system for replaying live broadcast, and playing method and system
WO2014208377A1 (en) Content supply device, content supply method, program, terminal device, and content supply system
CN111669645A (en) Video playing method and device, electronic equipment and storage medium
WO2020177468A1 (en) Method and apparatus for controlling content presentation, and server and storage medium
US11818186B2 (en) Distributed network recording system with synchronous multi-actor recording
US10891100B2 (en) System and method for capturing and accessing real-time audio and associated metadata
CN103648021B (en) The method that network video file is played from USB storage device
US11910050B2 (en) Distributed network recording system with single user control
US11611609B2 (en) Distributed network recording system with multi-user audio manipulation and editing
CA3159507A1 (en) Distributed network recording system with true audio to video frame syncchronization
CN112887786B (en) Video playing method and device and computer readable medium
CN112866794B (en) Audio track switching method and equipment
CN105323653B (en) A kind of method and apparatus playing segment video
JP4285015B2 (en) Network broadcasting system, content distribution method, and program providing apparatus

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

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

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: OTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM1205A DATED 26/01/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19918494

Country of ref document: EP

Kind code of ref document: A1