[go: up one dir, main page]

CN104159132B - Video customizes the implementation method and device of service - Google Patents

Video customizes the implementation method and device of service Download PDF

Info

Publication number
CN104159132B
CN104159132B CN201410419674.5A CN201410419674A CN104159132B CN 104159132 B CN104159132 B CN 104159132B CN 201410419674 A CN201410419674 A CN 201410419674A CN 104159132 B CN104159132 B CN 104159132B
Authority
CN
China
Prior art keywords
content
play list
media play
fragment
sent
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201410419674.5A
Other languages
Chinese (zh)
Other versions
CN104159132A (en
Inventor
黄挺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410419674.5A priority Critical patent/CN104159132B/en
Publication of CN104159132A publication Critical patent/CN104159132A/en
Application granted granted Critical
Publication of CN104159132B publication Critical patent/CN104159132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides the implementation method and device that a kind of video customizes service, this method, including:Whether content distribution network CDN service device judges in caching comprising the corresponding media play list of the first content, if, then directly according to the terminal identification information and the media play list dynamically generating customizedization media play list carried in the URL request, and the customization media play list is sent to the terminal;If not, then the corresponding media play list of the first content returned by content source site server is saved, the terminal is sent to according to the terminal identification information and the media play list dynamically generating customizedization media play list carried in the URL request, and by the customization media play list;The CDN server receives the fragment acquisition request of the first content sent by terminal, and the fragment is sent to the terminal, to reduce content source station pressure, and playout-delay is shorter.

Description

Video customizes the implementation method and device of service
Technical field
The present embodiments relate to implementation methods and device that the communication technology more particularly to a kind of video customize service.
Background technique
With network technical development, the terminals such as mobile phone, computer and TV can play network video content, wherein net Network video content includes advertisement, head, positive and piece portion.Normally program request playing sequence is:Advertisement, head, positive and piece Tail.
In order to improve the mode of content-on-demand, content supplier provides customization media play according to user class for user List (Media Playlist), such as:Content supplier allows VIP user to skip advertisement and head direct viewing positive, but Head can only be watched by limiting free or non-registered users simultaneously.
In the prior art, it requires to obtain Media from content source station when each order video of each terminal Playlist, it is larger so as to cause content source station pressure and playout-delay is longer.
Summary of the invention
This hair embodiment provides the implementation method and device of a kind of video customization service, to reduce content source station pressure Power, and playout-delay is shorter.
In a first aspect, the embodiment of the present invention provides a kind of implementation method of video customization service, including:
The reception of content distribution network CDN service device is sent after the master playlist for getting first content by terminal The media play list acquisition request of the first content;Wherein, in the media play list acquisition request of the first content It is requested comprising uniform resource position mark URL;
Whether the CDN server judge comprising the corresponding media play list of the first content in caching, if so, The CDN server is directly raw according to the terminal identification information carried in the URL request and media play list dynamic At customization media play list, and the customization media play list is sent to the terminal;If it is not, the then CDN Server saves the corresponding media play list of the first content returned by content source site server, according to the URL The terminal identification information carried in request and the media play list dynamically generating customizedization media play list, and will be described It customizes media play list and is sent to the terminal;
It wherein, include the fragment attribute information of the first content in the corresponding media play list of the first content; The corresponding media play list of the first content is that the content source site server is receiving what the CDN server was sent The media play list returned after the acquisition request of the media play list of the first content;
The CDN server receives the fragment acquisition request of the first content sent by terminal, and by the fragment It is sent to the terminal.
With reference to first aspect, in the first possible implementation of the first aspect, the corresponding matchmaker of the first content It include the fragment attribute information of the first content in the EXTINF identification information of body playlist.
With reference to first aspect or the first possible implementation of first aspect, second in first aspect are possible In implementation, the fragment attribute information of the first content includes:The advertisement of the first content and head fragment attribute letter Breath.
The possible implementation of second with reference to first aspect, in the third possible implementation of first aspect In, when in the terminal identification information including VIP end message, the CDN server is according to carrying in the URL request Terminal identification information and the media play list dynamically generating customizedization media play list, including:
The CDN server parses the media play list, dynamically generating customizedization according to the terminal identification information Media play list, wherein do not include advertisement fragment in the customization media play list.
The possible implementation of second with reference to first aspect, in the 4th kind of possible implementation of first aspect In, when in the terminal identification information including non-VIP end message, the CDN server is carried according in the URL request Terminal identification information and the media play list dynamically generating customizedization media play list, including:
The CDN server parses the media play list, dynamically generating customizedization according to the terminal identification information Media play list, wherein only include head fragment in the customization media play list.
With reference to first aspect, the first of first aspect is to the 4th kind of any possible implementation, in first party In the 5th kind of possible implementation in face, the content distribution network CDN service device reception is being got in first by terminal Before the media play list acquisition request of the first content sent after the master playlist of appearance, further include:
The CDN server receives the master playlist acquisition request of the first content sent by terminal;
The CDN server judge caching in whether include the first content master playlist, if so, described The master playlist is directly sent to the terminal by CDN server;If it is not, then the CDN server will be by the content The master playlist for the first content that source station server returns saves and the master playlist is sent to the terminal; Wherein, the master playlist of the first content is that the content source site server is receiving what the CDN server was sent The master playlist returned after the acquisition request of the master playlist of the first content.
With reference to first aspect, the first of first aspect is to the 4th kind of any possible implementation, in first party In the 6th kind of possible implementation in face, the fragment that the CDN server receives the first content sent by terminal is obtained Request is taken, and the fragment is sent to the terminal, including:
The CDN server receives the fragment acquisition request of the first content sent by terminal, and judges in caching It whether include the fragment;If so, the fragment is directly sent to the terminal by the CDN server;If it is not, then described The fragment of the first content returned by the content source site server is saved and is sent to the fragment by CDN server The terminal;Wherein, the fragment of first content is the content source site server in the institute for receiving the CDN server transmission State the fragment returned after the acquisition request of the fragment of first content.
Second aspect, the embodiment of the present invention provide a kind of implementation method of video customization service, including:
When content distribution network CDN service device determines media play list corresponding not comprising first content in caching, Content source site server receives the acquisition request of the media play list of the first content sent by the CDN server; Wherein, it is requested in the media play list acquisition request of the first content comprising uniform resource position mark URL;
The content source site server generates the corresponding media play list of the first content, and by the media play List is sent to the CDN server, so that the CDN server is according to the terminal identification information carried in the URL request With the media play list dynamically generating customizedization media play list, and the customization media play list is sent to The terminal;It wherein, include the fragment attribute information of the first content in the corresponding media play list of the first content 's.
In conjunction with second aspect, in the first possible implementation of the second aspect, the content source site server is raw At the corresponding media play list of the first content, including:
The media of the first content are written in the fragment attribute information of the first content by the content source site server In the EXTINF identification information of playlist, the corresponding media play list of the first content is generated.
In conjunction with the possible implementation of the first of second aspect or second aspect, second in second aspect is possible In implementation, the fragment attribute information of the first content includes:The advertisement of the first content and head fragment attribute letter Breath.
In conjunction with second aspect, second aspect the first to second of any possible implementation, in second aspect The third possible implementation in, the content source site server receives described first sent by the CDN server Before the acquisition request of the media play list of content, further include:
When the CDN server determines the master playlist for not including the first content in caching, content source station clothes Business device receives the acquisition request of the master playlist of the first content sent by the CDN server, and by described first The master playlist of content is sent to the CDN server.
In conjunction with second aspect, second aspect the first to the third any possible implementation, in second aspect The 4th kind of possible implementation in, the content source site server generates the corresponding media play column of the first content Table, and after the media play list is sent to the CDN server, further include:
When the CDN server determines the fragment for not including the first content in caching, the content source station service Device receives the acquisition request of the fragment of the first content sent by the CDN server, and dividing the first content Piece is sent to the CDN server.
The third aspect, the embodiment of the present invention provide a kind of content distribution network CDN service device, including:
First receiving module, described in receiving and being sent after the master playlist for getting first content as terminal The media play list acquisition request of first content;Wherein, include in the media play list acquisition request of the first content Uniform resource position mark URL request;
First judgment module, for judging whether comprising the corresponding media play list of the first content in caching, if It is, then directly according to the terminal identification information and media play list dynamically generating customizedization carried in the URL request Media play list, and the customization media play list is sent to the terminal;If it is not, will then be serviced by content source station The corresponding media play list of the first content that device returns saves, and is believed according to the terminal iidentification carried in the URL request Breath and the media play list dynamically generating customizedization media play list, and the customization media play list is sent To the terminal;
It wherein, include the fragment attribute information of the first content in the corresponding media play list of the first content; The corresponding media play list of the first content is that the content source site server is receiving what the CDN server was sent The media play list returned after the acquisition request of the media play list of the first content;
Transceiver module, for receiving the fragment acquisition request of the first content sent by terminal, and by the fragment It is sent to the terminal.
In conjunction with the third aspect, in the first possible implementation of the third aspect, the corresponding matchmaker of the first content It include the fragment attribute information of the first content in the EXTINF identification information of body playlist.
In conjunction with the possible implementation of the first of the third aspect or the third aspect, second in the third aspect is possible In implementation, the fragment attribute information of the first content includes:The advertisement of the first content and head fragment attribute letter Breath.
In conjunction with second of possible implementation of the third aspect, in the third possible implementation of the third aspect In, when in the terminal identification information including VIP end message, the first judgment module is specifically used for:According to the end Identification information is held to parse the media play list, dynamically generating customizedization media play list, wherein the customization media Advertisement fragment is not included in playlist.
In conjunction with second of possible implementation of the third aspect, in the 4th kind of possible implementation of the third aspect In, when in the terminal identification information including non-VIP end message, the first judgment module is specifically used for:According to described Terminal identification information parses the media play list, dynamically generating customizedization media play list, wherein the customization matchmaker It only include head fragment in body playlist.
In conjunction with the third aspect, the third aspect the first to the 4th kind of any possible implementation, in third party In the 5th kind of possible implementation in face, further include:
Second receiving module, for receiving the master playlist acquisition request of the first content sent by terminal;
Second judgment module, for judge caching in whether include the first content master playlist, if so, directly It connects and the master playlist is sent to the terminal;If it is not, will then be returned by the content source site server described first The master playlist of content saves and the master playlist is sent to the terminal;Wherein, the main broadcaster of the first content Emplacing table is the content source site server in the master playlist for receiving the first content that the CDN server is sent Acquisition request after return master playlist.
In conjunction with the third aspect, the third aspect the first to the 4th kind of any possible implementation, in third party In the 6th kind of possible implementation in face, the transceiver module is specifically used for:
The fragment acquisition request of the first content sent by terminal is received, and whether is judged in caching comprising described point Piece;If so, the fragment is directly sent to the terminal;If it is not, the institute that will then be returned by the content source site server The fragment for stating first content saves and the fragment is sent to the terminal;Wherein, the fragment of first content is the content Point that source station server returns after receiving the acquisition request of fragment for the first content that the CDN server is sent Piece.
Fourth aspect, the embodiment of the present invention provide a kind of content source site server, including:
Receiving module, for not including the corresponding matchmaker of first content in caching when content distribution network CDN service device determines When body playlist, the acquisition request of the media play list of the first content sent by the CDN server is received;Its In, it is requested in the media play list acquisition request of the first content comprising uniform resource position mark URL;
Generation module, for generating the corresponding media play list of the first content, and by the media play list It is sent to the CDN server, so that the CDN server is according to the terminal identification information and institute carried in the URL request It states media play list dynamically generating customizedization media play list, and the customization media play list is sent to described Terminal;It wherein, include the fragment attribute information of the first content in the corresponding media play list of the first content.
In conjunction with fourth aspect, in the first possible implementation of the fourth aspect, the generation module is specifically used for: The fragment attribute information of the first content is written in the EXTINF identification information of the media play list of the first content, Generate the corresponding media play list of the first content.
In conjunction with the possible implementation of the first of fourth aspect or fourth aspect, second in fourth aspect is possible In implementation, the fragment attribute information of the first content includes:The advertisement of the first content and head fragment attribute letter Breath.
In conjunction with fourth aspect, fourth aspect the first to second of any possible implementation, in fourth aspect The third possible implementation in, further include:
First transceiver module, for determining that the main broadcaster for not including the first content in caching is put when the CDN server When list, the acquisition request of the master playlist of the first content sent by the CDN server is received, and by described the The master playlist of one content is sent to the CDN server.
In conjunction with fourth aspect, fourth aspect the first to the third any possible implementation, in fourth aspect The 4th kind of possible implementation in, further include:
Second transceiver module, when for determining the fragment in caching not comprising the first content when the CDN server, Receive the acquisition request of the fragment of the first content sent by the CDN server, and by the fragment of the first content It is sent to the CDN server.
In the present invention, content distribution network CDN service device is received by terminal in the master playlist for getting first content The media play list acquisition request of the first content sent later;Wherein, the media play list of the first content It is requested in acquisition request comprising uniform resource position mark URL;Further, the CDN server judge caching in whether include The corresponding media play list of the first content, if so, the CDN server is directly carried according in the URL request Terminal identification information and the media play list dynamically generating customizedization media play list, and by the customization media Playlist is sent to the terminal;If it is not, then the CDN server will be in returned by content source site server described first Hold corresponding media play list to save, be arranged according to the terminal identification information carried in the URL request and the media play Table dynamically generating customizedization media play list, and the customization media play list is sent to the terminal, wherein institute State the fragment attribute information in the corresponding media play list of first content comprising the first content;The first content is corresponding Media play list be the content source site server in the matchmaker for receiving the first content that the CDN server is sent The media play list returned after the acquisition request of body playlist;Further, the CDN server reception is sent out by terminal The fragment acquisition request of the first content sent, and the fragment is sent to the terminal, to realize terminal in program request Media play list directly can be obtained by CDN server when video, not only reduce content source station pressure, but also playout-delay It is shorter.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram for the implementation method embodiment one that video of the present invention customizes service;
Fig. 2 is the flow diagram for the implementation method embodiment two that video of the present invention customizes service;
Fig. 3 is the flow diagram for the implementation method embodiment three that video of the present invention customizes service;
Fig. 4 is the structural schematic diagram of the content of present invention distribution network CDN server embodiment one;
Fig. 5 is the structural schematic diagram of the content of present invention distribution network CDN server embodiment two;
Fig. 6 is the structural schematic diagram of the content of present invention distribution network CDN server embodiment three;
Fig. 7 is the structural schematic diagram of the content of present invention source station server example one;
Fig. 8 is the structural schematic diagram of the content of present invention source station server example two;
Fig. 9 is the structural schematic diagram of the content of present invention source station server example three.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is the flow diagram for the implementation method embodiment one that video of the present invention customizes service, as shown in Figure 1, this The method of embodiment may include:
Step 101, content distribution network CDN service device receive by terminal the master playlist for getting first content it The media play list acquisition request of the first content sent afterwards.
In the embodiment of the present invention, content distribution network CDN service device is received by terminal in the main broadcaster for getting first content Emplace the media play list acquisition request of the first content sent after table, wherein the media of the first content are broadcast It emplaces in table acquisition request and is requested comprising uniform resource locator (Uniform Resource Locator, abbreviation URL).Its In, all URI rows are all used to identify the media play list of the first content, institute in the master playlist of the first content The master playlist for stating first content is used to describe the media play list of different code rates;The media play of the first content arranges All URI rows are all used to identify the media slicing of the first content in table, and the media play list of the first content is used for The media slicing list that the media content of one constant bit rate includes is described;It include terminal identification information in the URL request.
Whether step 102, the CDN server judge in caching comprising the corresponding media play column of the first content Table, if so, the CDN server is directly according to the terminal identification information and the media play carried in the URL request List dynamically generating customizedization media play list, and the customization media play list is sent to the terminal;If it is not, Then the CDN server saves the corresponding media play list of the first content returned by content source site server, root It is arranged according to the terminal identification information carried in the URL request and the media play list dynamically generating customizedization media play Table, and the customization media play list is sent to the terminal.
It wherein, include the fragment attribute information of the first content in the corresponding media play list of the first content; The corresponding media play list of the first content is that the content source site server is receiving what the CDN server was sent The media play list returned after the acquisition request of the media play list of the first content.
In the embodiment of the present invention, when the media that the CDN server receives a certain content that any terminal is sent for the first time are broadcast When emplacing table acquisition request, the CDN server can get the media play column of the content from content source site server Table simultaneously saves, in order to later when media play list of any terminal to content described in the CDN server request, The CDN server can the media play list directly to the content of local cache parse, without again from interior Hold and is obtained at the server of source station.
Therefore, in the embodiment of the present invention, media of the CDN server in the first content for receiving terminal transmission After playlist acquisition request, the CDN server judges according to the media play list acquisition request of the first content It whether include the corresponding media play list of the first content in the caching of the CDN server, if (namely at the end The media play list acquisition request that end sends the first content has had terminal once to obtain to CDN server request before Took the media play list of sent first content), then the CDN server is directly according to the end carried in the URL request Described in the corresponding media play list dynamic generation of the first content cached in end identification information and the CDN server eventually The customization media play list at end, and the customization media play list is sent to the terminal.Wherein, described first It include the fragment attribute information of the first content, optionally, the first content pair in the corresponding media play list of content It include the fragment attribute information of the first content in the EXTINF identification information for the media play list answered, wherein EXTINF It is a mark in HLS protocol, for indicating the duration and title of a fragment, such as:"#EXTINF:<duration>,< title>", wherein<duration>The duration for indicating fragment, can be a decimal integer or a decimal floating point Number;<title>It indicates the title of fragment, is a character string.Optionally, the fragment attribute information of the first content includes: The advertisement of the first content and head fragment attribute information.Optionally, the terminal identification information can include but is not limited to: The rank (such as VIP, non-VIP) of terminal.
Optionally, when in the terminal identification information including VIP end message, the CDN server is according to the end Identification information is held to parse the media play list, dynamically generating customizedization media play list, wherein the customization media Advertisement fragment is not included in playlist.
In the embodiment of the present invention, if the terminal identification information be VIP end message, the CDN server according to The first content corresponding media play of the terminal identification information to the fragment attribute information comprising the first content List is parsed (the advertisement fragment as described in deleting in media play list), the customization matchmaker of the terminal of dynamic generation Advertisement fragment, further, the CDN server are not included in body playlist namely the customization media play list Head fragment in the media play list can also be deleted according to the requirement of the terminal namely the customization media are broadcast Emplacing in table can also directly watch since positive not comprising head fragment namely the terminal.
Optionally, when in the terminal identification information including non-VIP end message, the CDN server is according to Terminal identification information parses the media play list, dynamically generating customizedization media play list, wherein the customization matchmaker It only include head fragment in body playlist.
In the embodiment of the present invention, if in the terminal identification information include non-VIP end message, the CDN service Device is according to the terminal identification information to the corresponding matchmaker of the first content of the fragment attribute information comprising the first content Body playlist is parsed (all fragments as described in deleting in media play list in addition to head), the institute of dynamic generation It states in the customization media play list namely the customization media play list of terminal only comprising head fragment, Ye Jisuo The head of the first content can be watched by stating terminal only.
Optionally, the terminal identification information can also include other information, accordingly, the media of the terminal custom The fragment for including in playlist may be other combining forms, and the embodiment of the present invention, details are not described herein again.
In the embodiment of the present invention, when the CDN server is according to the media play list acquisition request of the first content When judging not including in the caching of the CDN server the corresponding media play list of the first content (namely at the end Any terminal is not all requested to the CDN server before the media play list acquisition request of the end transmission first content Obtained the media play list of sent first content), the institute that the CDN server will be returned by the content source site server It states the corresponding media play list of first content to save, wherein the corresponding media play list of the first content is in described Hold source station server the acquisition request for receiving the media play list for the first content that the CDN server is sent it The media play list returned afterwards;It include the fragment category of the first content in the corresponding media play list of the first content Property information, optionally, the fragment attribute information of the first content may include:The advertisement of the first content, described first The head of content, the positive of the first content, the first content the fragments attribute information such as run-out.Further, described Fragment attribute letter of the CDN server according to the terminal identification information carried in the URL request and comprising the first content The customization media play list of terminal described in the corresponding media play list dynamic generation of the first content of breath, and by institute It states customization media play list and is sent to the terminal, the customization media play list is to the terminal custom Media Playlis。
Optionally, if the terminal identification information is VIP end message, the CDN server is according to the terminal It is the terminal dynamically generating customizedization media play list that identification information, which parses the media play list, wherein described fixed Advertisement fragment is not included in inhibition and generation media play list, further, the CDN server may be used also according to the requirement of the terminal To delete in head fragment namely the customization media play list in the media play list also not comprising head point Piece namely the terminal can be watched directly since positive.
Optionally, if the terminal identification information is non-VIP end message, the CDN server is according to the end Holding identification information to parse the media play list is the terminal dynamically generating customizedization media play list, wherein described Customizing only includes head fragment in media play list.
Optionally, the terminal identification information can also include other information, accordingly, the media of the terminal custom The fragment for including in playlist may be other combining forms, and the embodiment of the present invention, details are not described herein again.
Step 103, the CDN server receive the fragment acquisition request of the first content sent by terminal, and will The fragment is sent to the terminal.
In the embodiment of the present invention, the CDN server, which is received, is getting the customization media play list by terminal The fragment acquisition request of the first content sent later, and the fragment is sent to the terminal, so that the end End is watched.Optionally, the first content includes multiple fragments, and the terminal can successively send institute sequentially in time The fragment acquisition request or the terminal for stating each fragment of first content can send each of the first content simultaneously The fragment acquisition request of fragment.
In the embodiment of the present invention, content distribution network CDN service device is received by terminal in the main broadcaster for getting first content Emplace the media play list acquisition request of the first content sent after table;Wherein, the media of the first content are broadcast It emplaces in table acquisition request and is requested comprising uniform resource position mark URL;Further, it is in the CDN server judgement caching No includes the corresponding media play list of the first content, if so, the CDN server is directly according to the URL request The terminal identification information of middle carrying and the media play list dynamically generating customizedization media play list, and by the customization Change media play list and is sent to the terminal;If it is not, described in then the CDN server will be returned as content source site server The corresponding media play list of first content saves, according to the terminal identification information and the media carried in the URL request Playlist dynamically generating customizedization media play list, and the customization media play list is sent to the terminal, It wherein, include the fragment attribute information of the first content in the corresponding media play list of the first content;Described first The corresponding media play list of content is that the content source site server is receiving described the first of the CDN server transmission The media play list returned after the acquisition request of the media play list of content;Further, the CDN server receives By the fragment acquisition request for the first content that terminal is sent, and the fragment is sent to the terminal, to realize end End directly can obtain media play list by CDN server in order video, not only reduce content source station pressure, but also Playout-delay is shorter.
Optionally, the content distribution network CDN service device reception is emplaced by terminal in the main broadcaster for getting first content Before the media play list acquisition request of the first content sent after table, further include:
The CDN server receives the master playlist acquisition request of the first content sent by terminal;
The CDN server judge caching in whether include the first content master playlist, if so, described The master playlist is directly sent to the terminal by CDN server;If it is not, then the CDN server will be by the content The master playlist for the first content that source station server returns saves and the master playlist is sent to the terminal; Wherein, the master playlist of the first content is that the content source site server is receiving what the CDN server was sent The master playlist returned after the acquisition request of the master playlist of the first content.
In the embodiment of the present invention, when the main broadcaster that the CDN server receives a certain content that any terminal is sent for the first time is put When list acquisition request, the CDN server can get the master playlist of the content simultaneously from content source site server It saves, it is described in order to later when master playlist of any terminal to content described in the CDN server request The master playlist of the content directly can be sent to the terminal by CDN server, without servicing again from content source station It is obtained at device.
Therefore, in the embodiment of the present invention, main broadcaster of the CDN server in the first content for receiving terminal transmission After emplacing table acquisition request, the CDN server is according to the judgement of the master playlist acquisition request of the first content In the caching of CDN server whether include the first content master playlist, if (namely the terminal send described in There is terminal once to cross to the CDN server request before the master playlist acquisition request of first content and has sent first The master playlist of content), then the master playlist of the first content is directly sent to the end by the CDN server End;If not (namely any terminal be not all before the master playlist acquisition request that the terminal sends the first content The master playlist of sent first content is crossed to the CDN server request), then the CDN server will be by described interior Hold the master playlist that source station server returns to save and the master playlist is sent to the terminal;Wherein, institute The master playlist for stating first content is that the content source site server is receiving described the first of the CDN server transmission The master playlist returned after the acquisition request of the master playlist of content.
Optionally, above-mentioned steps 103 may include:
The CDN server receives the fragment acquisition request of the first content sent by terminal, and judges in caching It whether include the fragment;If so, the fragment is directly sent to the terminal by the CDN server;If it is not, then described The fragment of the first content returned by the content source site server is saved and is sent to the fragment by CDN server The terminal;Wherein, the fragment of first content is the content source site server in the institute for receiving the CDN server transmission State the fragment returned after the acquisition request of the fragment of first content.
In the embodiment of the present invention, when the fragment that the CDN server receives a certain content that any terminal is sent for the first time obtains When taking request, the CDN server can get fragment and the preservation of the content from content source site server, in order to it Afterwards when fragment of any terminal to content described in the CDN server request, the CDN server can be directly by institute The fragment for stating content is sent to the terminal, without obtaining from content source site server again.
Therefore, in the embodiment of the present invention, fragment of the CDN server in the first content for receiving terminal transmission After acquisition request, judge in the caching of the CDN server whether to include in described first according to the fragment acquisition request The fragment of appearance;If so, the fragment is directly sent to the terminal by the CDN server;If it is not, the then CDN service Device sends the request for obtaining the fragment of the first content to the content source site server, and will be serviced by the content source station The fragment for the first content that device returns saves and the fragment is sent to the terminal.
Optionally, the fragment attribute information of the first content can also include that fragment class information or content type are believed Breath etc., such as romance movie, violence film, cartoon information, in order to which the CDN server in the URL request according to carrying The media play list of terminal identification information and the fragment attribute information comprising the first content is dynamically generating customized Change media play list, and the customization media play list is sent to the terminal, to realize that film classification plays. When as in the terminal identification information comprising the use of the user of the terminal being children, then the customization media play list that generates In do not include romance movie, violence film etc., to limit the terminal plays romance movie, violence film etc..
Fig. 2 is the flow diagram for the implementation method embodiment two that video of the present invention customizes service, as shown in Figure 1, this The method of embodiment may include:
Step 201 does not include the corresponding media play of first content when content distribution network CDN service device determines in caching When list, content source site server receives obtaining for the media play list of the first content sent by the CDN server Take request.
Wherein, it is requested in the media play list acquisition request of the first content comprising uniform resource position mark URL.
In the embodiment of the present invention, when the media that the CDN server receives a certain content that any terminal is sent for the first time are broadcast When emplacing table acquisition request, the CDN server can get the media play column of the content from content source site server Table simultaneously saves, therefore, when the media play list in the caching that CDN server judges the CDN server including a certain content When, then the CDN server directly parses the media play list of the content of local cache, without again from interior Hold and is obtained at the server of source station.
To which in the embodiment of the present invention, the content source site server is received by the CDN server in determining caching The acquisition of media play list not comprising the first content sent after the corresponding media play list of first content is asked It asks, wherein requested in the media play list acquisition request of the first content comprising uniform resource position mark URL, the URL It include terminal identification information in request.
Step 202, the content source site server generate the corresponding media play list of the first content, and will be described Media play list is sent to the CDN server, so that the CDN server is according to the terminal carried in the URL request Identification information and the media play list dynamically generating customizedization media play list, and the customization media play is arranged Table is sent to the terminal.
It wherein, include the fragment attribute information of the first content in the corresponding media play list of the first content 's.
In the embodiment of the present invention, the content source site server is according to the acquisition of the media play list of the first content Request generates the corresponding media play list of the first content of the fragment attribute information comprising the first content, and by institute It states media play list and is sent to the CDN server, in order to which the CDN server in the URL request according to carrying Terminal identification information and the corresponding media play list dynamically generating customizedization media play list of the first content, and by institute It states customization media play list and is sent to the terminal.Optionally, the fragment attribute information of the first content includes:It is described The advertisement of first content and head fragment attribute information, the terminal identification information can include but is not limited to:The rank of terminal (such as VIP, non-VIP), wherein the fragment attribute information of the first content can also include the first content positive, The fragments attribute information such as run-out of the first content.
Optionally, the content source site server generates the corresponding media play list of the first content, including:
The media of the first content are written in the fragment attribute information of the first content by the content source site server In the EXTINF identification information of playlist, the corresponding media play list of the first content is generated.
In the embodiment of the present invention, the content source site server is by the way that the fragment attribute information of the first content to be written In the EXTINF identification information of the media play list of the first content in the content source site server caching, packet is generated The corresponding media play list of the first content of fragment attribute information containing the first content, in order to CDN clothes Business device solves the corresponding media play list of the first content according to the terminal identification information carried in the URL request Analysis, dynamically generating customizedization media play list.
It is corresponding when not including first content in the determining caching of content distribution network CDN service device in the embodiment of the present invention When media play list, the content source site server receives the media of the first content sent by the CDN server The acquisition request of playlist, wherein positioned in the media play list acquisition request of the first content comprising unified resource Accord with URL request;Further, the content source site server generates the corresponding media play list of the first content, and will The media play list is sent to the CDN server, so that the CDN server is according to carrying in the URL request Terminal identification information and the media play list dynamically generating customizedization media play list, and the customization media are broadcast It emplaces table and is sent to the terminal, to realize that terminal directly can obtain media by CDN server in order video and broadcast Table is emplaced, not only reduces content source station pressure, but also playout-delay is shorter.
Optionally, the content source site server receives the media of the first content sent by the CDN server Before the acquisition request of playlist, further include:
When the CDN server determines the master playlist for not including the first content in caching, content source station clothes Business device receives the acquisition request of the master playlist of the first content sent by the CDN server, and by described first The master playlist of content is sent to the CDN server.
In the embodiment of the present invention, when the main broadcaster that the CDN server receives a certain content that any terminal is sent for the first time is put When list acquisition request, the CDN server can get the master playlist of the content simultaneously from content source site server It saves, therefore, when master playlist of any terminal to content described in the CDN server request, the CDN service The master playlist of the content directly can be sent to the terminal by device, without obtaining from content source site server again It takes.
Sent CDN is being determined by the CDN server to which in the embodiment of the present invention, the content source site server is received The main broadcaster for not including the first content sent after the corresponding master playlist of first content in the caching of server emplaces The acquisition request of table, and the master playlist of the first content is sent to the CDN server.
Optionally, the content source site server generates the corresponding media play list of the first content, and will be described Media play list is sent to after the CDN server, further includes:
When the CDN server determines the fragment for not including the first content in caching, the content source station service Device receives the acquisition request of the fragment sent by the CDN server, and the fragment is sent to the CDN service Device.
In the embodiment of the present invention, when the fragment that the CDN server receives a certain content that any terminal is sent for the first time obtains When taking request, the CDN server can get fragment and the preservation of the content from content source site server, therefore, when Fragment from any terminal to content described in the CDN server request when, the CDN server can directly will be described interior The fragment of appearance is sent to the terminal, without obtaining from content source site server again.
Sent CDN is being determined by the CDN server to which in the embodiment of the present invention, the content source site server is received The acquisition request of the fragment sent after fragment in the caching of server not comprising the first content, and will be described point Piece is sent to the CDN server.
In the embodiment of the present invention, when the CDN server determines that the main broadcaster for not including the first content in caching emplaces When table, the acquisition that content source site server receives the master playlist of the first content sent by the CDN server is asked It asks, and the master playlist of the first content is sent to the CDN server;Further, as content distributing network CDN When server determines media play list corresponding not comprising first content in caching, the content source site server is received by institute State the acquisition request of the media play list of the first content of CDN server transmission, wherein the media of the first content It is requested in playlist acquisition request comprising uniform resource position mark URL;Further, the content source site server generates institute The corresponding media play list of first content is stated, and the media play list is sent to the CDN server, so that described CDN server is according to the terminal identification information and media play list dynamically generating customizedization carried in the URL request Media play list, and the customization media play list is sent to the terminal;Further, when the CDN service When device determines the fragment for not including the first content in caching, the content source site server is received by the CDN server The acquisition request of the fragment sent, and the fragment is sent to the CDN server, to realize that terminal is regarded in program request When frequency can directly by CDN server obtain media play list, not only reduce content source station pressure, but also playout-delay compared with It is short.
Fig. 3 is the flow diagram for the implementation method embodiment three that video of the present invention customizes service, as shown in figure 3, this The method of embodiment may include:1) terminal 1 is to the master playlist of CDN server request first content, such as Master Playlist(index.m3u8);2) do not include in CDN server local miss namely CDN server judgement caching The corresponding master playlist of the first content;3) CDN server is to first content described in the server request of content source station Master playlist;4) content source site server returns to the corresponding master playlist of the first content;5) CDN server is to end End 1 returns to the master playlist;6) media play list from terminal 1 to first content described in CDN server request, such as Media Playlist(01.m3u8);7) it is not wrapped in CDN server local miss namely CDN server judgement caching Containing the corresponding media play list of the first content;8) CDN server is to first described in the server request of content source station The media play list of content;9) content source site server is by the fragment Segement attribute of first content write-in described the In the title attribute of the EXTINF mark of the media play list of one content, the corresponding media play of the first content is generated List, such as:Original contents media play list is:
“#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:8
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:7.975,
Adv0.ts
#EXTINF:7.941,
Adv1.ts
#EXT-X-DISCONTINUITY
#EXT-X-MEDIA-SEQUENCE:2680
#EXTINF:7.975,
fileSequence2680.ts
#EXTINF:7.941,
fileSequence2681.ts
……
#EXTINF:7.975,
fileSequence3000.ts
#EXTINF:7.941,
fileSequence3001.ts
#ENDLIST";
By content source station coding after the corresponding media play list of the content be:
“#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:8
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:7.975,adv
Adv0.ts
#EXTINF:7.941,adv
Adv1.ts
#EXT-X-DISCONTINUITY
#EXT-X-MEDIA-SEQUENCE:2680
#EXTINF:7.975,prologue
fileSequence2680.ts
#EXTINF:7.941,prologue
fileSequence2681.ts
……
#EXTINF:7.975,
fileSequence3000.ts
#EXTINF:7.941,
fileSequence3001.ts
#ENDLIST";Wherein, " #EXTINF:" adv " indicates that the fragment is advertisement fragment in 7.975, adv ";"# EXTINF:" prologue " indicates that the fragment is head in 7.975, prologue ".
10) content source site server returns to the corresponding media play list of the first content, wherein the first content It include the fragment attribute information of the first content in corresponding media play list;11) CDN server is according to URL request The media play list dynamically generating customizedization media that the terminal identification information and content source site server of middle carrying return Playlist, such as:If user terminal is desirable to skip over advertisement, the CDN server parsing media comprising fragment attribute The fragment that wherein title is " adv " is removed from it by playlist, to form customization media play list, such as customization Changing media play list is:
“#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:8
#EXT-X-MEDIA-SEQUENCE:2680
#EXTINF:7.975,prologue
fileSequence2680.ts
#EXTINF:7.941,prologue
fileSequence2681.ts
……
#EXTINF:7.975,
fileSequence3000.ts
#EXTINF:7.941,
fileSequence3001.ts
#ENDLIST";
If user terminal can only watch head, the CDN server parsing media play comprising fragment attribute is arranged Table only retains the fragment that title is " prologue ", and to form customization media play list, such as customization media are broadcast Emplacing table is:
“#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:8
#EXT-X-MEDIA-SEQUENCE:2680
#EXTINF:7.975,prologue
fileSequence2680.ts
#EXTINF:7.941,prologue
fileSequence2681.ts
#ENDLIST";
12) CDN server returns to the customization media play list;13) terminal 1 is to CDN server request institute The fragment for stating first content, such as Segment (01-01.ts);14) CDN server local miss namely the CDN server The fragment of the first content is not included in judgement caching;15) CDN server is to described in the server request of content source station The fragment of one content;16) content source site server returns to the fragment to the CDN server;17) CDN server is to terminal 1 Return to the fragment;Repeat other fragments that step 13-17 obtains the first content;18) terminal 2 is requested to CDN server The master playlist for obtaining the first content, such as Master Playlist (index.m3u8);19) CDN server is locally ordered In namely the CDN server judgement caching in include the first content master playlist;20) CDN server directly to Terminal 2 returns to the master playlist of the first content;21) matchmaker of the terminal 2 to first content described in CDN server request Body playlist;22) locally hit namely the CDN server judge to include the first content pair in caching to CDN server The media play list answered, wherein include the fragment of the first content in the corresponding media play list of the first content Attribute information;23) CDN server is directly local according to the terminal identification information carried in URL request and the CDN server The corresponding media play list dynamically generating customizedization media play list of the first content of caching, such as:If user It is desirable to skip over advertisement, then the CDN server parsing media play list comprising fragment attribute, will title be wherein " adv " Fragment be removed from it, to form customization media play list;If user terminal can only watch head, CDN server The parsing media play list comprising fragment attribute, only retains the fragment that title is " prologue ", is customized with being formed Media play list;Wherein, the customization media play list example can be detailed in the present embodiment above-mentioned steps 11) described in, Details are not described herein again;
24) CDN server returns to the customization media play list;25) terminal 2 is to CDN server request institute State the fragment of first content;26) locally hit namely the CDN server judge to include described first in caching to CDN server The fragment of content;27) CDN server returns to the fragment to terminal 2;Repetition step 25-27 obtains its of the first content Its fragment.
Fig. 4 is the structural schematic diagram of the content of present invention distribution network CDN server embodiment one, as shown in figure 4, this implementation Example provide CDN server 40 include:First receiving module 401, first judgment module 402 and transceiver module 403.
Wherein, the first receiving module 401 is sent out after the master playlist for getting first content for receiving by terminal The media play list acquisition request of the first content sent;Wherein, the media play list acquisition of the first content is asked It is requested in asking comprising uniform resource position mark URL;
First judgment module 402 is used to judge in caching whether including the corresponding media play list of the first content, If so, directly dynamically generating customized according to the terminal identification information and the media play list that are carried in the URL request Change media play list, and the customization media play list is sent to the terminal;If it is not, will then be taken by content source station The corresponding media play list of the first content that business device returns saves, according to the terminal iidentification carried in the URL request Information and the media play list dynamically generating customizedization media play list, and the customization media play list is sent out Give the terminal;
It wherein, include the fragment attribute information of the first content in the corresponding media play list of the first content; The corresponding media play list of the first content is that the content source site server is receiving what the CDN server was sent The media play list returned after the acquisition request of the media play list of the first content;
Transceiver module, for receiving the fragment acquisition request of the first content sent by terminal, and by the fragment It is sent to the terminal.
It optionally, include in described first in the EXTINF identification information of the corresponding media play list of the first content The fragment attribute information of appearance.
Optionally, the fragment attribute information of the first content includes:The advertisement of the first content and head fragment category Property information.
Optionally, when in the terminal identification information including VIP end message, the first judgment module is specifically used In:The media play list, dynamically generating customizedization media play list are parsed according to the terminal identification information, wherein Advertisement fragment is not included in the customization media play list.
Optionally, when in the terminal identification information including non-VIP end message, the first judgment module is specifically used In:The media play list, dynamically generating customizedization media play list are parsed according to the terminal identification information, wherein It only include head fragment in the customization media play list.
The CDN server of the present embodiment can be used for the skill that above-mentioned video customizes the implementation method embodiment one of service Art scheme, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Fig. 5 is the structural schematic diagram of the content of present invention distribution network CDN server embodiment two, provided in this embodiment On the basis of Fig. 4 embodiment, CDN server 40 further includes CDN server 40:
Second receiving module 404, for receiving the master playlist acquisition request of the first content sent by terminal;
Second judgment module 405, for judge caching in whether include the first content master playlist, if so, The master playlist is directly then sent to the terminal;If it is not, described in then being returned as the content source site server The master playlist of first content saves and the master playlist is sent to the terminal;Wherein, the first content Master playlist is that the content source site server is put in the main broadcaster for receiving the first content that the CDN server is sent The master playlist returned after the acquisition request of list.
Optionally, the transceiver module is specifically used for:
The fragment acquisition request of the first content sent by terminal is received, and whether is judged in caching comprising described point Piece;If so, the fragment is directly sent to the terminal;If it is not, the institute that will then be returned by the content source site server The fragment for stating first content saves and the fragment is sent to the terminal;Wherein, the fragment of first content is the content Point that source station server returns after receiving the acquisition request of fragment for the first content that the CDN server is sent Piece.
The CDN server of the present embodiment can be used for the implementation method reality that above-mentioned CDN server side video customizes service The technical solution of example is applied, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Fig. 6 is the structural schematic diagram of the content of present invention distribution network CDN server embodiment three.As shown in fig. 6, this implementation The CDN server 60 that example provides includes processor 601 and memory 602.CDN server 60 can also include transmitter 603, connect Receive device 604.Wherein, transmitter 603 can be connected with receiver 604 with processor 601.Wherein, transmitter 603 is for sending number According to or information, for receiving data or information, the storage of memory 602 executes instruction receiver 604.When CDN server 60 is run When, it is communicated between processor 601 and memory 602, processor 601 calls executing instruction in memory 602, for executing State the operation in the implementation method embodiment of CDN server side video customization service.
The CDN server of the present embodiment can be used for executing the above-mentioned CDN server side video of the present invention and customize service Technical solution in implementation method embodiment, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Fig. 7 is the structural schematic diagram of the content of present invention source station server example one, as shown in fig. 7, the present embodiment provides Content source site server 70 include:Receiving module 701 and generation module 702.
Wherein, receiving module 701 is used to not include first content pair in caching when content distribution network CDN service device determines When the media play list answered, the acquisition of the media play list of the first content sent by the CDN server is received Request;Wherein, it is requested in the media play list acquisition request of the first content comprising uniform resource position mark URL;
Generation module 702 arranges the media play for generating the corresponding media play list of the first content Table is sent to the CDN server so that the CDN server according to the terminal identification information that is carried in the URL request and The media play list dynamically generating customizedization media play list, and the customization media play list is sent to institute State terminal;It wherein, include the fragment attribute information of the first content in the corresponding media play list of the first content.
Optionally, the generation module is specifically used for:The fragment attribute information of the first content is written described first In the EXTINF identification information of the media play list of content, the corresponding media play list of the first content is generated.
Optionally, the fragment attribute information of the first content includes:The advertisement of the first content and head fragment category Property information.
The content source site server of the present embodiment can be used for the implementation method embodiment two that above-mentioned video customizes service Technical solution, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Fig. 8 is the structural schematic diagram of the content of present invention source station server example two, content source station provided in this embodiment On the basis of Fig. 7 embodiment, content source site server 70 further includes server 70:
First transceiver module 703, for determining the main broadcaster in caching not comprising the first content when the CDN server When emplacing table, the acquisition request of the master playlist of the first content sent by the CDN server is received, and will be described The master playlist of first content is sent to the CDN server.
Optionally, content source site server 70 further includes:
Second transceiver module 704, for determining the fragment in caching not comprising the first content when the CDN server When, receive the acquisition request of the fragment of the first content sent by the CDN server, and dividing the first content Piece is sent to the CDN server.
The content source site server of the present embodiment can be used for above content source station server side video and customize service The technical solution of implementation method embodiment, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Fig. 9 is the structural schematic diagram of the content of present invention source station server example three.As shown in figure 9, the present embodiment provides Content source site server 90 include processor 901 and memory 902.Content source site server 90 can also include transmitter 903, receiver 904.Wherein, transmitter 903 can be connected with receiver 904 with processor 901.Wherein, transmitter 903 is used for Data or information are sent, receiver 904 is for receiving data or information, the storage of memory 902 execute instruction.When content source station takes When business device 90 is run, being communicated between processor 901 and memory 902, processor 901 calls executing instruction in memory 902, The operation in the implementation method embodiment of service is customized for executing above content source station server side video.
It is fixed to can be used for executing above content source station server side video of the present invention for the content source site server of the present embodiment Technical solution in the implementation method embodiment of inhibition and generation service, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Those of ordinary skill in the art will appreciate that:Realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, those skilled in the art should understand that:Its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (20)

