WO2012126349A1 - Method for implementing segmented program playback control, server and client - Google Patents

Method for implementing segmented program playback control, server and client Download PDF

Info

Publication number
WO2012126349A1
WO2012126349A1 PCT/CN2012/072598 CN2012072598W WO2012126349A1 WO 2012126349 A1 WO2012126349 A1 WO 2012126349A1 CN 2012072598 W CN2012072598 W CN 2012072598W WO 2012126349 A1 WO2012126349 A1 WO 2012126349A1
Authority
WO
WIPO (PCT)
Prior art keywords
segment
play
control parameter
duration
time
Prior art date
Application number
PCT/CN2012/072598
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 WO2012126349A1 publication Critical patent/WO2012126349A1/en

Links

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/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/26208Content 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 the scheduling operation being performed under constraints
    • H04N21/26233Content 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 the scheduling operation being performed under constraints involving content or additional data duration or size, e.g. length of a movie, size of an executable file
    • 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/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/812Monomedia components thereof involving advertisement data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Definitions

  • the present invention relates to the field of multimedia, and in particular to a method and system for controlling playback of a segmented program in a DASH (Dynamic adaptive streaming over HTTP) system.
  • DASH Dynamic adaptive streaming over HTTP
  • the traditional streaming service is based on RTSP (Real Time Streaming Protocol)/RTP (Real-time Transport Protocol).
  • RTSP Real Time Streaming Protocol
  • RTP Real-time Transport Protocol
  • DASH Dynamically adjusted streaming service
  • DASH Like other streaming services, DASH also supports on-demand and live broadcast services.
  • the HTTP protocol is essentially a text transfer protocol, it is not suitable for real-time streaming media transmission.
  • the program content is usually physically or logically divided into a number of small segments.
  • the client plays one or more segments of the media file each time according to the program index table (MPD: Media Presentation Description, including the index of the media segment), and then decodes and plays the downloaded data.
  • MPD Media Presentation Description
  • the technical problem to be solved by the present invention is to provide a method, a server and a client for realizing segmented program play control, which can dynamically adjust the play duration and the play content of the segmented program, thereby reducing the complexity and improvement of the segmentation process. User's viewing experience.
  • the present invention provides a method for implementing segmented program playback control, the segmented program includes one or more segments, and the method includes:
  • the server configures a play duration control parameter for each segment in the segmented program according to the length of time required for playing, and the play duration control parameter includes a play start time and/or a play end time;
  • the playback control is performed on the segments according to the play duration control parameters of the segments in the segmented program.
  • the above method may also have the following features:
  • the server carries the play duration control parameter of each segment in the segmented program in a program index table (MPD) of the segmented program;
  • MPD program index table
  • the client downloads the MPD, and obtains a play duration control parameter of each segment in the segmented program.
  • the above method may also have the following features:
  • the server configures the play duration control parameters for the segmentation to include:
  • Determining a play start time of the segment Determining a play start time of the segment; calculating a sum of a play start time of the segment and a duration required for the segment play to obtain a play end time of the segment; Setting a play duration control parameter of the segment by a play start time and a play end time;
  • determining a playback end time of the segment calculating a difference between a playback end time of the segment and a duration required for the segment playback to obtain a playback start time of the segment;
  • the play start time and the play end time configure the play duration control parameters of the segment.
  • the above method may also have the following features:
  • the setting, by the server, the play duration control parameter of the segment according to the segmentation start time and the play end time includes: configuring a play duration control parameter of the segment to include a play start time and a play bundle time of the segment;
  • the performing, by the client, the play control on the segment according to the segmented play duration control parameter includes: When the play duration control parameter of the segment includes a play start time and a play bundle time, the segment is controlled to start playing from the play start time, and the play end time stops playing.
  • the above method may also have the following features:
  • Configuring the playback duration control parameter of the segment according to the playback start time and the playback end time of the segment includes: configuring, when determining that the playback start time of the segment corresponds to a beginning position of the segment
  • the segmentation play duration control parameter only includes the play end time of the segment
  • the client performing play control on the segment according to the segment play duration control parameter includes: playing duration control parameter in the segment When only the playback end time is included, the segment is controlled to start playing from the beginning, and the playback end time is stopped.
  • the above method may also have the following features:
  • the configuring, by the server, the play duration control parameter of the segment according to the playback start time and the play end time of the segment includes: configuring the segment when determining that the playback end time of the segment corresponds to the end position of the segment
  • the play duration control parameter of the segment only includes the play start time of the segment; the client performs play control on the segment according to the segment play duration control parameter, including: the play duration control parameter of the segment only When the play start time is included, the segment is controlled to start playing from the play start time, and the end position of the segment is stopped.
  • the above method may also have the following features:
  • the present invention also provides a server for implementing segmented program play control, the segmented program includes one or more segments, and the server includes:
  • the configuration module is configured to: configure a play duration control parameter for each segment in the segmented program according to the length of time required to be played, where the play duration control parameter includes a play start time and/or a play end time.
  • the above server may also have the following characteristics:
  • the encapsulation module is configured to: carry the play duration control parameter of each segment in the segmentation program in a program index table (MPD) of the segmentation program.
  • MPD program index table
  • the above server may also have the following characteristics:
  • the configuration module can include:
  • a first configuration unit configured to: determine a playback start time of the segment
  • An operation unit configured to: calculate a sum of a play start time of the segment and a duration required for the segment play to obtain a play end time of the segment;
  • a second configuration unit configured to: configure a play duration control parameter of the segment according to the play start time and the play end time of the segment.
  • the above server may also have the following characteristics:
  • the configuration module may also include:
  • a first configuration unit configured to: determine a playback end time of the segment
  • An operation unit configured to: calculate a difference between a playback end time of the segment and a duration required for the segment playback to obtain a playback start time of the segment;
  • a second configuration unit configured to: configure a play duration control parameter of the segment according to the play start time and the play end time of the segment.
  • the above server may also have the following characteristics:
  • the second configuration unit is further configured to: configure a play duration control parameter of the segment to include a play start time and a play bundle time of the segment.
  • the above server may also have the following characteristics:
  • the first configuration unit is further configured to: send a first control instruction to the second configuration unit when determining that a playback start time of the segment corresponds to a beginning position of the segment;
  • the second configuration unit is further configured to: configure, according to the first control instruction, a play duration control parameter of the segment to only include a play end time of the segment.
  • the above server may also have the following characteristics:
  • the first configuration unit is further configured to: send a second control instruction to the second configuration unit when determining that a playback end time of the segment corresponds to an end position of the segment;
  • the second configuration unit is further configured to: configure, according to the second control instruction, a play duration control parameter of the segment to only include a play start time of the segment.
  • the present invention further provides a client that implements segmented program play control, the segmented program includes one or more segments, and the client includes:
  • a play control module configured to: when playing the segmented program, perform play control on each segment according to a play duration control parameter configured for each segment in the play segment program;
  • the play duration control parameters include a play start time and/or a play end time.
  • the above client may also have the following characteristics:
  • the obtaining module is configured to: obtain a play duration control parameter of each segment in the segmented program from a program index table (MPD) of the segmented program.
  • MPD program index table
  • the above client may also have the following characteristics:
  • the playing control module performs play control on the segment according to the segmented play duration control parameter, including:
  • the play duration control parameter only includes the play end time
  • the segment is controlled to start playing from the play start time, and the play end time stops playing
  • the play duration control parameter only includes the play end time
  • the segment is controlled to start playing from the beginning, and the play end time stops playing
  • the play duration control parameter includes only the play start time
  • the segment is controlled to start playing from the play start time, and the end position of the segment is stopped.
  • the above client may also have the following characteristics:
  • the play control module is further configured to: when performing play control on the segment, calculate a duration required for the segment play according to the play duration control parameter of the segment, and determine whether the duration of the segment play is greater than The total duration of the segment, if greater, repeats the segment until the duration of its playback is equal to the length of time it needs to be played.
  • the method, the server and the client for implementing the segmented program play control provided by the embodiment of the invention can dynamically adjust the play duration and the play content of the segmented program, thereby reducing the complexity of the segmentation and improving the user's viewing experience. .
  • BRIEF abstract 1 is a flowchart of a method for implementing segmented program play control according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for configuring play length control parameters for segmentation according to an embodiment of the present invention
  • FIG. 3 is a client of an embodiment of the present invention
  • a flowchart of a method for playing control of the segment according to a play duration control parameter configured for the segment
  • FIG. 4 is a block diagram of an apparatus for controlling a server for segmented program playback according to an embodiment of the present invention
  • Figure 5 is a block diagram of an apparatus for controlling a client for segmented program playback in accordance with an embodiment of the present invention. Preferred embodiment of the invention
  • the segmented program includes one or more segments, and the method includes the following steps:
  • Step S101 The server configures a play duration control parameter for each segment in the segmented program according to the length of time required to be played, where the play duration control parameter includes a play start time and/or a play end time;
  • Step S102 When playing the segmented program, the client performs play control on each segment according to the play duration control parameter of each segment in the segmented program.
  • the present invention increases the playing duration control function, that is, according to the actual playing time, the server side flexibly configures the playing duration control parameter for each segment in the segmented program, thereby making the client
  • the end side can effectively control the play time and the play content according to the configured play duration control parameter.
  • the above scheme of the invention can flexibly adjust the insertion duration and the playback content of the advertisement, so that the user can watch the program consistently, and the user experience is improved, without adjusting for different scenes.
  • the production of segmentation has low implementation cost and great market value.
  • the server may configure a play duration control parameter for each segment in each segmented program by starting a corresponding process or service.
  • the server may expand the MPD, and each of the segmented programs The segmented play duration control parameters are carried in the MPD of the segmented program.
  • the playback duration control parameter of each segment in the segmentation program can be conveniently obtained from the MPD.
  • the server configures the play duration control parameter for the segmentation by using any one of the following methods:
  • a first mode determining a playback start time of the segment; calculating a sum of a playback start time of the segment and a duration required for the segment playback to obtain a playback end time of the segment;
  • the playback start time and the playback end time of the segment configure the playback duration control parameters of the segment.
  • a second mode determining a playback end time of the segment; calculating a difference between a playback end time of the segment and a duration required for the segment playback to obtain a playback start time of the segment; The play start time and the play end time configure the play duration control parameters of the segment.
  • the mode may be used: configuring the segment play duration control parameter to include the segment Play start time and play bundle time.
  • the client performs the play control on the segment according to the play duration control parameter, the segment is controlled to start playing from the play start time, and the play end time stops playing.
  • the present invention is directed to two special scenarios, namely, starting from the beginning of the segment and playing to the end of the segment, and providing the following configuration for omitting some parameters:
  • the play duration control parameter configuring the segment only includes the playback end time of the segment. That is, for the scenario of starting playback from the beginning of the segment, the playback start time of the configuration segment can be omitted.
  • the client controls the segment to start playing from the beginning, and stops the playing until the playing end time.
  • the playing duration control parameter of the segment is configured to only include the playback start time of the segment. That is, for the scenario of playing to the end of the segment, the playback end time of the configuration segment can be omitted.
  • the segment playing time control parameter includes only the playing start time
  • the client controls the segment to start playing from the playing start time, and stops playing until the end position of the segment.
  • Step S202 determining whether segmentation is required to start playing from the beginning, if yes, executing step S204; otherwise, performing step S203;
  • Step S203 configuring the playback start time of the segment, and executing step S204;
  • Step S204 determining whether the segmentation is required to end to the end, and if so, executing step S207; otherwise, executing step S205;
  • Step S205 Calculate the playback end time of the segment according to the required duration of the segment playback, and perform step S206;
  • Step S206 Configure a playback end time of the segment according to the calculation result.
  • Step S207 End.
  • the server After configuring the play duration control parameter for all the segments in the segmentation program, the server carries the play duration control parameter of each segment in the segmentation program in the MPD of the segmentation program.
  • a new field may be added to the segment that needs to be adjusted in the MPD, and the play start time and the play end time configured for the segment are respectively carried, and the newly added field is optional, if used for carrying If the field of the playback start time of the segment does not exist, it means that the segment is played from the beginning, and if the field for the playback end time of the bearer segment does not exist, it means that the end of the segment is played until the end.
  • the playback start time of the segment may be set according to the length of time required for the segmentation. / or playback end time, that is, the difference between the playback end time and the playback start time allowed to be configured for the segment is greater than the total duration of the segment.
  • the client further calculates the duration of the segmentation play according to the segmentation duration control parameter, and determines whether the duration of the segmentation is greater than the total duration of the segment. If it is greater than, the playback will be repeated. The segment is until the length of time it is played is equal to the length of time it needs to be played.
  • the server may adjust the precision of the configured play start time and/or the play end time according to specific needs. For example, different precision time units such as s, ms, etc. may be used.
  • the client downloads the MPD of the segmented program, obtains index information of each segment in the segmented program, downloads the segments, and plays the downloaded segment.
  • the index information exists in the form of a URL, and the client downloads the corresponding segment according to the segmented URL. Since the above solution of the present invention is used, the play duration control function is added, and after receiving the MPD of the segmented program, the client also obtains the play duration control parameter of each segment in the segmentation program, and according to Playback control is performed on each segment in the segmented program.
  • the following is an example of performing playback control on a segment of a segmented program. Referring to FIG. 3, the steps include:
  • Step S301 start;
  • Step S302 determining whether the received MPD includes the playback start time configured for the segment, and if yes, executing step S303; otherwise, executing step S304;
  • Whether the playback start time configured for the segmentation is included may be determined by searching whether the MPD includes a field for carrying a playback start time configured for the segmentation;
  • Step S303 Control the segment to start playing from the playback start time, step S305 is performed;
  • Step S304 Control the segment to start playing from the beginning, and perform step S305;
  • Step S305 determining whether the received MPD includes the playback end time configured for the segmentation, and if yes, executing step S306; otherwise, executing step S307;
  • Whether the playback end time configured for the segmentation is included may be determined by searching whether the MPD includes a field for carrying the playback end time configured for the segmentation;
  • Step S306 playing the segment until the end of the playback end time is stopped, step S308 is performed;
  • Step S307 playing the segment to the end to stop, step S308;
  • Step S308 End.
  • Step S305 When performing the play control, the client calculates the length of time required for the segment play according to the segmentation duration control parameter, and determines whether the duration of the segment play needs to be greater than the total duration of the segment. If it is greater than, the segment is repeatedly played until the duration of its playing is equal to the length of time that it needs to be played, thereby realizing the repeated playback of the segment and ensuring the continuity of the viewing.
  • an embodiment of the present invention further provides a server for controlling segmented program playback, where the segmented program includes one or more segments, and the server, as shown in FIG. 4, includes:
  • the configuration module is configured to configure a play duration control parameter for each segment in the segmented program according to the duration of the play, where the play duration control parameter includes a play start time and/or a play end time.
  • a packaging module configured to carry a play duration control parameter of each segment in the segmentation program in a program index table (MPD) of the segmentation program.
  • MPD program index table
  • the configuration module may include:
  • a first configuration unit determining a playback start time of the segment
  • An operation unit calculating a sum of a play start time of the segment and a duration required for the segment play to obtain a play end time of the segment;
  • the second configuration unit configures the play duration control parameter of the segment according to the play start time and the play end time of the segment.
  • the configuration module may also include:
  • a first configuration unit determining a playback end time of the segment
  • An operation unit calculating a difference between a playback end time of the segment and a duration required for the segment playback to obtain a playback start time of the segment;
  • the second configuration unit configures the play duration control parameter of the segment according to the play start time and the play end time of the segment.
  • the second configuration unit may configure the play duration control parameter of the segment to include a play start time and a play bundle time of the segment.
  • the first configuration unit may send a first control instruction to the second configuration unit when determining that the playback start time of the segment corresponds to the beginning position of the segment; And, according to the first control instruction, configuring a play duration control parameter of the segment to only include a play end time of the segment.
  • the first configuration unit may send a second control instruction to the second configuration unit when determining that the playback end time of the segment corresponds to the end position of the segment; the second configuration unit, according to the The second control instruction is configured to configure the play duration control parameter of the segment to only include the play start time of the segment.
  • the embodiment of the present invention further provides a terminal for controlling segmented program playing. As shown in FIG. 5, the method includes:
  • an obtaining module configured to acquire a play duration control parameter of each segment in the segmented program from a program index table (MPD) of the segmented program.
  • MPD program index table
  • a play control module configured to perform play control on each segment according to a play duration control parameter configured for each segment in the play segment program when playing the segment program; the play duration control parameter includes playing Start time and/or play end time.
  • the playing control module performs playback control on the segment according to the segment playing duration control parameter, including:
  • the play duration control parameter only includes the play end time
  • the segment is controlled to start playing from the play start time, and the play end time stops playing
  • the play duration control parameter only includes the play end time
  • the segment is controlled to start playing from the beginning, and the play end time stops playing
  • the play duration control parameter includes only the play start time
  • the segment is controlled to start playing from the play start time, and the end position of the segment is stopped.
  • the playing control module further calculates, according to the playing duration control parameter of the segment, the length of time required for the segment playing, and determines whether the length of time required for the segment playing is greater than the The total length of the segment, if greater, repeats the segment until it is played for a period of time equal to the length of time it needs to be played.
  • an embodiment of the present invention further provides a system for controlling segmented program playback, including the foregoing server and client.
  • the server configures playback for each segment in the segmented program a long control parameter
  • the client plays the segmented program
  • the playback control is performed on the segments according to the play duration control parameters configured for each segment in the segmented program, thereby finally implementing the segmented program. Play time and control of playback content.
  • a method, a server, and a client for implementing segmented program play control provided by an embodiment of the present invention can dynamically adjust a play duration and a play content of a segmented program, thereby reducing the complexity of creating a segment and improving the user. Viewing experience.

Landscapes

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

Abstract

A method for implementing segmented program playback control, a server and a client. The segmented program includes one or more segments. The method includes: a server configures playback duration control parameters for each segment in the segmented program according to the needed playback duration, with the playback duration control parameters including a playback start time and/or playback end time; and when playing the segmented program, a client executes playback control on each segment according to the playback duration control parameters of each segment in the segmented program. The method can dynamically adjust the playback duration and playback contents of the segmented program, thus decreasing the complexity of making segments and improving the viewing experience of the user.

Description

一种实现分段节目播放控制的方法、 服务器及客户端  Method, server and client for realizing segmented program play control
技术领域 Technical field
本发明涉及多媒体领域, 具体涉及一种在 DASH(Dynamic adaptive streaming over HTTP, 基于超文本传输协议的动态调整流媒体服务)系统中对 分段节目进行播放控制的方法及系统。 背景技术  The present invention relates to the field of multimedia, and in particular to a method and system for controlling playback of a segmented program in a DASH (Dynamic adaptive streaming over HTTP) system. Background technique
传统的流媒体服务是基于 RTSP ( Real Time Streaming Protocol, 实时流协 议)/RTP( Real-time Transport Protocol ,实时传输协议 )的。但是由于 RTSP/RTP 在穿越防火墙存在问题等缺点, 近两年发展出基于超文本传输协议 (HTTP, HyperText Transfer Protocol)来提供流媒体服务, 即 DASH(Dynamic adaptive streaming over HTTP, 基于超文本传输协议的动态调整流媒体服务)。 与其他 流媒体服务一样, DASH同样支持点播和直播服务。  The traditional streaming service is based on RTSP (Real Time Streaming Protocol)/RTP (Real-time Transport Protocol). However, due to the shortcomings of RTSP/RTP in the firewall, the development of streaming media services based on Hypertext Transfer Protocol (HTTP) in the past two years, namely DASH (Dynamic adaptive streaming over HTTP), is based on hypertext transfer protocol. Dynamically adjusted streaming service). Like other streaming services, DASH also supports on-demand and live broadcast services.
由于 HTTP协议本质上属于文本传输协议,并不适合实时的流媒体传输。 为了便于实现直播回放和边下载边看的功能, 通常将节目内容在物理或逻辑 上分成很多的小分段( segment ) 。 客户端根据节目索引表( MPD: Media Presentation Description, 包含媒体分段的索引等信息) , 每次下载媒体文件 的一个或多个分段进行播放, 然后对已下载的数据进行解码播放。  Since the HTTP protocol is essentially a text transfer protocol, it is not suitable for real-time streaming media transmission. In order to facilitate the functions of live playback and downloading while viewing, the program content is usually physically or logically divided into a number of small segments. The client plays one or more segments of the media file each time according to the program index table (MPD: Media Presentation Description, including the index of the media segment), and then decodes and plays the downloaded data.
由于播放都是以分段为基本单位, 因此, 在广告插入等场景, 不能实现 精确插入等问题。 例如, 釆用 DASH的流媒体服务器正在直播一个足球比赛 节目。 比赛双方在加时赛之后仍然战平, 需要通过点球大战来决定胜负。 在 加时赛比赛结束后, 在点球大战开始之前需要插入一段广告。 但是在加时赛 比赛结束到点球大战开始这段时间是不确定的。 如果插入过短的广告, 则还 要继续插入别的广告, 如果插入过长的广告, 则该广告必须播放完毕之后才 能回到比赛, 这显然是难以接受的。 发明内容 本发明要解决的技术问题是, 提供一种实现分段节目播放控制的方法、 服务器及客户端, 能够动态调整分段节目的播放时长和播放内容, 从而减小 制作分段的复杂度和提高用户的观看体验。 Since the playback is based on segmentation as a basic unit, problems such as precise insertion cannot be achieved in a scene such as an advertisement insertion. For example, a streaming server using DASH is broadcasting a football game show. Both sides of the game are still level after the overtime and need to pass the penalty shootout to decide the outcome. After the end of the overtime game, an ad needs to be inserted before the start of the penalty shootout. But the time between the end of the overtime game and the start of the penalty shootout is uncertain. If you insert a short ad, you will continue to insert another ad. If you insert a long ad, the ad must be played before you can return to the game, which is obviously unacceptable. Summary of the invention The technical problem to be solved by the present invention is to provide a method, a server and a client for realizing segmented program play control, which can dynamically adjust the play duration and the play content of the segmented program, thereby reducing the complexity and improvement of the segmentation process. User's viewing experience.
为了解决上述技术问题,本发明提出一种实现分段节目播放控制的方法, 所述分段节目包括一个或者多个分段, 该方法包括:  In order to solve the above technical problem, the present invention provides a method for implementing segmented program playback control, the segmented program includes one or more segments, and the method includes:
服务器根据需要播放的时长为分段节目中的各分段配置播放时长控制参 数, 所述播放时长控制参数包括播放起始时间和 /或播放结束时间;  The server configures a play duration control parameter for each segment in the segmented program according to the length of time required for playing, and the play duration control parameter includes a play start time and/or a play end time;
客户端在播放分段节目时, 根据所述分段节目中各分段的播放时长控制 参数对所述各分段执行播放控制。  When the client plays the segmented program, the playback control is performed on the segments according to the play duration control parameters of the segments in the segmented program.
优选地, 上述方法还可具有以下特点:  Preferably, the above method may also have the following features:
所述服务器将所述分段节目中各分段的播放时长控制参数承载于所述分 段节目的节目索引表(MPD ) 中;  The server carries the play duration control parameter of each segment in the segmented program in a program index table (MPD) of the segmented program;
所述客户端下载所述 MPD,从中获取到所述分段节目中各分段的播放时 长控制参数。  The client downloads the MPD, and obtains a play duration control parameter of each segment in the segmented program.
优选地, 上述方法还可具有以下特点:  Preferably, the above method may also have the following features:
所述服务器为分段配置播放时长控制参数包括:  The server configures the play duration control parameters for the segmentation to include:
确定所述分段的播放起始时间; 计算所述分段的播放起始时间与需要所 述分段播放的时长之和, 以得到所述分段的播放结束时间; 根据所述分段的 播放开始时间和播放结束时间配置所述分段的播放时长控制参数;  Determining a play start time of the segment; calculating a sum of a play start time of the segment and a duration required for the segment play to obtain a play end time of the segment; Setting a play duration control parameter of the segment by a play start time and a play end time;
或者, 确定所述分段的播放结束时间; 计算所述分段的播放结束时间与 需要所述分段播放的时长之差, 以得到所述分段的播放开始时间; 根据所述 分段的播放开始时间和播放结束时间配置所述分段的播放时长控制参数。  Or determining a playback end time of the segment; calculating a difference between a playback end time of the segment and a duration required for the segment playback to obtain a playback start time of the segment; The play start time and the play end time configure the play duration control parameters of the segment.
优选地, 上述方法还可具有以下特点:  Preferably, the above method may also have the following features:
所述服务器根据分段的播放开始时间和播放结束时间配置所述分段的播 放时长控制参数包括: 配置所述分段的播放时长控制参数包括所述分段的播 放开始时间和播放束时间;  The setting, by the server, the play duration control parameter of the segment according to the segmentation start time and the play end time includes: configuring a play duration control parameter of the segment to include a play start time and a play bundle time of the segment;
所述客户端根据分段的播放时长控制参数对所述分段执行播放控制包括: 在所述分段的播放时长控制参数包括播放开始时间和播放束时间时, 控制所 述分段从所述播放开始时间开始播放, 至所述播放结束时间停止播放。 The performing, by the client, the play control on the segment according to the segmented play duration control parameter includes: When the play duration control parameter of the segment includes a play start time and a play bundle time, the segment is controlled to start playing from the play start time, and the play end time stops playing.
优选地, 上述方法还可具有以下特点:  Preferably, the above method may also have the following features:
所述服务器根据分段的播放开始时间和播放结束时间配置所述分段的播 放时长控制参数包括: 在确定所述分段的播放起始时间对应所述分段的开头 位置时,配置所述分段的播放时长控制参数仅包含所述分段的播放结束时间; 所述客户端根据分段的播放时长控制参数对所述分段执行播放控制包括: 在所述分段的播放时长控制参数仅包含播放结束时间时, 控制所述分段从头 开始播放, 至所述播放结束时间停止播放。  Configuring the playback duration control parameter of the segment according to the playback start time and the playback end time of the segment includes: configuring, when determining that the playback start time of the segment corresponds to a beginning position of the segment The segmentation play duration control parameter only includes the play end time of the segment; the client performing play control on the segment according to the segment play duration control parameter includes: playing duration control parameter in the segment When only the playback end time is included, the segment is controlled to start playing from the beginning, and the playback end time is stopped.
优选地, 上述方法还可具有以下特点:  Preferably, the above method may also have the following features:
所述服务器根据分段的播放开始时间和播放结束时间配置所述分段的播 放时长控制参数包括: 在确定所述分段的播放结束时间对应所述分段的结尾 位置时,配置所述分段的播放时长控制参数仅包含所述分段的播放开始时间; 所述客户端根据分段的播放时长控制参数对所述分段执行播放控制包括: 在所述分段的播放时长控制参数仅包含播放开始时间时, 控制所述分段从所 述播放开始时间开始播放, 至所述分段的结尾位置停止播放。  The configuring, by the server, the play duration control parameter of the segment according to the playback start time and the play end time of the segment includes: configuring the segment when determining that the playback end time of the segment corresponds to the end position of the segment The play duration control parameter of the segment only includes the play start time of the segment; the client performs play control on the segment according to the segment play duration control parameter, including: the play duration control parameter of the segment only When the play start time is included, the segment is controlled to start playing from the play start time, and the end position of the segment is stopped.
优选地, 上述方法还可具有以下特点:  Preferably, the above method may also have the following features:
所述客户端根据分段的播放时长控制参数计算出需要所述分段播放的时 长, 判断需要所述分段播放的时长是否大于所述分段的总时长, 如果大于, 则重复播放所述分段, 直至其播放的时长等于需要其播放的时长。  Determining, by the client, the duration of the segmentation play according to the segmentation duration control parameter, determining whether the duration of the segmentation is greater than the total duration of the segment, and if greater than, repeating the playing Segmented until the length of time it plays is equal to the length of time it needs to be played.
为了解决上述技术问题, 本发明还提出一种实现分段节目播放控制的服 务器, 所述分段节目包括一个或者多个分段, 所述服务器包括:  In order to solve the above technical problem, the present invention also provides a server for implementing segmented program play control, the segmented program includes one or more segments, and the server includes:
配置模块, 其设置为: 根据需要播放的时长为分段节目中的各分段配置 播放时长控制参数, 所述播放时长控制参数包括播放起始时间和 /或播放结束 时间。  The configuration module is configured to: configure a play duration control parameter for each segment in the segmented program according to the length of time required to be played, where the play duration control parameter includes a play start time and/or a play end time.
优选地, 上述服务器还可具有以下特点:  Preferably, the above server may also have the following characteristics:
封装模块, 设置为: 将所述分段节目中各分段的播放时长控制参数承载 于所述分段节目的节目索引表(MPD ) 中。 优选地, 上述服务器还可具有以下特点: The encapsulation module is configured to: carry the play duration control parameter of each segment in the segmentation program in a program index table (MPD) of the segmentation program. Preferably, the above server may also have the following characteristics:
所述配置模块可以包括:  The configuration module can include:
第一配置单元, 设置为: 确定分段的播放起始时间;  a first configuration unit, configured to: determine a playback start time of the segment;
运算单元, 设置为: 计算所述分段的播放起始时间与需要所述分段播放 的时长之和, 以得到所述分段的播放结束时间;  An operation unit, configured to: calculate a sum of a play start time of the segment and a duration required for the segment play to obtain a play end time of the segment;
第二配置单元, 设置为: 根据所述分段的播放开始时间和播放结束时间 配置所述分段的播放时长控制参数。  And a second configuration unit, configured to: configure a play duration control parameter of the segment according to the play start time and the play end time of the segment.
优选地, 上述服务器还可具有以下特点:  Preferably, the above server may also have the following characteristics:
所述配置模块也可以包括:  The configuration module may also include:
第一配置单元, 设置为: 确定分段的播放结束时间;  a first configuration unit, configured to: determine a playback end time of the segment;
运算单元, 设置为: 计算所述分段的播放结束时间与需要所述分段播放 的时长之差, 以得到所述分段的播放开始时间;  An operation unit, configured to: calculate a difference between a playback end time of the segment and a duration required for the segment playback to obtain a playback start time of the segment;
第二配置单元, 设置为: 根据所述分段的播放开始时间和播放结束时间 配置所述分段的播放时长控制参数。  And a second configuration unit, configured to: configure a play duration control parameter of the segment according to the play start time and the play end time of the segment.
优选地, 上述服务器还可具有以下特点:  Preferably, the above server may also have the following characteristics:
所述第二配置单元还设置为: 配置所述分段的播放时长控制参数包括所 述分段的播放开始时间和播放束时间。  The second configuration unit is further configured to: configure a play duration control parameter of the segment to include a play start time and a play bundle time of the segment.
优选地, 上述服务器还可具有以下特点:  Preferably, the above server may also have the following characteristics:
所述第一配置单元还设置为: 在确定分段的播放起始时间对应所述分段 的开头位置时, 向所述第二配置单元发送第一控制指令;  The first configuration unit is further configured to: send a first control instruction to the second configuration unit when determining that a playback start time of the segment corresponds to a beginning position of the segment;
所述第二配置单元还设置为: 根据所述第一控制指令, 配置所述分段的 播放时长控制参数仅包含所述分段的播放结束时间。  The second configuration unit is further configured to: configure, according to the first control instruction, a play duration control parameter of the segment to only include a play end time of the segment.
优选地, 上述服务器还可具有以下特点:  Preferably, the above server may also have the following characteristics:
所述第一配置单元还设置为: 在确定分段的播放结束时间对应所述分段 的结尾位置时, 向所述第二配置单元发送第二控制指令;  The first configuration unit is further configured to: send a second control instruction to the second configuration unit when determining that a playback end time of the segment corresponds to an end position of the segment;
所述第二配置单元还设置为: 根据所述第二控制指令, 配置所述分段的 播放时长控制参数仅包含所述分段的播放开始时间。 为了解决上述技术问题, 本发明还提出一种实现分段节目播放控制的客 户端, 所述分段节目包括一个或者多个分段, 所述客户端包括: The second configuration unit is further configured to: configure, according to the second control instruction, a play duration control parameter of the segment to only include a play start time of the segment. In order to solve the above technical problem, the present invention further provides a client that implements segmented program play control, the segmented program includes one or more segments, and the client includes:
播放控制模块, 其设置为: 在播放分段节目时, 根据为所述播放分段节 目中各分段配置的播放时长控制参数对所述各分段执行播放控制;  a play control module, configured to: when playing the segmented program, perform play control on each segment according to a play duration control parameter configured for each segment in the play segment program;
所述播放时长控制参数包括播放起始时间和 /或播放结束时间。  The play duration control parameters include a play start time and/or a play end time.
优选地, 上述客户端还可具有以下特点:  Preferably, the above client may also have the following characteristics:
获取模块, 设置为: 从所述分段节目的节目索引表(MPD ) 中获取所述 分段节目中各分段的播放时长控制参数。  The obtaining module is configured to: obtain a play duration control parameter of each segment in the segmented program from a program index table (MPD) of the segmented program.
优选地, 上述客户端还可具有以下特点:  Preferably, the above client may also have the following characteristics:
所述播放控制模块根据分段的播放时长控制参数对所述分段执行播放控 制包括:  The playing control module performs play control on the segment according to the segmented play duration control parameter, including:
在所述播放时长控制参数仅包含播放结束时间时, 控制所述分段从所述 播放开始时间开始播放, 至所述播放结束时间停止播放;  When the play duration control parameter only includes the play end time, the segment is controlled to start playing from the play start time, and the play end time stops playing;
在所述播放时长控制参数仅包含播放结束时间时, 控制所述分段从头开 始播放, 至所述播放结束时间停止播放;  When the play duration control parameter only includes the play end time, the segment is controlled to start playing from the beginning, and the play end time stops playing;
在所述播放时长控制参数仅包含播放开始时间时, 控制所述分段从所述 播放开始时间开始播放, 至所述分段的结尾位置停止播放。  When the play duration control parameter includes only the play start time, the segment is controlled to start playing from the play start time, and the end position of the segment is stopped.
优选地, 上述客户端还可具有以下特点:  Preferably, the above client may also have the following characteristics:
所述播放控制模块还设置为: 在对分段执行播放控制时, 根据所述分段 的播放时长控制参数计算需要所述分段播放的时长, 判断需要所述分段播放 的时长是否大于所述分段的总时长, 如果大于, 则重复播放所述分段, 直至 其播放的时长等于需要其播放的时长。  The play control module is further configured to: when performing play control on the segment, calculate a duration required for the segment play according to the play duration control parameter of the segment, and determine whether the duration of the segment play is greater than The total duration of the segment, if greater, repeats the segment until the duration of its playback is equal to the length of time it needs to be played.
本发明实施例提供的一种实现分段节目播放控制的方法、 服务器及客户 端, 能够动态调整分段节目的播放时长和播放内容, 从而减小制作分段的复 杂度和提高用户的观看体验。  The method, the server and the client for implementing the segmented program play control provided by the embodiment of the invention can dynamically adjust the play duration and the play content of the segmented program, thereby reducing the complexity of the segmentation and improving the user's viewing experience. .
附图概述 图 1是本发明实施例一种实现分段节目播放控制的方法流程图; 图 2是本发明实施例一种为分段配置播放时长控制参数的方法流程图; 图 3是本发明实施例客户端按照为分段配置的播放时长控制参数对所述 分段进行播放控制的方法流程图; BRIEF abstract 1 is a flowchart of a method for implementing segmented program play control according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for configuring play length control parameters for segmentation according to an embodiment of the present invention; FIG. 3 is a client of an embodiment of the present invention; a flowchart of a method for playing control of the segment according to a play duration control parameter configured for the segment;
图 4 是本发明实施例一种用于控制分段节目播放的服务器的装置方框 图;  4 is a block diagram of an apparatus for controlling a server for segmented program playback according to an embodiment of the present invention;
图 5 是本发明实施例一种用于控制分段节目播放的客户端的装置方框 图。 本发明的较佳实施方式  Figure 5 is a block diagram of an apparatus for controlling a client for segmented program playback in accordance with an embodiment of the present invention. Preferred embodiment of the invention
下面将结合附图来详细说明本发明实施方案。  Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
参见图 1 , 该图示出了本发明实施例一种实现分段节目播放控制的方法, 所述分段节目包括一个或者多个分段, 该方法包括步骤:  Referring to FIG. 1 , a method for implementing segmented program playback control according to an embodiment of the present invention is shown. The segmented program includes one or more segments, and the method includes the following steps:
步骤 S101 : 服务器根据需要播放的时长为分段节目中的各分段配置播放 时长控制参数, 所述播放时长控制参数包括播放起始时间和 /或播放结束时 间;  Step S101: The server configures a play duration control parameter for each segment in the segmented program according to the length of time required to be played, where the play duration control parameter includes a play start time and/or a play end time;
步骤 S102: 客户端在播放分段节目时, 根据所述分段节目中各分段的播 放时长控制参数对所述各分段执行播放控制。  Step S102: When playing the segmented program, the client performs play control on each segment according to the play duration control parameter of each segment in the segmented program.
本发明为了实现对分段节目的播放控制, 增加了播放时长控制功能, 即 根据实际需要播放的时长, 在服务器端灵活地为分段节目中的各分段配置播 放时长控制参数, 从而使得客户端侧能够按照所述配置的播放时长控制参数 有效地对播放时间和播放内容进行控制。 尤其对于广告插播, 在插播场景不 确定的情况下, 釆用本发明上述方案能够灵活调整广告的插播时长和播放内 容, 使得用户观看节目能够连贯, 提高了用户的体验, 无须因为不同的场景 调整分段的制作, 实现成本低, 具有很大的市场价值。  In order to realize the playing control of the segmented program, the present invention increases the playing duration control function, that is, according to the actual playing time, the server side flexibly configures the playing duration control parameter for each segment in the segmented program, thereby making the client The end side can effectively control the play time and the play content according to the configured play duration control parameter. Especially for the advertisement insertion, in the case that the insertion scene is uncertain, the above scheme of the invention can flexibly adjust the insertion duration and the playback content of the advertisement, so that the user can watch the program consistently, and the user experience is improved, without adjusting for different scenes. The production of segmentation has low implementation cost and great market value.
步骤 S101在具体实现时,服务器可以通过启动对应的进程或者服务, 为 各分段节目中的各分段配置播放时长控制参数。  In step S101, the server may configure a play duration control parameter for each segment in each segmented program by starting a corresponding process or service.
上述步骤 S101中, 所述服务器可以对 MPD进行扩展, 将分段节目中各 分段的播放时长控制参数承载于所述分段节目的 MPD中。所述客户端下载所 述 MPD播放分段节目时, 即可方便地从所述 MPD中获取到所述分段节目中 各分段的播放时长控制参数。 In the above step S101, the server may expand the MPD, and each of the segmented programs The segmented play duration control parameters are carried in the MPD of the segmented program. When the client downloads the MPD playback segment program, the playback duration control parameter of each segment in the segmentation program can be conveniently obtained from the MPD.
上述步骤 S101中,所述服务器为分段配置播放时长控制参数可以釆用下 述任意一种方式实现:  In the foregoing step S101, the server configures the play duration control parameter for the segmentation by using any one of the following methods:
第一方式: 确定分段的播放起始时间; 计算所述分段的播放起始时间与 需要所述分段播放的时长之和, 以得到所述分段的播放结束时间; 根据所述 分段的播放开始时间和播放结束时间配置所述分段的播放时长控制参数。  a first mode: determining a playback start time of the segment; calculating a sum of a playback start time of the segment and a duration required for the segment playback to obtain a playback end time of the segment; The playback start time and the playback end time of the segment configure the playback duration control parameters of the segment.
第二方式: 确定分段的播放结束时间; 计算所述分段的播放结束时间与 需要所述分段播放的时长之差, 以得到所述分段的播放开始时间; 根据所述 分段的播放开始时间和播放结束时间配置所述分段的播放时长控制参数。  a second mode: determining a playback end time of the segment; calculating a difference between a playback end time of the segment and a duration required for the segment playback to obtain a playback start time of the segment; The play start time and the play end time configure the play duration control parameters of the segment.
其中, 所述服务器根据分段的播放开始时间和播放结束时间配置所述分 段的播放时长控制参数时, 可以釆用此方式: 配置所述分段的播放时长控制 参数包括所述分段的播放开始时间和播放束时间。 相应地, 所述客户端根据 所述播放时长控制参数对分段执行播放控制时, 将控制所述分段从所述播放 开始时间开始播放, 至所述播放结束时间停止播放。  When the server configures the play duration control parameter of the segment according to the segment start play time and the play end time, the mode may be used: configuring the segment play duration control parameter to include the segment Play start time and play bundle time. Correspondingly, when the client performs the play control on the segment according to the play duration control parameter, the segment is controlled to start playing from the play start time, and the play end time stops playing.
较佳地, 本发明针对 2种特殊的情景, 即从分段的开头开始播放, 以及 播放至分段的结尾, 还提供了如下可省略部分参数的配置方式:  Preferably, the present invention is directed to two special scenarios, namely, starting from the beginning of the segment and playing to the end of the segment, and providing the following configuration for omitting some parameters:
所述服务器在确定分段的播放起始时间对应所述分段的开头位置时, 配 置所述分段的播放时长控制参数仅包含所述分段的播放结束时间。 即, 针对 从分段的开头开始播放的情景, 可以省略配置分段的播放开始时间。相应地, 所述客户端在分段的播放时长控制参数仅包含播放结束时间时, 将控制所述 分段从头开始播放, 至所述播放结束时间停止播放。  When the server determines that the playback start time of the segment corresponds to the beginning position of the segment, the play duration control parameter configuring the segment only includes the playback end time of the segment. That is, for the scenario of starting playback from the beginning of the segment, the playback start time of the configuration segment can be omitted. Correspondingly, when the segment playing time control parameter includes only the playing end time, the client controls the segment to start playing from the beginning, and stops the playing until the playing end time.
所述服务器在确定分段的播放结束时间对应所述分段的结尾位置时, 配 置所述分段的播放时长控制参数仅包含所述分段的播放开始时间。 即, 针对 播放至分段的结尾的情景, 可以省略配置分段的播放结束时间。 相应地, 所 述客户端在分段的播放时长控制参数仅包含播放开始时间时, 控制所述分段 从所述播放开始时间开始播放, 至所述分段的结尾位置停止播放。 为了进一步说明上述可省略部分参数的配置方式, 下面以为分段节目中 的一个分段配置播放时长控制参数为例进行说明, 参见图 2, 包括步骤: 步骤 S201 : 开始; When the server determines that the playback end time of the segment corresponds to the end position of the segment, the playing duration control parameter of the segment is configured to only include the playback start time of the segment. That is, for the scenario of playing to the end of the segment, the playback end time of the configuration segment can be omitted. Correspondingly, when the segment playing time control parameter includes only the playing start time, the client controls the segment to start playing from the playing start time, and stops playing until the end position of the segment. In order to further explain the above-mentioned configuration mode in which some parameters can be omitted, the following is an example of configuring a playback duration control parameter for a segment in a segmented program. Referring to FIG. 2, the method includes the following steps: Step S201: Start;
步骤 S202:判断是否需要分段从头开始播放,如果是,则执行步骤 S204; 否则, 执行步骤 S203;  Step S202: determining whether segmentation is required to start playing from the beginning, if yes, executing step S204; otherwise, performing step S203;
步骤 S203: 配置所述分段的播放起始时间, 执行步骤 S204;  Step S203: configuring the playback start time of the segment, and executing step S204;
步骤 S204: 判断是否需要所述分段播放至末尾结束, 如果是, 则执行步 骤 S207; 否则, 执行步骤 S205;  Step S204: determining whether the segmentation is required to end to the end, and if so, executing step S207; otherwise, executing step S205;
步骤 S205: 根据需要所述分段播放的时长, 计算出所述分段的播放结束 时间, 执行步骤 S206;  Step S205: Calculate the playback end time of the segment according to the required duration of the segment playback, and perform step S206;
步骤 S206: 根据计算结果, 配置所述分段的播放结束时间;  Step S206: Configure a playback end time of the segment according to the calculation result.
步骤 S207: 结束。  Step S207: End.
所述服务器在为分段节目中的所有分段配置完播放时长控制参数后, 将 所述分段节目中各分段的播放时长控制参数承载于所述分段节目的 MPD中。 在具体实现时,可以在 MPD中为需要调整的分段新增 2个字段,分别承载为 所述分段配置的播放起始时间和播放结束时间, 所述新增的字段可选, 如果 用于承载分段的播放起始时间的字段不存在,则表示从头开始播放所述分段, 如果用于承载分段的播放结束时间的字段不存在, 则表示一直播放到所述分 段的末尾。  After configuring the play duration control parameter for all the segments in the segmentation program, the server carries the play duration control parameter of each segment in the segmentation program in the MPD of the segmentation program. In a specific implementation, a new field may be added to the segment that needs to be adjusted in the MPD, and the play start time and the play end time configured for the segment are respectively carried, and the newly added field is optional, if used for carrying If the field of the playback start time of the segment does not exist, it means that the segment is played from the beginning, and if the field for the playback end time of the bearer segment does not exist, it means that the end of the segment is played until the end.
上述步骤 S101中,针对需要分段播放的时长大于所述分段的总时长的情 况, 为了确保持续观看, 可以根据需要所述分段播放的时长来设置所述分段 的播放起始时间和 /或播放结束时间, 即, 允许为分段配置的播放结束时间与 播放起始时间之差大于所述分段的总时长。 相应地, 客户端还根据分段的播 放时长控制参数计算出需要所述分段播放的时长, 判断需要所述分段播放的 时长是否大于所述分段的总时长, 如果大于, 将重复播放所述分段, 直至其 播放的时长等于需要其播放的时长。 这对于广告的插播, 尤为重要, 即使分 段的总时长比需要播放的时长要短, 也可以通过设置播放时间控制信息的方 式, 实现重复播放, 无须再插播另一广告, 也能够保证用户观看的流程性。 所述步骤 S101在具体执行时, 所述服务器可以根据具体需要, 调整配置 的播放起始时间和 /或播放结束时间的精度, 例如, 可以釆用 s、 ms等不同精 度的时间单位。 In the above step S101, in the case that the duration of the segmentation play is greater than the total duration of the segment, in order to ensure continuous viewing, the playback start time of the segment may be set according to the length of time required for the segmentation. / or playback end time, that is, the difference between the playback end time and the playback start time allowed to be configured for the segment is greater than the total duration of the segment. Correspondingly, the client further calculates the duration of the segmentation play according to the segmentation duration control parameter, and determines whether the duration of the segmentation is greater than the total duration of the segment. If it is greater than, the playback will be repeated. The segment is until the length of time it is played is equal to the length of time it needs to be played. This is especially important for the insertion of advertisements. Even if the total length of the segments is shorter than the duration of the playback, the playback time control information can be set to achieve repeat playback without the need to insert another advertisement. Processability. When the step S101 is specifically executed, the server may adjust the precision of the configured play start time and/or the play end time according to specific needs. For example, different precision time units such as s, ms, etc. may be used.
客户端下载分段节目的 MPD,从中获取所述分段节目中各分段的索引信 息, 据以下载所述各分段, 并播放下载下来的分段。 在 DASH系统中, 所述 索引信息以 URL形式存在, 客户端根据分段的 URL来下载对应的分段。 由 于釆用了本发明上述方案, 增加了播放时长控制功能, 所述客户端在接收到 分段节目的 MPD后, 还将从中获取分段节目中各分段的播放时长控制参数, 并据以对分段节目中的各分段执行播放控制。  The client downloads the MPD of the segmented program, obtains index information of each segment in the segmented program, downloads the segments, and plays the downloaded segment. In the DASH system, the index information exists in the form of a URL, and the client downloads the corresponding segment according to the segmented URL. Since the above solution of the present invention is used, the play duration control function is added, and after receiving the MPD of the segmented program, the client also obtains the play duration control parameter of each segment in the segmentation program, and according to Playback control is performed on each segment in the segmented program.
下面以对分段节目中的一个分段执行播放控制为例进行说明, 参见图 3 , 具体包括步骤:  The following is an example of performing playback control on a segment of a segmented program. Referring to FIG. 3, the steps include:
步骤 S301 : 开始;  Step S301: start;
步骤 S302: 判断接收到的 MPD中是否包含为所述分段配置的播放起始 时间, 如果是, 则执行步骤 S303; 否则, 执行步骤 S304;  Step S302: determining whether the received MPD includes the playback start time configured for the segment, and if yes, executing step S303; otherwise, executing step S304;
可以通过查找所述 MPD 中是否包含用于承载为分段配置的播放起始时 间的字段来判断是否包含为分段配置的播放起始时间;  Whether the playback start time configured for the segmentation is included may be determined by searching whether the MPD includes a field for carrying a playback start time configured for the segmentation;
步骤 S303:控制所述分段从所述播放起始时间开始播放,执行步骤 S305; 步骤 S304: 控制所述分段从头开始播放, 执行步骤 S305;  Step S303: Control the segment to start playing from the playback start time, step S305 is performed; Step S304: Control the segment to start playing from the beginning, and perform step S305;
步骤 S305:判断接收到的 MPD中是否包含为分段配置的播放结束时间, 如果是, 则执行步骤 S306; 否则, 执行步骤 S307;  Step S305: determining whether the received MPD includes the playback end time configured for the segmentation, and if yes, executing step S306; otherwise, executing step S307;
可以通过查找所述 MPD 中是否包含用于承载为分段配置的播放结束时 间的字段来判断是否包含为分段配置的播放结束时间;  Whether the playback end time configured for the segmentation is included may be determined by searching whether the MPD includes a field for carrying the playback end time configured for the segmentation;
步骤 S306: 播放所述分段直至到达所述播放结束时间停止, 执行步骤 S308;  Step S306: playing the segment until the end of the playback end time is stopped, step S308 is performed;
步骤 S307: 播放所述分段至末尾停止, 执行步骤 S308;  Step S307: playing the segment to the end to stop, step S308;
步骤 S308: 结束。  Step S308: End.
其中, 针对需要分段播放的时长大于所述分段的总时长的情况, 上述步 骤 S305在执行播放控制时,客户端将根据分段的播放时长控制参数计算出需 要所述分段播放的时长, 判断需要所述分段播放的时长是否大于所述分段的 总时长, 如果大于, 则重复播放所述分段, 直至其播放的时长等于需要其播 放的时长, 从而实现了分段的重复播放, 保证观看的持续性。 Wherein, in the case that the duration required for the segmentation is greater than the total duration of the segment, the above step Step S305: When performing the play control, the client calculates the length of time required for the segment play according to the segmentation duration control parameter, and determines whether the duration of the segment play needs to be greater than the total duration of the segment. If it is greater than, the segment is repeatedly played until the duration of its playing is equal to the length of time that it needs to be played, thereby realizing the repeated playback of the segment and ensuring the continuity of the viewing.
为了实现上述方法, 本发明实施例还提供了一种用于控制分段节目播放 的服务器, 所述分段节目包括一个或者多个分段, 所述服务器如图 4所示, 包括:  In order to implement the above method, an embodiment of the present invention further provides a server for controlling segmented program playback, where the segmented program includes one or more segments, and the server, as shown in FIG. 4, includes:
配置模块, 用于根据需要播放的时长为分段节目中的各分段配置播放时 长控制参数, 所述播放时长控制参数包括播放起始时间和 /或播放结束时间。  The configuration module is configured to configure a play duration control parameter for each segment in the segmented program according to the duration of the play, where the play duration control parameter includes a play start time and/or a play end time.
封装模块, 用于将所述分段节目中各分段的播放时长控制参数承载于所 述分段节目的节目索引表(MPD ) 中。  And a packaging module, configured to carry a play duration control parameter of each segment in the segmentation program in a program index table (MPD) of the segmentation program.
其中, 所述配置模块可以包括:  The configuration module may include:
第一配置单元, 确定分段的播放起始时间;  a first configuration unit, determining a playback start time of the segment;
运算单元, 计算所述分段的播放起始时间与需要所述分段播放的时长之 和, 以得到所述分段的播放结束时间;  An operation unit, calculating a sum of a play start time of the segment and a duration required for the segment play to obtain a play end time of the segment;
第二配置单元, 根据所述分段的播放开始时间和播放结束时间配置所述 分段的播放时长控制参数。  The second configuration unit configures the play duration control parameter of the segment according to the play start time and the play end time of the segment.
其中, 所述配置模块也可以包括:  The configuration module may also include:
第一配置单元, 确定分段的播放结束时间;  a first configuration unit, determining a playback end time of the segment;
运算单元, 计算所述分段的播放结束时间与需要所述分段播放的时长之 差, 以得到所述分段的播放开始时间;  An operation unit, calculating a difference between a playback end time of the segment and a duration required for the segment playback to obtain a playback start time of the segment;
第二配置单元, 根据所述分段的播放开始时间和播放结束时间配置所述 分段的播放时长控制参数。  The second configuration unit configures the play duration control parameter of the segment according to the play start time and the play end time of the segment.
其中, 所述第二配置单元, 可以配置所述分段的播放时长控制参数包括 所述分段的播放开始时间和播放束时间。  The second configuration unit may configure the play duration control parameter of the segment to include a play start time and a play bundle time of the segment.
其中, 所述第一配置单元, 可以在确定分段的播放起始时间对应所述分 段的开头位置时, 向所述第二配置单元发送第一控制指令; 所述第二配置单 元, 根据所述第一控制指令, 配置所述分段的播放时长控制参数仅包含所述 分段的播放结束时间。 The first configuration unit may send a first control instruction to the second configuration unit when determining that the playback start time of the segment corresponds to the beginning position of the segment; And, according to the first control instruction, configuring a play duration control parameter of the segment to only include a play end time of the segment.
其中, 所述第一配置单元, 可以在确定分段的播放结束时间对应所述分 段的结尾位置时, 向所述第二配置单元发送第二控制指令; 所述第二配置单 元, 根据所述第二控制指令, 配置所述分段的播放时长控制参数仅包含所述 分段的播放开始时间。  The first configuration unit may send a second control instruction to the second configuration unit when determining that the playback end time of the segment corresponds to the end position of the segment; the second configuration unit, according to the The second control instruction is configured to configure the play duration control parameter of the segment to only include the play start time of the segment.
为了实现上述方法, 本发明实施例还提供了一种用于控制分段节目播放 的终端, 如图 5所示, 包括:  In order to implement the foregoing method, the embodiment of the present invention further provides a terminal for controlling segmented program playing. As shown in FIG. 5, the method includes:
获取模块, 用于从所述分段节目的节目索引表( MPD ) 中获取所述分段 节目中各分段的播放时长控制参数。  And an obtaining module, configured to acquire a play duration control parameter of each segment in the segmented program from a program index table (MPD) of the segmented program.
播放控制模块, 用于在播放分段节目时, 根据为所述播放分段节目中各 分段配置的播放时长控制参数对所述各分段执行播放控制; 所述播放时长控 制参数包括播放起始时间和 /或播放结束时间。  a play control module, configured to perform play control on each segment according to a play duration control parameter configured for each segment in the play segment program when playing the segment program; the play duration control parameter includes playing Start time and/or play end time.
其中, 所述播放控制模块根据分段的播放时长控制参数对所述分段执行 播放控制包括:  The playing control module performs playback control on the segment according to the segment playing duration control parameter, including:
在所述播放时长控制参数仅包含播放结束时间时, 控制所述分段从所述 播放开始时间开始播放, 至所述播放结束时间停止播放;  When the play duration control parameter only includes the play end time, the segment is controlled to start playing from the play start time, and the play end time stops playing;
在所述播放时长控制参数仅包含播放结束时间时, 控制所述分段从头开 始播放, 至所述播放结束时间停止播放;  When the play duration control parameter only includes the play end time, the segment is controlled to start playing from the beginning, and the play end time stops playing;
在所述播放时长控制参数仅包含播放开始时间时, 控制所述分段从所述 播放开始时间开始播放, 至所述分段的结尾位置停止播放。  When the play duration control parameter includes only the play start time, the segment is controlled to start playing from the play start time, and the end position of the segment is stopped.
其中, 所述播放控制模块在对分段执行播放控制时, 还根据所述分段的 播放时长控制参数计算需要所述分段播放的时长, 判断需要所述分段播放的 时长是否大于所述分段的总时长, 如果大于, 则重复播放所述分段, 直至其 播放的时长等于需要其播放的时长。  The playing control module further calculates, according to the playing duration control parameter of the segment, the length of time required for the segment playing, and determines whether the length of time required for the segment playing is greater than the The total length of the segment, if greater, repeats the segment until it is played for a period of time equal to the length of time it needs to be played.
为了实现上述方法, 本发明实施例还提供了一种用于控制分段节目播放 的系统, 包括上述服务器与客户端。 服务器为分段节目中各分段配置播放时 长控制参数, 客户端在播放分段节目时, 将根据为所述分段节目中各分段配 置的播放时长控制参数, 对所述各分段进行播放控制, 从而最终实现对分段 节目的播放时长以及播放内容的控制。 In order to implement the above method, an embodiment of the present invention further provides a system for controlling segmented program playback, including the foregoing server and client. When the server configures playback for each segment in the segmented program a long control parameter, when the client plays the segmented program, the playback control is performed on the segments according to the play duration control parameters configured for each segment in the segmented program, thereby finally implementing the segmented program. Play time and control of playback content.
以上所述仅是本发明的优选实施方式, 应当指出, 本地播放或网上点播 多媒体文件进行多分支播放都在本发明的保护范围内。 对于本技术领域的技 术人员来说, 在不脱离本发明原理的前提下, 还可以作出若干改进和润饰, 这些改进和润饰也应视为本发明的保护范围。  The above description is only a preferred embodiment of the present invention, and it should be noted that local playback or on-demand multimedia files for multi-branch playback are within the scope of the present invention. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principles of the invention.
工业实用性 本发明实施例提供的一种实现分段节目播放控制的方法、 服务器及客户 端, 能够动态调整分段节目的播放时长和播放内容, 从而减小制作分段的复 杂度和提高用户的观看体验。 INDUSTRIAL APPLICABILITY A method, a server, and a client for implementing segmented program play control provided by an embodiment of the present invention can dynamically adjust a play duration and a play content of a segmented program, thereby reducing the complexity of creating a segment and improving the user. Viewing experience.