1. the implementation method that a kind of video customizes service, which is characterized in that including:
Described in the reception of content distribution network CDN service device is sent after the master playlist for getting first content as terminal The media play list acquisition request of first content;Wherein, include in the media play list acquisition request of the first content Uniform resource position mark URL request;
Whether the CDN server judges comprising the corresponding media play list of the first content in caching, if so, described CDN server is directly fixed according to the terminal identification information and the media play list dynamic generation carried in the URL request Inhibition and generation media play list, and the customization media play list is sent to the terminal;If it is not, the then CDN service Device saves the corresponding media play list of the first content returned by content source site server, according to the URL request The terminal identification information of middle carrying and the media play list dynamically generating customizedization media play list, and by the customization Change media play list and is sent to the terminal;
It wherein, include the fragment attribute information of the first content in the corresponding media play list of the first content;It is described The corresponding media play list of first content is that the content source site server is receiving described in the CDN server transmission The media play list returned after the acquisition request of the media play list of first content, the fragment attribute of the first content Information includes:The advertisement of the first content and head fragment attribute information;
The CDN server receives the fragment acquisition request of the first content sent by terminal, and the fragment is sent To the terminal.
2. the method according to claim 1, wherein the first content corresponding media play list It include the fragment attribute information of the first content in EXTINF identification information.
3. the method according to claim 1, wherein when including VIP end message in the terminal identification information When, the CDN server is according to the terminal identification information and the media play list dynamic generation carried in the URL request Media play list is customized, including:
The CDN server parses the media play list, dynamically generating customizedization media according to the terminal identification information Playlist, wherein do not include advertisement fragment in the customization media play list.
4. the method according to claim 1, wherein when believing in the terminal identification information comprising non-VIP terminal When breath, the CDN server is raw according to the terminal identification information carried in the URL request and media play list dynamic At customization media play list, including:
The CDN server parses the media play list, dynamically generating customizedization media according to the terminal identification information Playlist, wherein only include head fragment in the customization media play list.
5. method according to any of claims 1-4, which is characterized in that the content distribution network CDN service device The media play list for receiving the first content sent after the master playlist for getting first content by terminal obtains Before taking request, further include:
The CDN server receives the master playlist acquisition request of the first content sent by terminal;
The CDN server judge caching in whether include the first content master playlist, if so, the CDN take The master playlist is directly sent to the terminal by business device;If it is not, then the CDN server will be taken by the content source station The master playlist for the first content that business device returns saves and the master playlist is sent to the terminal;Wherein, The master playlist of the first content is the content source site server in receive that the CDN server sends described the The master playlist returned after the acquisition request of the master playlist of one content.
6. method according to any of claims 1-4, which is characterized in that the CDN server reception is sent out by terminal The fragment acquisition request of the first content sent, and the fragment is sent to the terminal, including:
The CDN server receives the fragment acquisition request of the first content sent by terminal, and in judging to cache whether Include the fragment;If so, the fragment is directly sent to the terminal by the CDN server;If it is not, the then CDN The fragment of the first content returned by the content source site server is saved and the fragment is sent to institute by server State terminal;Wherein, the fragment of first content is that the content source site server is receiving described in the CDN server transmission The fragment returned after the acquisition request of the fragment of first content.
7. the implementation method that a kind of video customizes service, which is characterized in that including:
When content distribution network CDN service device determines media play list corresponding not comprising first content in caching, content Source station server receives the acquisition request of the media play list of the first content sent by the CDN server;Wherein, It is requested in the media play list acquisition request of the first content comprising uniform resource position mark URL;
The content source site server generates the corresponding media play list of the first content, and by the media play list It is sent to the CDN server, so that the CDN server is according to the terminal identification information and institute carried in the URL request It states media play list dynamically generating customizedization media play list, and the customization media play list is sent to described Terminal;It wherein, include the fragment attribute information of the first content, institute in the corresponding media play list of the first content The fragment attribute information for stating first content includes:The advertisement of the first content and head fragment attribute information.
8. the method according to the description of claim 7 is characterized in that the content source site server generates the first content pair The media play list answered, including:
The media play of the first content is written in the fragment attribute information of the first content by the content source site server In the EXTINF identification information of list, the corresponding media play list of the first content is generated.
9. the method according to any one of claim 7-8, which is characterized in that the content source site server is received by institute Before the acquisition request for stating the media play list of the first content of CDN server transmission, further include:
When the CDN server determines the master playlist for not including the first content in caching, content source site server Receive the acquisition request of the master playlist of the first content sent by the CDN server, and by the first content Master playlist be sent to the CDN server.
10. the method according to any one of claim 7-8, which is characterized in that the content source site server generates institute The corresponding media play list of first content is stated, and after the media play list is sent to the CDN server, is also wrapped It includes:
When the CDN server determines the fragment for not including the first content in caching, the content source site server is connect The acquisition request of the fragment of the first content sent by the CDN server is received, and the fragment of the first content is sent out Give the CDN server.
11. a kind of content distribution network CDN service device, which is characterized in that including:
First receiving module, for receiving sent after the master playlist for getting first content by terminal described first The media play list acquisition request of content;Wherein, comprising unified in the media play list acquisition request of the first content Resource Locator URL request;
First judgment module, for judging whether comprising the corresponding media play list of the first content in caching, if so, Directly broadcast according to the terminal identification information and the media play list dynamically generating customizedization media that are carried in the URL request Table is emplaced, and the customization media play list is sent to the terminal;If it is not, will then be returned by content source site server The corresponding media play list of the first content save, according to the terminal identification information and institute carried in the URL request It states media play list dynamically generating customizedization media play list, and the customization media play list is sent to described Terminal;
It wherein, include the fragment attribute information of the first content in the corresponding media play list of the first content;It is described The corresponding media play list of first content is that the content source site server is receiving described in the CDN server transmission The media play list returned after the acquisition request of the media play list of first content, the fragment attribute of the first content Information includes:The advertisement of the first content and head fragment attribute information;
Transceiver module for receiving the fragment acquisition request of the first content sent by terminal, and the fragment is sent To the terminal.
12. CDN server according to claim 11, which is characterized in that the corresponding media play column of the first content It include the fragment attribute information of the first content in the EXTINF identification information of table.
13. CDN server according to claim 11, which is characterized in that when whole comprising VIP in the terminal identification information When client information, the first judgment module is specifically used for:The media play list is parsed according to the terminal identification information, is moved State, which generates, customizes media play list, wherein does not include advertisement fragment in the customization media play list.
14. CDN server according to claim 11, which is characterized in that when in the terminal identification information include non-VIP When end message, the first judgment module is specifically used for:The media play list is parsed according to the terminal identification information, Dynamically generating customizedization media play list, wherein only include head fragment in the customization media play list.
15. CDN server described in any one of 1-14 according to claim 1, which is characterized in that further include:
Second receiving module, for receiving the master playlist acquisition request of the first content sent by terminal;
Second judgment module, for judging whether include the master playlist of the first content in caching, if so, directly will The master playlist is sent to the terminal;If it is not, the first content that will then be returned by the content source site server Master playlist save and the master playlist is sent to the terminal;Wherein, the main broadcaster of the first content emplaces Table is that the content source site server is receiving obtaining for the master playlist for the first content that the CDN server is sent Take the master playlist returned after request.
16. CDN server described in any one of 1-14 according to claim 1, which is characterized in that the transceiver module is specifically used In:
The fragment acquisition request of the first content sent by terminal is received, and whether is judged in caching comprising the fragment; If so, the fragment is directly sent to the terminal;If it is not, will then be returned by the content source site server described The fragment of one content saves and the fragment is sent to the terminal;Wherein, the fragment of first content is the content source station The fragment that server returns after the acquisition request for receiving the fragment for the first content that the CDN server is sent.
17. a kind of content source site server, which is characterized in that including:
Receiving module, for determining that not including the corresponding media of first content in caching broadcasts when content distribution network CDN service device When emplacing table, the acquisition request of the media play list of the first content sent by the CDN server is received;Wherein, It is requested in the media play list acquisition request of the first content comprising uniform resource position mark URL;
Generation module is sent for generating the corresponding media play list of the first content, and by the media play list To the CDN server, so that the CDN server is according to the terminal identification information and the matchmaker carried in the URL request Body playlist dynamically generating customizedization media play list, and the customization media play list is sent to the end End;It wherein, include the fragment attribute information of the first content in the corresponding media play list of the first content, it is described The fragment attribute information of first content includes:The advertisement of the first content and head fragment attribute information.
18. content source site server according to claim 17, which is characterized in that the generation module is specifically used for:It will The fragment attribute information of the first content is written in the EXTINF identification information of the media play list of the first content, raw At the corresponding media play list of the first content.
19. content source site server described in any one of 7-18 according to claim 1, which is characterized in that further include:
First transceiver module, for determining the master playlist in caching not comprising the first content when the CDN server When, receive the acquisition request of the master playlist of the first content sent by the CDN server, and will be in described first The master playlist of appearance is sent to the CDN server.
20. content source site server described in any one of 7-18 according to claim 1, which is characterized in that further include:
Second transceiver module, for receiving when the CDN server determines the fragment for not including the first content in caching The acquisition request of the fragment of the first content sent by the CDN server, and the fragment of the first content is sent To the CDN server.
CN201410419674.5A 2014-08-22 2014-08-22 Video customizes the implementation method and device of service Active CN104159132B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410419674.5A CN104159132B (en) 2014-08-22 2014-08-22 Video customizes the implementation method and device of service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410419674.5A CN104159132B (en) 2014-08-22 2014-08-22 Video customizes the implementation method and device of service