Claims

权 利 要 求 书 Claim
1、 一种实现分段节目播放控制的方法,所述分段节目包括一个或者多个 分段, 所述方法包括: A method for implementing segmented program playback control, the segmented program comprising one or more segments, the method comprising:
服务器根据需要播放的时长为分段节目中的各分段配置播放时长控制参 数, 所述播放时长控制参数包括播放起始时间和 /或播放结束时间;  The server configures a play duration control parameter for each segment in the segmented program according to the length of time required for playing, and the play duration control parameter includes a play start time and/or a play end time;
客户端在播放分段节目时, 根据所述分段节目中各分段的播放时长控制 参数对所述各分段执行播放控制。  When the client plays the segmented program, the playback control is performed on the segments according to the play duration control parameters of the segments in the segmented program.
2、 如权利要求 1所述的方法, 其中, 还包括: 2. The method according to claim 1, further comprising:
所述服务器将所述分段节目中各分段的播放时长控制参数承载于所述分 段节目的节目索引表(MPD ) 中;  The server carries the play duration control parameter of each segment in the segmented program in a program index table (MPD) of the segmented program;
所述客户端下载所述 MPD,从中获取到所述分段节目中各分段的播放时 长控制参数。  The client downloads the MPD, and obtains a play duration control parameter of each segment in the segmented program.
3、 如权利要求 1所述的方法,其中, 所述服务器为分段配置播放时长控 制参数包括: 3. The method of claim 1, wherein the server configured the play duration control parameters for the segmentation comprises:
确定所述分段的播放起始时间; 计算所述分段的播放起始时间与需要所 述分段播放的时长之和, 以得到所述分段的播放结束时间; 根据所述分段的 播放开始时间和播放结束时间配置所述分段的播放时长控制参数;  Determining a play start time of the segment; calculating a sum of a play start time of the segment and a duration required for the segment play to obtain a play end time of the segment; Setting a play duration control parameter of the segment by a play start time and a play end time;
或者,  Or,
确定所述分段的播放结束时间; 计算所述分段的播放结束时间与需要所 述分段播放的时长之差, 以得到所述分段的播放开始时间; 根据所述分段的 播放开始时间和播放结束时间配置所述分段的播放时长控制参数。  Determining a play end time of the segment; calculating a difference between a play end time of the segment and a duration required for the segment play to obtain a play start time of the segment; starting according to the segmentation play The time duration and the end time of the play configure the play duration control parameters of the segment.
4、 如权利要求 3所述的方法, 其中, 4. The method of claim 3, wherein
所述服务器根据分段的播放开始时间和播放结束时间配置所述分段的播 放时长控制参数包括: 配置所述分段的播放时长控制参数包括所述分段的播 放开始时间和播放束时间;  The setting, by the server, the play duration control parameter of the segment according to the segmentation start time and the play end time includes: configuring a play duration control parameter of the segment to include a play start time and a play bundle time of the segment;
所述客户端根据分段的播放时长控制参数对所述分段执行播放控制包括: 在所述分段的播放时长控制参数包括播放开始时间和播放束时间时, 控制所 述分段从所述播放开始时间开始播放, 至所述播放结束时间停止播放。 The performing, by the client, the play control on the segment according to the segmented play duration control parameter includes: When the play duration control parameter of the segment includes a play start time and a play bundle time, the segment is controlled to start playing from the play start time, and the play end time stops playing.
5、 如权利要求 3所述的方法, 其中, 5. The method of claim 3, wherein
所述服务器根据分段的播放开始时间和播放结束时间配置所述分段的播 放时长控制参数包括: 在确定所述分段的播放起始时间对应所述分段的开头 位置时,配置所述分段的播放时长控制参数仅包含所述分段的播放结束时间; 所述客户端根据分段的播放时长控制参数对所述分段执行播放控制包括: 在所述分段的播放时长控制参数仅包含播放结束时间时, 控制所述分段从头 开始播放, 至所述播放结束时间停止播放。  Configuring the playback duration control parameter of the segment according to the playback start time and the playback end time of the segment includes: configuring, when determining that the playback start time of the segment corresponds to a beginning position of the segment The segmentation play duration control parameter only includes the play end time of the segment; the client performing play control on the segment according to the segment play duration control parameter includes: playing duration control parameter in the segment When only the playback end time is included, the segment is controlled to start playing from the beginning, and the playback end time is stopped.
6、 如权利要求 3所述的方法, 其中, 6. The method of claim 3, wherein
所述服务器根据分段的播放开始时间和播放结束时间配置所述分段的播 放时长控制参数包括: 在确定所述分段的播放结束时间对应所述分段的结尾 位置时,配置所述分段的播放时长控制参数仅包含所述分段的播放开始时间; 所述客户端根据分段的播放时长控制参数对所述分段执行播放控制包括: 在所述分段的播放时长控制参数仅包含播放开始时间时, 控制所述分段从所 述播放开始时间开始播放, 至所述分段的结尾位置停止播放。  The configuring, by the server, the play duration control parameter of the segment according to the playback start time and the play end time of the segment includes: configuring the segment when determining that the playback end time of the segment corresponds to the end position of the segment The play duration control parameter of the segment only includes the play start time of the segment; the client performs play control on the segment according to the segment play duration control parameter, including: the play duration control parameter of the segment only When the play start time is included, the segment is controlled to start playing from the play start time, and the end position of the segment is stopped.
7、 如权利要求 1-6中任何一项所述的方法, 其中, 还包括: 7. The method of any of claims 1-6, further comprising:
所述客户端根据分段的播放时长控制参数计算出需要所述分段播放的时 长, 判断需要所述分段播放的时长是否大于所述分段的总时长, 如果大于, 则重复播放所述分段, 直至其播放的时长等于需要其播放的时长。  Determining, by the client, the duration of the segmentation play according to the segmentation duration control parameter, determining whether the duration of the segmentation is greater than the total duration of the segment, and if greater than, repeating the playing Segmented until the length of time it plays is equal to the length of time it needs to be played.
8、 一种实现分段节目播放控制的服务器,所述分段节目包括一个或者多 个分段, 所述服务器包括: 8. A server for implementing segmented program play control, the segmented program comprising one or more segments, the server comprising:
配置模块, 其设置为: 根据需要播放的时长为分段节目中的各分段配置 播放时长控制参数, 所述播放时长控制参数包括播放起始时间和 /或播放结束 时间。  The configuration module is configured to: configure a play duration control parameter for each segment in the segmented program according to the length of time required to be played, where the play duration control parameter includes a play start time and/or a play end time.
9、 如权利要求 8所述的服务器, 其中, 还包括: 封装模块, 设置为: 将所述分段节目中各分段的播放时长控制参数承载 于所述分段节目的节目索引表(MPD ) 中。 9. The server according to claim 8, further comprising: The encapsulation module is configured to: carry the play duration control parameter of each segment in the segmentation program in a program index table (MPD) of the segmentation program.
10、 如权利要求 8所述的服务器, 其中, 所述配置模块包括: 第一配置单元, 设置为: 确定分段的播放起始时间; The server of claim 8, wherein the configuration module comprises: a first configuration unit, configured to: determine a playback start time of the segment;
运算单元, 设置为: 计算所述分段的播放起始时间与需要所述分段播放 的时长之和, 以得到所述分段的播放结束时间;  An operation unit, configured to: calculate a sum of a play start time of the segment and a duration required for the segment play to obtain a play end time of the segment;
第二配置单元, 设置为: 根据所述分段的播放开始时间和播放结束时间 配置所述分段的播放时长控制参数。  And a second configuration unit, configured to: configure a play duration control parameter of the segment according to the play start time and the play end time of the segment.
11、 如权利要求 8所述的服务器, 其中, 所述配置模块包括: 第一配置单元, 设置为: 确定分段的播放结束时间; The server according to claim 8, wherein the configuration module comprises: a first configuration unit, configured to: determine a playback end time of the segment;
运算单元, 设置为: 计算所述分段的播放结束时间与需要所述分段播放 的时长之差, 以得到所述分段的播放开始时间;  An operation unit, configured to: calculate a difference between a playback end time of the segment and a duration required for the segment playback to obtain a playback start time of the segment;
第二配置单元, 设置为: 根据所述分段的播放开始时间和播放结束时间 配置所述分段的播放时长控制参数。  And a second configuration unit, configured to: configure a play duration control parameter of the segment according to the play start time and the play end time of the segment.
12、 如权利要求 10或 11所述的服务器, 其中, 12. The server according to claim 10 or 11, wherein
所述第二配置单元还设置为: 配置所述分段的播放时长控制参数包括所 述分段的播放开始时间和播放束时间。  The second configuration unit is further configured to: configure a play duration control parameter of the segment to include a play start time and a play bundle time of the segment.
13、 如权利要求 10所述的服务器, 其中, 13. The server according to claim 10, wherein
所述第一配置单元还设置为: 在确定分段的播放起始时间对应所述分段 的开头位置时, 向所述第二配置单元发送第一控制指令;  The first configuration unit is further configured to: send a first control instruction to the second configuration unit when determining that a playback start time of the segment corresponds to a beginning position of the segment;
所述第二配置单元还设置为: 根据所述第一控制指令, 配置所述分段的 播放时长控制参数仅包含所述分段的播放结束时间。  The second configuration unit is further configured to: configure, according to the first control instruction, a play duration control parameter of the segment to only include a play end time of the segment.
14、 如权利要求 11所述的服务器, 其中, 14. The server according to claim 11, wherein
所述第一配置单元还设置为: 在确定分段的播放结束时间对应所述分段 的结尾位置时, 向所述第二配置单元发送第二控制指令; 所述第二配置单元还设置为: 根据所述第二控制指令, 配置所述分段的 播放时长控制参数仅包含所述分段的播放开始时间。 The first configuration unit is further configured to: send a second control instruction to the second configuration unit when determining that the playback end time of the segment corresponds to an end position of the segment; The second configuration unit is further configured to: configure, according to the second control instruction, a play duration control parameter of the segment to only include a play start time of the segment.
15、 一种实现分段节目播放控制的客户端, 所述分段节目包括一个或者 多个分段, 所述客户端包括: A client that implements segmented program play control, the segmented program includes one or more segments, and the client includes:
播放控制模块, 其设置为: 在播放分段节目时, 根据为所述播放分段节 目中各分段配置的播放时长控制参数对所述各分段执行播放控制;  a play control module, configured to: when playing the segmented program, perform play control on each segment according to a play duration control parameter configured for each segment in the play segment program;
所述播放时长控制参数包括播放起始时间和 /或播放结束时间。  The play duration control parameters include a play start time and/or a play end time.
16、 如权利要求 15所述的客户端, 其中, 还包括: 16. The client of claim 15, further comprising:
获取模块, 设置为: 从所述分段节目的节目索引表(MPD ) 中获取所述 分段节目中各分段的播放时长控制参数。  The obtaining module is configured to: obtain a play duration control parameter of each segment in the segmented program from a program index table (MPD) of the segmented program.
17、 如权利要求 15所述的客户端,其中, 所述播放控制模块根据分段的 播放时长控制参数对所述分段执行播放控制包括: The client according to claim 15, wherein the playing control module performs the playing control on the segment according to the segment playing duration control parameter, including:
在所述播放时长控制参数仅包含播放结束时间时, 控制所述分段从所述 播放开始时间开始播放, 至所述播放结束时间停止播放;  When the play duration control parameter only includes the play end time, the segment is controlled to start playing from the play start time, and the play end time stops playing;
在所述播放时长控制参数仅包含播放结束时间时, 控制所述分段从头开 始播放, 至所述播放结束时间停止播放;  When the play duration control parameter only includes the play end time, the segment is controlled to start playing from the beginning, and the play end time stops playing;
在所述播放时长控制参数仅包含播放开始时间时, 控制所述分段从所述 播放开始时间开始播放, 至所述分段的结尾位置停止播放。  When the play duration control parameter includes only the play start time, the segment is controlled to start playing from the play start time, and the end position of the segment is stopped.
18、 如权利要求 15-17中任何一项所述的客户端, 其中, The client according to any one of claims 15-17, wherein
所述播放控制模块还设置为: 在对分段执行播放控制时, 根据所述分段 的播放时长控制参数计算需要所述分段播放的时长, 判断需要所述分段播放 的时长是否大于所述分段的总时长, 如果大于, 则重复播放所述分段, 直至 其播放的时长等于需要其播放的时长。  The play control module is further configured to: when performing play control on the segment, calculate a duration required for the segment play according to the play duration control parameter of the segment, and determine whether the duration of the segment play is greater than The total duration of the segment, if greater, repeats the segment until the duration of its playback is equal to the length of time it needs to be played.
PCT/CN2012/072598 2011-03-21 2012-03-20 Method for implementing segmented program playback control, server and client WO2012126349A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011100680209A CN102694823A (en) 2011-03-21 2011-03-21 Method, server and client side to realize control of segmented program playing
CN201110068020.9 2011-03-21