Publications (2)

Publication Number Publication Date
CN104159132A CN104159132A (en) 2014-11-19
CN104159132B true CN104159132B (en) 2018-11-20

Family

ID=51884522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410419674.5A Active CN104159132B (en) 2014-08-22 2014-08-22 Video customizes the implementation method and device of service

Country Status (1)

Country Link
CN (1) CN104159132B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330751B (en) * 2015-06-18 2019-07-26 上海交通大学 Resource dynamic request time window and terminal caching method under heterogeneous network transmission
CN104967861B (en) * 2015-05-27 2019-01-22 上海赛特斯信息科技股份有限公司 Video caching system and method in CDN network
CN105472408A (en) * 2015-12-01 2016-04-06 兴天通讯技术有限公司 Smart television-based multi-level interaction advertisement push method
CN105407165A (en) * 2015-12-01 2016-03-16 兴天通讯技术有限公司 Multi-stage interactive advertisement pushing system based on smart television
CN105812833A (en) * 2016-04-07 2016-07-27 网宿科技股份有限公司 File processing method and device
CN106850581B (en) * 2017-01-04 2020-06-23 网宿科技股份有限公司 Distribution backup method, system and server for interactive live broadcast streaming media data
CN109542613A (en) * 2017-09-22 2019-03-29 中兴通讯股份有限公司 Distribution method, device and the storage medium of service dispatch in a kind of CDN node
CN111654741B (en) * 2019-03-04 2023-03-31 青岛海尔多媒体有限公司 Video data acquisition method and device, computer equipment and storage medium
CN111669667B (en) * 2019-03-06 2021-08-03 中兴通讯股份有限公司 Content display control method and device, server and storage medium
CN113727153B (en) * 2021-08-30 2023-10-13 聚好看科技股份有限公司 A server, display device and media asset playlist caching method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101627602A (en) * 2006-12-22 2010-01-13 英国天空广播公司 Media demand and playback system
CN101682734A (en) * 2007-01-05 2010-03-24 Sync电视公司 Method of inserting promotional content within downloaded video content
US8234350B1 (en) * 2011-12-19 2012-07-31 Seachange International, Inc. Systems and methods for generating targeted manifest files
CN103081461A (en) * 2010-06-28 2013-05-01 葫芦有限责任公司 Method and apparatus for providing streaming media programs and targeted advertisements
US8645990B2 (en) * 2006-12-22 2014-02-04 Ciena Corporation Dynamic advertising control

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9043484B2 (en) * 2010-04-02 2015-05-26 Disney Enterprises, Inc. Streaming playback and dynamic ad insertion
WO2011139305A1 (en) * 2010-05-04 2011-11-10 Azuki Systems, Inc. Method and apparatus for carrier controlled dynamic rate adaptation and client playout rate reduction
CN105339922B (en) * 2013-02-12 2018-10-12 爱立信股份有限公司 Individual crosses top network video recorder

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101627602A (en) * 2006-12-22 2010-01-13 英国天空广播公司 Media demand and playback system
US8645990B2 (en) * 2006-12-22 2014-02-04 Ciena Corporation Dynamic advertising control
CN101682734A (en) * 2007-01-05 2010-03-24 Sync电视公司 Method of inserting promotional content within downloaded video content
CN103081461A (en) * 2010-06-28 2013-05-01 葫芦有限责任公司 Method and apparatus for providing streaming media programs and targeted advertisements
US8234350B1 (en) * 2011-12-19 2012-07-31 Seachange International, Inc. Systems and methods for generating targeted manifest files