Publications (1)

Publication Number Publication Date
WO2012126349A1 true WO2012126349A1 (en) 2012-09-27

Family

ID=46860109

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/072598 WO2012126349A1 (en) 2011-03-21 2012-03-20 Method for implementing segmented program playback control, server and client

Country Status (2)

Country Link
CN (1) CN102694823A (en)
WO (1) WO2012126349A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016106532A1 (en) * 2014-12-29 2016-07-07 刘一佳 Method for playing back advertisement according to length of playback content, and playback device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101639295B1 (en) 2013-02-04 2016-07-13 후아웨이 테크놀러지 컴퍼니 리미티드 Method and apparatus for transmitting streaming media data
CN105430425B (en) * 2015-11-18 2018-11-16 深圳Tcl新技术有限公司 Single fragment video playing accelerating method and device
US10785092B2 (en) * 2017-07-28 2020-09-22 Skitter, Inc. System and method for providing fault tolerant streaming of segmented content and cache coherency on multi-hosted origin systems

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070286169A1 (en) * 2006-05-18 2007-12-13 Anthony Roman Radio flag (focused listening and advertising guide) system and method
CN101217638A (en) * 2007-12-28 2008-07-09 深圳市迅雷网络技术有限公司 A downloading method, system and device of video file fragmentation
CN101771673A (en) * 2008-12-26 2010-07-07 华为技术有限公司 Method and device for processing media data
CN101984663A (en) * 2010-10-18 2011-03-09 中兴通讯股份有限公司 Play control method and system of monitoring audio/video

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002073542A (en) * 2000-08-31 2002-03-12 Sony Corp Method for use reservation of server, reservation managing device and program storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070286169A1 (en) * 2006-05-18 2007-12-13 Anthony Roman Radio flag (focused listening and advertising guide) system and method
CN101217638A (en) * 2007-12-28 2008-07-09 深圳市迅雷网络技术有限公司 A downloading method, system and device of video file fragmentation
CN101771673A (en) * 2008-12-26 2010-07-07 华为技术有限公司 Method and device for processing media data
CN101984663A (en) * 2010-10-18 2011-03-09 中兴通讯股份有限公司 Play control method and system of monitoring audio/video

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016106532A1 (en) * 2014-12-29 2016-07-07 刘一佳 Method for playing back advertisement according to length of playback content, and playback device