Also Published As

Publication number Publication date
CN104159132A (en) 2014-11-19

Similar Documents

Publication Publication Date Title
CN104159132B (en) Video customizes the implementation method and device of service
US11877017B2 (en) System for measuring video playback events using a server generated manifest/playlist
US9917872B2 (en) Method and apparatus for performing adaptive streaming on media contents
JP6088439B2 (en) Apparatus and method for storing and playing back content in multimedia streaming system
CN100505630C (en) A method and system for rotating and buffering advertisements in a network live broadcast environment
US8510375B2 (en) Apparatus and methods for time mapping media segments in streaming media files
CN106060102B (en) Media providing method and terminal
US20130212231A1 (en) Method, apparatus and system for dynamic media content insertion based on http streaming
EP2493191B1 (en) Method, device and system for realizing hierarchically requesting content in http streaming system
WO2011074547A1 (en) Content delivery system, content delivery apparatus, content playback terminal and content delivery method
US20140297810A1 (en) Method For Processing Information And Server
CN108063769A (en) A kind of implementation method of content service, device and content delivery network node
US11184669B2 (en) Distribution of network traffic for streaming content
CN101267589A (en) System and method for realizing interactive business
CN111182331B (en) Media data slicing method, system and storage medium
CN109640113A (en) A kind of processing method and proxy server of dilatory video data
CN103813185A (en) Method, server and client for quickly distributing segmented programs
CN105828096A (en) Media stream file processing method and device
EP4523399A1 (en) Video streaming systems and methods
CN103220297A (en) Method for carrying out multi-screen interaction through social network
CN110519656A (en) Playback method, system and the server of adaptive stream media
US9332421B2 (en) Method and apparatus for random access to multimedia content in wireless communication system
CN108810575B (en) Method and device for sending target video
CN108989426B (en) HLS protocol-based stream pulling method, system, client and storage medium
WO2021052198A1 (en) Interactive media content playback method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200302

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 210012 Ande Gate No. 94, Yuhuatai District, Jiangsu, Nanjing

Patentee before: Huawei Technologies Co.,Ltd.

TR01 Transfer of patent right