Also Published As

Publication number Publication date
CN102694823A (en) 2012-09-26

Similar Documents

Publication Publication Date Title
EP2880869B1 (en) Method and system for dynamically inserting content into streaming media
US8806047B2 (en) Skip feature for a broadcast or multicast media station
CN102790925B (en) Method and VOD (Video On Demand) terminal for playing online streaming media
US20090240827A1 (en) Methods for transmitting multimedia files and advertisements
CN102333083B (en) A kind of method and system of transmission data
WO2010020183A1 (en) Method and device of transmission and play of advertisement programs
US20110145370A1 (en) Methods and systems to personalize content streams
CN102170584A (en) Method, device and system for playing media between synchronic HS (HTTP (HyperText Transfer Protocol) Streaming) terminal equipment
WO2018103696A1 (en) Media file playback method, server, client, and system
WO2005064945A1 (en) Method of transmitting content with adaptation of encoding characteristics
WO2012126349A1 (en) Method for implementing segmented program playback control, server and client
CN107318052A (en) Player method, television set and the storage medium of television video
CN105812847A (en) HLS video live broadcast method, server and system
WO2014026590A1 (en) Method, terminal and cdn server in iptv system for realizing playing while downloading
CN109005430A (en) A kind of order method, system, device and the storage medium of audio/video content
KR20110111858A (en) Apparatus and method for inserting advertisement in a broadcasting system
WO2017076009A1 (en) Program watch-back method, player and terminal
CN108124169A (en) A kind of P2P Video service accelerated methods of household radio router
CN108882013A (en) Adjust method, apparatus, electronic equipment and the storage medium of audio and video playing rate
CN113727199A (en) HLS slice rapid playing starting method
CN103607638A (en) Network media playing method, intelligent display terminal and intelligent display system
CN106303754A (en) A kind of audio data play method and device
US20150026711A1 (en) Method and apparatus for video content distribution
WO2012094992A1 (en) Method and system for data acquisition
KR20130103931A (en) Advance metadata provision augmented broadcasting apparatus and method

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

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

Country of ref document: EP

Kind code of ref document: A1