Summary of the invention
The embodiment of the present application provides a kind of video broadcasting method and relevant device, can be in the feelings for playing the video with watermark
Under condition, the sowing time of rising for reducing video prolongs.
In a first aspect, the embodiment of the present application provides a kind of method of Gait Recognition, this method comprises: first server from
Content distributing network CDN edge node devices receive the first request of client, this first requests index for requesting video
File;The first server broadcasts play sequence from obtaining the video in second server, wherein this broadcasts play sequence and be
The sequence of the partial video fragment of the video;This of first server generation broadcasts play sequence corresponding and broadcasts index file,
It has included broadcasting the corresponding download address of play sequence that this, which broadcasts in index file,;The first server is set to the CDN fringe node
Preparation gives this to broadcast index file, so that the client broadcasts index file from the CDN fringe node receives this.Since this rises
Broadcast that the data volume that index file includes is smaller, the time that generation and transmission occupies is less, and client can be in a relatively short period of time
It gets this and broadcasts index file, broadcast the corresponding download address foradownloaded video content of play sequence further according to rising for video and risen
It broadcasts.In this way, can be in the case where playing the video for having watermark, the sowing time of rising for reducing video prolongs.
With reference to first aspect, in one possible implementation, this method further include: the first server from this second
Whole play sequence of the video are obtained in server;The first server generates the first index text according to the whole play sequence
Part;Alternatively, first server broadcasting sequence from removing this in the whole play sequence for obtaining the video in the second server
Remaining play sequence except column;The first server generates the second index file according to the residue play sequence.
With reference to first aspect, in one possible implementation, it further includes first index that this, which broadcasts in index file,
The download address of file includes the corresponding download address of whole play sequence of the video in first index file, or should
Rise broadcast further include in index file second index file download address, include the whole of the video in second index file
Except this acts the corresponding download address of remaining play sequence in addition to broadcasting play sequence in play sequence.
With reference to first aspect, in one possible implementation, which sends out to the CDN edge node devices
After giving this to broadcast index file, this method further include: the first server receives client from the CDN edge node devices
Second request, second request is for requesting downloading corresponding first index file of the client or second index file;
The first server sends first index file or second index file to the CDN edge node devices.
With reference to first aspect, in one possible implementation, which includes multiple client, if first clothes
Business device receives first request of multiple client from CDN edge node devices, then the first server generates multiple visitor
The priority of index file is broadcast at corresponding of family end, is higher than the first server and is generated corresponding first rope of multiple client
The priority of quotation part or second index file.
With reference to first aspect, in one possible implementation, which includes multiple client, and multiple visitor
Each client in the end of family has priority, if the first server receives multiple client from CDN edge node devices
First request, then the first server is preferentially produced corresponding of the high client of priority and broadcasts index file, and preferential
Generate corresponding first index file of the high client of the priority or second index file.
With reference to first aspect, in one possible implementation, it is obtained from the second server in the first server
Take the video rise broadcast play sequence before, this method further include: the first server judges that the playing duration of the video is greater than
Preset duration, or judge that the fragment number of the video is greater than preset value.
With reference to first aspect, in one possible implementation, this method further include: first server reception is directed to
This acts the create-rule for broadcasting the setting parameter of play sequence, the setting parameter include first preset play time or this first
Default fragment position, perhaps including second preset play time or the second default fragment position;The first server root
It determines that this rises according to the create-rule and broadcasts the setting parameter of play sequence.
With reference to first aspect, in one possible implementation, the create-rule be first preset play time with
The total duration of the video is directly proportional or the first default fragment position is directly proportional to the fragment quantity of the video;Alternatively, the life
It is second preset play time directly proportional to the total duration of the video or the second default fragment position and the view at rule
The fragment quantity of frequency is directly proportional.
With reference to first aspect, in one possible implementation, this broadcasts play sequence and presets for the first of the video
The sequence of video slicing before play time, or the sequence for the video slicing before the first default fragment position of the video
Column;Alternatively, after this broadcasts the play time for the head that play sequence is the video, and before the second preset play time
Video slicing sequence, or after fragment position for the head of the video, and before the second default fragment position
Video slicing sequence.
Second aspect, the embodiment of the present application provide a kind of video broadcasting method, this method comprises: client is to the side CDN
Edge node device sends the first request, this first requests index file for requesting video;The client is from the edge the CDN section
The video corresponding is received in point device and broadcasts index file, this broadcasts rising including the video in index file and broadcast play sequence
Corresponding download address, wherein this broadcasts the sequence for the partial video fragment that play sequence is the video;The client is according to this
It rises and broadcasts the corresponding download address of play sequence, the corresponding video of play sequence is broadcast from downloading this in the CDN edge node devices
Fragment carries out video playing.Broadcast that the data volume that index file includes is smaller since this rises, the time that generation and transmission occupies is less,
Client can get in a relatively short period of time this and broadcast index file, further according to video rise broadcast play sequence it is corresponding under
Set address foradownloaded video content broadcast.In this way, it can be reduced in the case where playing the video for having watermark
The sowing time of rising of video prolongs.
In conjunction with second aspect, in one possible implementation, it further includes the first index text that this, which broadcasts in index file,
The download address of part includes the corresponding download address of whole play sequence of the video in first index file;Alternatively, this
Broadcast further include in index file the second index file download address, include that the whole of the video play in second index file
Except this acts the corresponding download address of remaining play sequence in addition to broadcasting play sequence in sequence.
In conjunction with second aspect, in one possible implementation, this method further include: act that broadcast play sequence corresponding at this
Video slicing be played in the case that third preset play time or third preset fragment position, the client according to this
The download address of one index file or the second index file sends the second request to the CDN edge node devices, wherein this
Two requests download first index file or second index file for requesting, which is less than this
The maximum value of the play time of play sequence is broadcast, which presets fragment position and rise and broadcast the fragment position of play sequence most at this
Before big value;The client receives first index file or second index file from the CDN edge node devices;It should
Client downloads the whole from the CDN edge node devices and plays sequence according to the corresponding download address of whole play sequence
Corresponding video slicing is arranged, for playing out to the video section not played in the video;Or it is played according to the residue
The corresponding download address of sequence downloads the corresponding video slicing of residue play sequence from the CDN edge node devices, with
The video section not played in the video plays out.
In conjunction with second aspect, in one possible implementation, this method further include: receive input in the client
To the first play time of the video or the playing request of the first fragment position in the case where, the client according to this first
The download address of index file or the second index file sends the second request to the CDN edge node devices, wherein this second
Request downloads first index file or second index file for requesting, which plays greater than this
The maximum value of the play time of sequence, the first fragment position is after the maximum value for acting the fragment position for broadcasting play sequence;
The client receives first index file or second index file from the CDN edge node devices;The client root
According to the corresponding download address of whole play sequence, it is corresponding that the whole play sequence is downloaded from the CDN edge node devices
Video slicing, for being played out from first play time or from the first fragment position to the video;Or according to
The corresponding download address of residue play sequence downloads the corresponding view of residue play sequence from the CDN edge node devices
Frequency division piece, for being played out from first play time or from the first fragment position to the video.
In conjunction with second aspect, in one possible implementation, this broadcasts the setting parameter of play sequence by the source CDN
The create-rule that site server receives determines that the setting parameter includes first preset play time or this first default point
Piece position either includes second preset play time or the second default fragment position.
In conjunction with second aspect, in one possible implementation, the create-rule be first preset play time with
The total duration of the video is directly proportional or the first default fragment position is directly proportional to the fragment quantity of the video;Alternatively, the life
It is second preset play time directly proportional to the total duration of the video or the second default fragment position and the view at rule
The fragment quantity of frequency is directly proportional.
In conjunction with second aspect, in one possible implementation, this broadcasts first that play sequence is the video and presets
The sequence of video slicing before play time, or the sequence for the video slicing before the first default fragment position of the video
Column;Alternatively, after this broadcasts the play time for the head that play sequence is the video, and before the second preset play time
Video slicing sequence, or after fragment position for the head of the video, and before the second default fragment position
Video slicing sequence.
The third aspect, the embodiment of the present application provide a kind of server, which is used as first server, first clothes
Business device includes for executing list corresponding to method described in the various possible implementations of first aspect or first aspect
Member.The first server can be electronic equipment, be also possible to be used to generate the device for broadcasting index file in electronic equipment
(for example, operating system etc.).The unit that above-mentioned first server includes can be hardware circuit, can also be software, be also possible to
Hardware circuit combination software realization.
Fourth aspect, the embodiment of the present application provide a kind of client, and client includes for executing second aspect or
Unit corresponding to method described in the various possible implementations of two aspects.The client can be electronic equipment,
It can be the device for being used to play video in electronic equipment.The unit that above-mentioned client includes can be hardware circuit, can also
It is software, is also possible to hardware circuit combination software realization.
5th aspect, the embodiment of the present application provide another server, which is used as first server, this first
Server includes processor and memory, wherein the memory is for storing program instruction, and the program instruction is when by the processor
When operation, so that the first server executes described by any possible implementation of above-mentioned first aspect or first aspect
Method.
6th aspect, the embodiment of the present application provides another client, which includes processor and memory,
In, the memory is for storing program instruction, and the program instruction by the processor when being run, so that the client executing is above-mentioned
Method described in any possible implementation of second aspect or second aspect.
7th aspect, the embodiment of the present application provide a kind of computer readable storage medium, which deposits
Program instruction is contained, for the program instruction when being run by processor, which executes above-mentioned first aspect or first aspect
Any possible implementation described in method or the processor execute appointing for above-mentioned second aspect or second aspect
Method described in one possible implementation.
Eighth aspect, the embodiment of the present application provide a kind of computer program, which runs on a processor
When, the processor execute above-mentioned first aspect perhaps method described in any possible implementation of first aspect or
Execute method described in any possible implementation of above-mentioned second aspect or second aspect.
In the embodiment of the present application, CDN source station server is receiving client transmission by CDN edge node devices
After first request, will generate in real time and broadcast index file, broadcasting in index file has included broadcasting the corresponding downloading of play sequence
Address rises and broadcasts that play sequence is one section of video clip starting of video or video skips one section of video clip pair after head
The sequence answered;Later, CDN source station server pass through again CDN edge node devices to client send this broadcast index file.By
Broadcast that the data volume that index file includes is less in, the time that generation and transmission occupies is less, and client can be when shorter
Interior got broadcasts index file, broadcasts the corresponding download address foradownloaded video content of play sequence further according to and broadcast,
Prolong to achieve the purpose that reduce video sowing time.
Specific embodiment
Technical solutions in the embodiments of the present application is explained in more detail below.
It is a kind of configuration diagram of audio/video player system provided by the embodiments of the present application, the video playing referring to Figure 1A
System includes client, plays authentication server, CDN controlling equipment, CDN source station server, CDN edge node devices and watermark
Server.This these equipment is further introduced below.
Client, or be user terminal, be it is corresponding with server, provide the equipment of local service for client.The client
A variety of application programs can be run on end, other than some application programs in local runtime, client runs application program
It generally requires server and provides corresponding service for it.In the embodiment of the present application, the client can be mobile phone, computer,
The equipment that tablet computer, laptop, wearable device, multimedia equipment etc. can carry out video playing.Optionally, client
It end can be by the application program of itself carrying (for example, video playback class application program, social category application program or news
Information class application program) video is played out.For example, user can be in the video playing application program to client
Some video executes program request operation, if the video of the program request is client locally not stored video, which can be visited
Content distributing network is asked to request the index file of the video.Before client accesses to content distributing network, need to
It plays authentication server and sends broadcasting authentication request, which is used to indicate the broadcasting authentication server to the client
Hold the judgement for the permission that accesses.It will be further introduced below to authentication server is played.
Authentication server is played, is that can be determined that client to the equipment of the access authority of content distributing network.If this is broadcast
It puts authentication server and determines that the client has the access authority to content distributing network, then the broadcasting authentication server will be to visitor
The authentication is passed for family end feedback as a result, later, client can send scheduling to the CDN controlling equipment of content distributing network and ask
It asks, which provides the edge CDN of service for requesting CDN controlling equipment to distribute one for the client for the client
Node device.If the broadcasting authentication server determines that the client does not have the access authority to content distributing network, this is broadcast
Putting authentication server will be unacceptable as a result, the client will be unable to successful access content delivery network to client feedback authentication
Network.
CDN controlling equipment, being can be client in real time according to Network status and the state of CDN edge node devices
CDN edge node devices serve it are distributed at end.Optionally, which can be in real time according to network flow
It measures with the connection of each CDN edge node devices, load state and is integrated to the distance of client and response time etc.
Information is that client distributes CDN edge node devices serve it.Optionally, the CDN controlling equipment is from client
After having received scheduling request, the information for the CDN edge node devices that can be distributed to the client feedback.
CDN edge node devices are can to provide the equipment of service directly in response to client request for client.One
It include multiple CDN edge node devices in a content distributing network, it is generally the case that CDN edge node devices are deployed in client
In the area and network of end access Relatively centralized.Optionally, the edge the CDN section distributed in CDN controlling equipment to client feedback
After the information of point device, which can receive the playing request for being directed to video from client.In response to this
Playing request, the CDN edge node devices judge the video of request, if the CDN edge node devices preserve the view
The index file of frequency, then the index file is fed back to client by the CDN edge node devices;If the CDN edge node devices
The index file of the video is not saved, then the CDN edge node devices request the index text of the video to CDN source station server
Part is having received the index file of the video from CDN source station server and then the index file is fed back to client.
In the embodiment of the present application, since the video of client request is the video with watermark, the video of different client requests
The equal objectionable intermingling of index file, therefore the index file of the video is not saved in CDN edge node devices, need to pass through to
CDN source station server requests the index file of the video.
CDN source station server is that the source device of video content is provided in content distributing network.In CDN source station server
In can execute addition, deletion and change of video content etc. operation.In addition, in the video stored in CDN edge node devices
Hold also all from CDN source station server.In one possible implementation, the first server in the embodiment of the present application
For CDN source station server.It optionally, include watermark index file generation module, watermark index in the CDN source station server
The index file of the video of client request can be generated in file generating module.It wherein, include the video in the index file
Download address, and the index file and the client have corresponding relationship.Optionally, in the CDN source station server from the side CDN
Edge node device has received the request of client, and the watermark index file generation module generates the video of client request
Index file after, which can send the index file (in the application reality to CDN edge node devices
Apply in example has included broadcasting index file, the first index file or the second index file), then, which will
The index file is transmitted to client.Later, client can be according to the download address foradownloaded video of video in index file point
Piece carries out video playing.In the embodiment of the present application, which can firstly generate rising for the video of client request
Index file is broadcast, it only includes that rising for video broadcasts the corresponding download address of play sequence that this, which broadcasts in index file, this broadcasts broadcasting
Sequence is the sequence of the partial video fragment of the video.Since this rises, to broadcast the data volume that index file includes smaller, generates and passes
The time of defeated occupancy is less, and client can get in a relatively short period of time this and broadcast index file, further according to rising for video
The corresponding download address foradownloaded video content of play sequence is broadcast broadcast.In this way, watermark can be had playing
Video in the case where, reduce video rise a sowing time prolong.
Watermark server is the equipment for generating the play sequence of video slicing.Optionally, which can basis
The request received generates the play sequence of video slicing.In one possible implementation, in the embodiment of the present application
Two servers are watermark server.In the embodiment of the present application, the process of the index file of video is generated in CDN source station server
In, which needs to obtain the fragment play sequence of video from the watermark server.In one embodiment,
During CDN source station server has generated and broadcast index file, CDN source station server sends third to watermark server and asks
It asks, third request further includes that this acts the setting parameter for broadcasting play sequence in third request for having requested to broadcast play sequence
(for example, acting the maximum value for broadcasting the play time of play sequence, or acting the maximum value for broadcasting the fragment position of play sequence).It
Afterwards, it is requested in response to the third, which, which has generated, broadcasts play sequence, and this is risen and broadcasts play sequence and feeds back to this
CDN source station server.Similar, which generates the process of whole play sequence of video, or generates video
Except the process for acting the remaining play sequence in addition to broadcasting play sequence in whole play sequence, it is also referred to the above process, this
Place repeats no more.
It is the configuration diagram of another audio/video player system provided by the embodiments of the present application referring to Figure 1B, which broadcasts
Place system includes client, plays authentication server, CDN controlling equipment, and watermark index file generates server, CDN source station clothes
Business device, CDN edge node devices and watermark server.In this possible system architecture, in the embodiment of the present application first
Server is that watermark index file generates server, which generates the process that server generates index file,
The watermark index file generation module being referred in the CDN source station server of above-mentioned introduction generates the process of index file.It needs
It is noted that in this system architecture, first server and CDN edge node devices and logical with second server
Letter, is required to through CDN source station server.For example, which receives client from CDN edge node devices
The process of first request includes that CDN source station server receives the first request of client, the first clothes from CDN edge node devices
Business device receives the first request of the client from CDN source station server.In one embodiment, the first server is from second
The video is obtained in server acts that broadcast the process of play sequence include that first server sends third to CDN source station server
Request, CDN source station server send third request to watermark server (second server) again, and third request is for requesting
Broadcast play sequence;In response to the third request, which, which has generated, broadcasts play sequence, the watermark server to this
CDN source station server sends this and broadcasts play sequence, and CDN source station server sends this broadcasting sequence to the first server again
Column.Similar, which obtains the process of whole play sequence of video, or obtains whole play sequence of video
In except the process for acting the remaining play sequence in addition to broadcasting play sequence, be also referred to the above process, details are not described herein again.
It is the configuration diagram of another audio/video player system provided by the embodiments of the present application referring to Fig. 1 C, which broadcasts
Place system includes client, plays authentication server, CDN controlling equipment, CDN source station server, CDN edge node devices.?
In this possible system architecture, watermark server can be used as play sequence generation module and be integrated in CDN source station server,
In this case, the first server in the embodiment of the present application is CDN source station server, and second server is CDN source station clothes
Business device.The process that the CDN source station server generates the play sequence of video slicing is referred to the watermark server of above-mentioned introduction
Generate the process of the play sequence of video slicing.It should be noted that in this system architecture, second server and the source CDN
The communication of site server is the communication inside equipment.For example, which obtains video from second server
Rising and broadcasting the mode of play sequence can be that CDN source station server is from obtaining video in the play sequence generation module of itself
Broadcast play sequence.
It is the configuration diagram of another audio/video player system provided by the embodiments of the present application referring to Fig. 1 D, which broadcasts
Place system includes client, plays authentication server, CDN controlling equipment, and watermark index file generates server, CDN source station clothes
Business device, CDN edge node devices.In such an embodiment, watermark server is integrated in the source CDN as play sequence generation module
In site server.First server in the embodiment of the present application is that watermark index file generates server, second server CDN
Source station server.It can be watermark that the first server, which broadcasts the mode of play sequence from obtaining video in second server,
Index file generates server and sends third request to CDN source station server, requests in response to the third, CDN source station clothes
Business device, which has generated, broadcasts play sequence, and sends this to watermark index file generation server and broadcast play sequence.It is similar, it should
The mode or first server that first server obtains whole play sequence of video from second server are from second service
It obtains in whole play sequence of video except the mode for acting the remaining play sequence in addition to broadcasting play sequence, can also join in device
According to the above process, details are not described herein again.
The some concepts being related in the embodiment of the present application will further be introduced below.
The index file (or referred to as media description file) of video, for recording under the video slicing for forming the video
Set address (for example, uniform resource locator).Index file is made of data file, it is the sequential file of tape index.Index
File is made of concordance list and master file two parts, and concordance list is corresponding relationship between instruction logic record and a physical record
Table.Each in concordance list is referred to as index entry, and index entry is arranged according to the sequence of key (or logic record number).If index text
Part itself be also according to keywords sequence arrange, then referred to as index sequential file.Otherwise, referred to as indexed non-sequential file.Citing and
Speech, in the embodiment of the present application, the index file of the video can be the file of UTF-8 coded format, for example, the index file
It can be MPD file or M3U8 file.Client can be downloaded according to the download address of the video slicing recorded in index file
Video slicing carries out video playing.
Video slicing, the segment of a length of 2 seconds~10 seconds sizes when being in a video.One video is regarded by one or more
Frequency division piece composition.Fragmentation, available different fragment result are carried out using different sliced fashions to the same video.
For the same video, there are A to flow for the video, B flows two video mediums (passing through transcoding platform processes in advance), A stream
It include multiple video slicings in the video medium flowed with B.Wherein, identical point in multiple video slicings that A stream and B stream include
The video content of the video slicing of piece position is identical (for example, the fragment 1 of A stream is identical as the video content of fragment 1 that B flows), but A
The watermark added in the video slicing of stream and B stream is different.
The sequence of video slicing, that is, the sequence of the video slicing of the A stream and B stream chosen.For example, what user 1 got
The play sequence of video may be A stream fragment 1, fragment 3, fragment 4, fragment 6 ... and B stream fragment 2, fragment 5, fragment
7,…;The play sequence for the same video that user 2 gets may be the fragment 2 of A stream, fragment 3, fragment 4, fragment 7 ... and B
The fragment 1 of stream, fragment 5, fragment 6 ....It is same since the watermark added in the video slicing of A stream and B stream is different
The watermark sequence for including in the sequence of the different video fragment of a video is different.
It referring to fig. 2, is that the embodiment of the present application provides a kind of flow chart of video broadcasting method, this method can be based on Figure 1A
Shown in framework realize that first server described below can be the CDN source station service in system architecture shown in figure 1A
Device.It should be noted that in system architecture shown in Figure 1B~Fig. 1 D this method can also be applied, it is only necessary to adjust equipment room
Communication process (can refer to above-mentioned example).This method includes but is not limited to following steps.
S201, client send the first request to CDN edge node devices.
Wherein, this first requests index file for requesting video.Optionally, in the embodiment of the present application, this first
The corresponding video of request is not the locally stored video of the client, and the video is the video with watermark.In visitor
Before family end sends the first request to CDN edge node devices, the program request for video that client can receive user's input is asked
It asks.If first video is not the locally stored video of the client, and the video is the video with watermark, client
Broadcasting authentication request will be sent to authentication server is played, which is used to indicate the broadcasting authentication server to this
Client accesses the judgement of permission.If the broadcasting authentication server determines that the client has the visit to content distributing network
Ask permission, then the broadcasting authentication server is by the authentication is passed as a result, later, client can be to content point to client feedback
The CDN controlling equipment of hairnet network sends scheduling request.In response to the scheduling request, CDN controlling equipment will be to client feedback point
The information for the CDN edge node devices matched.Then, the client can be sent to the CDN edge node devices of the distribution this
One request.
S202, after the CDN edge node devices have received the first request from the client, CDN edge node devices
The first request of the client is sent to first server.
Optionally, in response to first request, whether CDN edge node devices determine the corresponding video of first request
It is the CDN edge node devices in locally stored video.If the video is the video with watermark, then, different clients
End will be corresponding with different index files, and CDN edge node devices determine the index file of itself not stored video, the CDN
Edge node devices will request the index file of the video to CDN source station server (first server).Therefore, the edge CDN
Node device sends the first request of the client to first server, correspondingly, the first server is set from CDN fringe node
Standby the first request for receiving client.
S203, the first server from CDN edge node devices receive client first request after, this first clothes
Business device sends third request to second server.
Wherein, third request further includes that this broadcasts play sequence in third request for having requested to broadcast play sequence
Setting parameter (for example, acting the maximum value for broadcasting the play time of play sequence, or rise and broadcast the fragment position of play sequence most
Big value).It in one possible implementation, further include the play time or the view of the video title in third request
The fragment position of frequency head.
S204, second server from first server receive the third request after, which, which has generated, broadcasts
Play sequence.
Wherein, this broadcasts the sequence for the partial video fragment that play sequence is the video.Optionally, this broadcasts play sequence
There may be two kinds of possible situations.The first situation, this broadcast play sequence be the video the first preset play time it
The sequence of preceding video slicing, or the sequence for the video slicing before the first default fragment position of the video.Second
Situation, after this broadcasts the play time for the head that play sequence is the video, and before the second preset play time
After the sequence of video slicing, or fragment position for the head of the video, and before the second default fragment position
The sequence of video slicing.That is, the maximum value that this broadcasts the play time of play sequence may be first preset play time,
It may be second preset play time;The maximum value for acting the fragment position for broadcasting play sequence may be the first default fragment position
It sets, it is also possible to be the second default fragment position.It should be noted that if user is provided with " skipping head " in the client,
This, which rises, broadcasts the second situation that play sequence should be above-mentioned, if user does not carry out the setting of " skipping head ", this broadcasting sequence
Column should be the first above-mentioned situation.As can be seen that this, which rises, broadcasts one section of video clip or view that play sequence starts for video
Chatter crosses the sequence for the video slicing for including in one section of video clip after head.
Optionally, first preset play time, the first default fragment position, the second preset play time or second are pre-
If fragment position, these, which rise, broadcasts the setting parameter of play sequence and can be configured according to demand.For example, this first default is broadcast
Putting the time can be the 1st minute, the 2nd minute, etc.;The second default fragment position can be the 12nd fragment, the 13rd fragment, etc.
Deng.Second preset play time can be the 4th minute, the 5th minute etc.;The second default fragment position can be the 48th point
Piece, the 50th fragment etc..It is the more provided by the embodiments of the present application setting parameter for broadcasting play sequence referring to Fig. 3 A~Fig. 3 D
Schematic diagram.It should be noted that the dark lattice illustrated in Fig. 3 B and Fig. 3 D have represented the video point broadcast and include in play sequence
Piece, blank cell represent this and act the video slicing broadcast and do not included in play sequence.In addition, between the adjacent video slicing illustrated in figure
It is not represent between adjacent video slicing in playing process that there are gaps to distinguish different video slicings there are gap.
Optionally, second preset play time can also by the head time of video plus preset time interval come
It determines, which can be determined by the fragment position of the head of video plus preset fragmentation interval.
By to the first preset play time, the first default fragment position, the second preset play time or the second default fragment position
Adjustment, adjustable is broadcast the length of play sequence, it can Indirect method, which rises, broadcasts the size of index file.
S205, the second server send rising for the video to the first server and broadcast play sequence.
S206, after the first server broadcasts play sequence from obtaining the video in the second server, this
This of one server generation broadcasts play sequence corresponding and broadcasts index file, and it has included broadcasting play sequence in index file that this, which broadcasts,
Corresponding download address.
In first server, A stream, the B that the video has been stored in advance flow two video mediums (in advance by transcoding platform
Processing) in each video slicing download address (for example, URL).The first server can rise according to this and broadcast play sequence,
And A stream, the B of the video flow the download address of each video slicing in two video mediums, have generated and have broadcast index file.It should
Rise broadcast in index file including the video rise broadcast the corresponding download address of play sequence.Play sequence is broadcast since this rises as the view
The sequence of the partial video fragment of frequency, then it is smaller that rising of generating broadcasts the data volume that index file includes, so that generating and passing
It is less that this defeated broadcasts the index file occupied time.
It is as follows one and acts the example for broadcasting index file (listing resolution ratio/code rate index file information):
<? xml version=" 1.0 " encoding=" UTF-8 "?>
<NextMPDURL MPD=" http://cdn.bitmovie.net/bbb/video-1500.mpd>
< Representation id=" 1 " codecs=" hev1 " height=" 358 " width=" 854 "
Bandwidth=" 1513463 " >
<SegmentList duration=" 5 ">
< initialization sourceURL=" http://cdn.bitmovie.net/bbb/video-1500/
video480.mp4">
< segmentURL media=" http://cdn.bitmovie.net/bbb/video-1500/
Video480zcx.m4s " > //1 URL of A flow fragmentation
< segmentURL media=" http://cdn.bitmovie.net/bbb/video-1500/
Video480bcy.m4s " > //2 URL of B flow fragmentation
< segmentURL media=" http://cdn.bitmovie.net/bbb/video-1500/
Video480yzcy.m4s " > //3 URL of B flow fragmentation
< segmentURL media=" http://cdn.bitmovie.net/bbb/video-1500/
Video480ydzy.m4s " > //4 URL of A flow fragmentation
< segmentURL media=" http://cdn.bitmovie.net/bbb/video-1500/
Video480dcxy.m4s " > //5 URL of B flow fragmentation
< segmentURL media=" http://cdn.bitmovie.net/bbb/video-1500/
Video480uxi.m4s " > //6 URL of B flow fragmentation
< segmentURL media=" http://cdn.bitmovie.net/bbb/video-1500/
Video480qed.m4s " > //7 URL of B flow fragmentation
< segmentURL media=" http://cdn.bitmovie.net/bbb/video-1500/
Video480ipxe.m4s " > //8 URL of A flow fragmentation
< segmentURL media=" http://cdn.bitmovie.net/bbb/video-1500/
Video480erv.m4s " > //9 URL of A flow fragmentation
< segmentURL media=" http://cdn.bitmovie.net/bbb/video-1500/
Video480uci.m4s " > //10 URL of A flow fragmentation
< segmentURL media=" http://cdn.bitmovie.net/bbb/video-1500/
Video480x9y.m4s " > //11 URL of A flow fragmentation
< segmentURL media=" http://cdn.bitmovie.net/bbb/video-1500/
Video480op7.m4s " > //12 URL of B flow fragmentation
</segmentlist>
</Representation>
S207, the first server send this to the CDN edge node devices and broadcast index file, so that the client
Index file is broadcast from the CDN fringe node receives this.
S208, after the CDN edge node devices broadcast index file from the first server has received this, the CDN
Edge node devices send the video corresponding into the client and broadcast index file.
S209, the client from received in the CDN edge node devices video it is corresponding broadcast index file after,
The client broadcasts the corresponding download address of play sequence according to this, plays from downloading this in the CDN edge node devices
The corresponding video slicing of sequence carries out video playing.
Broadcast that the data volume that index file includes is smaller since this rises, the time that generation and transmission occupies is less, and client can
Index file is broadcast to get this in a relatively short period of time, is broadcast under the corresponding download address of play sequence further according to rising for video
Video content is carried broadcast.In this way, rising for video can be reduced in the case where playing the video for having watermark
Sowing time prolongs.
It in step s 201, can also include the corresponding user identifier of user logged in the client in first request
(for example, account information of the user).Optionally, in the embodiment of the present application rise broadcast index file, the first index file or
Second index file has incidence relation with the user identifier, indicates that this broadcasts index file, the first index file or second
Index file is corresponding with the user that the user identifier indicates.It, can be by this after the video with watermark is illegally revealed
Incidence relation finds the user for revealing the video information.
In one embodiment, before above-mentioned steps S203, this method further include: the first server judges the video
Playing duration be greater than preset duration, or judge the video fragment number be greater than preset value.Wherein, the preset duration is pre- with this
If value can be configured as desired.If first server judges that the playing duration of the video is greater than preset duration, or
Judge that the fragment number of the video is greater than preset value, then illustrates that the video is longer, the download address of whole fragments comprising the video
Index file it is larger, therefore can use method provided by the embodiments of the present application, firstly generate the video rise broadcast index text
Part.If the first server judges that the playing duration of the video is not more than the preset duration, or judges the fragment number of the video
No more than the preset value, then illustrating that the video is shorter, the index file of the download address of whole fragments comprising the video is smaller,
It therefore can be using the method for the index file for the download address for generating whole fragments comprising the video.
In one embodiment, first server determines the first preset play time, the first default fragment position, second in advance
If play time or the mode of the second default fragment position can be with are as follows: the first server, which is received, broadcasts play sequence for this
Setting parameter create-rule, which includes first preset play time or the first default fragment position,
Perhaps including second preset play time or the second default fragment position;The first server is advised further according to the generation
Then determine that this acts the setting parameter for broadcasting play sequence.Wherein, a kind of possible implementation is that the create-rule is first default
Play time, the first default fragment position, the second preset play time or the second default fragment position are specifically worth.Another
Possible implementation is that the create-rule is that first preset play time is directly proportional to the total duration of the video, or is somebody's turn to do
First default fragment position is directly proportional to the fragment quantity of the video;Alternatively, the create-rule is second preset play time
It directlys proportional to the fragment quantity of the video or the second default fragment position directly proportional to the total duration of the video.Another
Possible implementation is that the create-rule is that first preset play time is directly proportional to the total duration of the video, or is somebody's turn to do
First default fragment position is directly proportional to the fragment quantity of the video;Alternatively, the create-rule is second preset play time
Or the second default fragment position directly proportional to the residual time length that the total duration of the video subtracts the duration of head and the video
The fragment quantity fragment quantity that subtracts head remaining fragment quantity it is directly proportional.It is broadcast furthermore it is also possible to there is other rise
The create-rule of the setting parameter of sequence is put, details are not described herein again.
It referring to fig. 4, is the flow chart of another video broadcasting method provided by the embodiments of the present application.This method can be based on
Framework shown in figure 1A realizes that first server described below can be the CDN source station in system architecture shown in figure 1A
Server.It should be noted that this method can also be applied in system architecture shown in Figure 1B~Fig. 1 D, it is only necessary to which adjustment is set
Communication process (can refer to above-mentioned example) between standby.
In this embodiment, this broadcast further include in index file first index file download address, first rope
Include the corresponding download address of whole play sequence of the video in quotation part, or this broadcast in index file further include this
The download address of two index files, include in second index file video whole play sequence in remove this broadcasting sequence
The corresponding download address of remaining play sequence except column.In this way, client can be broadcast in index file from and obtain
Get the download address of the first index file or the second index file.The client can according to first index file or
The download address of second index file downloads first index file or the second index file.Later, which can root
According to the corresponding download address of whole play sequence of the video in the first index file, foradownloaded video fragment in the video not
The video section of broadcasting plays out.Alternatively, the client can be corresponding according to the remaining play sequence in the second index file
Download address, foradownloaded video fragment plays out the video section not played in the video.
It should be noted that the step of being referred to S201~S209 in above-mentioned Fig. 2 in Fig. 4 the step of S401~S409
Executive mode, details are not described herein again.Below to S410~S418 the step of, is specifically introduced.
S410, first server send the 4th request to the second server.
Wherein, the 4th request is for requesting whole play sequence of the video, or the whole of the video is requested to play
Except this acts the remaining play sequence in addition to broadcasting play sequence in sequence.
S411, the second server from the first server receive the 4th request after, the second server generate
Except this acts the remaining broadcasting in addition to broadcasting play sequence in whole play sequence of the video or whole play sequence of the video
Sequence.
S412, the second server send the whole play sequence or the video of the video to the first server
Except this acts the remaining play sequence in addition to broadcasting play sequence in whole play sequence.
S413, the whole play sequence or the video for receiving the video from the second server in the first server
Whole play sequence in after this acts the remaining play sequence in addition to broadcasting play sequence, the first server generate the first rope
Quotation part or the second index file.
In one embodiment, the mode which generates the first index file or the second index file can be with
Are as follows: the first server obtains whole play sequence of the video from the second server;Further according to the whole play sequence
Generate the first index file.Alternatively, the first server is from the whole play sequence for obtaining the video in the second server
Except this acts the remaining play sequence in addition to broadcasting play sequence;The second index file is generated further according to the residue play sequence.This
One server generates the mode of the first index file according to whole play sequence, or generates the second rope according to remaining play sequence
The mode of quotation part, this can be generated with reference to the first server introduced in above-mentioned steps S204, and to broadcast play sequence corresponding
The mode for broadcasting index file is acted, details are not described herein again.
It should be noted that after first server broadcasts index file to the client feedback, the first service
And then device can generate the first index file or the second index file of the video of the client request, at the same time, visitor
Family end can be risen according to this broadcast index file carry out video rise broadcast.In this way, first server can rise in video
The first index file or the second index file are generated during broadcasting.The corresponding video of index file is broadcast in client to divide
During piece plays out, first server has the sufficient time to generate the first index file or the second index file.No
Be same as first server in the prior art once generate comprising the video whole fragments download address index file side
Formula, the method for the embodiment of the present application can shorten generation and transmit the time for broadcasting index file, and first server has
The sufficient time generates corresponding first index file of subsequent video content and the second index file, reduces the first server
Load and performance requirement to first server.
First index file and the second index file can broadcast index file with reference to rising in S206, no longer list herein.
S414, client send the second request to CDN edge node devices.
Wherein, which downloads first index file or second index file for requesting.Optionally, objective
To the second request of CDN edge node devices transmission, there may be two kinds of situations at family end.Both of these case is introduced below.
The first situation, this broadcast the corresponding video slicing of play sequence and are played to third preset play time or third
Default fragment position.Wherein, which is less than this and acts the maximum value for broadcasting the play time of play sequence, this
Three default fragment positions are before the maximum value for acting the fragment position for broadcasting play sequence.It should be noted that the third is default
Play time is to close on this to act the time value for broadcasting the maximum value of play time of play sequence, for example, the third is preset when playing
Between for the maximum value for acting the play time for broadcasting play sequence subtract the time value of 5 seconds (merely illustrative, can be arranged on demand).This
Three default fragment positions are to close on this to act the position for broadcasting the maximum value of fragment position of play sequence, for example, default point of the third
Piece position is that this rises and broadcasts the maximum value of the fragment position of play sequence and subtract 1 fragment position (merely illustrative, can be arranged on demand)
Position.Wherein, it may be first preset play time that this, which broadcasts the maximum value of the play time of play sequence, it is also possible to be
Second preset play time;Rising and broadcasting the maximum value of the fragment position of play sequence to be the first default fragment position,
It may be the second default fragment position.Such case shows that client will play the video that index file includes
The content of fragment, client need the index file for continuing to obtain the video section not played in video.Referring to Fig. 5 A~Fig. 5 D,
It is the schematic diagram of a scenario that some triggering clients provided by the embodiments of the present application send the second request.It should be noted that Fig. 5 B
The video slicing broadcast and include in play sequence is represented with the dark lattice illustrated in Fig. 5 D, blank cell represents this and broadcasts play sequence
In the video slicing that does not include.In addition, being to distinguish different views there are gap between the adjacent video slicing illustrated in figure
Frequency division piece, does not represent between adjacent video slicing in playing process that there are gaps.
Second situation, the client receive the first play time to the video or the first fragment position of input
Playing request.Wherein, which acts the maximum value for broadcasting the play time of play sequence greater than this, first fragment
Position is after the maximum value for acting the fragment position for broadcasting play sequence.It is defeated that such case shows that client has received user
Being directed to for entering has not been the playing request for broadcasting the content for the video slicing that index file includes, and client needs to obtain the first broadcasting
The index file of video section after time or the first fragment position.It is the embodiment of the present application referring to Fig. 6 A~Fig. 6 D
The some triggering clients provided send the schematic diagram of a scenario of the second request.It should be noted that the signal of Fig. 6 B and Fig. 6 D are advised
It then can refer to the signal rule of Fig. 5 B and Fig. 5 D, details are not described herein again.
S415, CDN edge node devices from the client receive this second request after, CDN edge node devices to
The first server sends second request.
S416, after the second request that the first server has received client from the CDN edge node devices, this
One server sends first index file or second index file to the CDN edge node devices.
S417, the first index file or the second index are received from the first server in the CDN edge node devices
After file, which sends first index file or the second index file to the client.
S418, first index file or second index are received from the CDN edge node devices in the client
After file, client is according to the first index file or the second index file foradownloaded video fragment to the video content not played
It plays out.
The case where sending the second request to CDN edge node devices for the first triggering client mentioned above, visitor
Family end will download the whole from the CDN edge node devices and play sequence according to the corresponding download address of whole play sequence
Corresponding video slicing is arranged, for playing out to the video section not played in the video;Or it is played according to the residue
The corresponding download address of sequence downloads the corresponding video slicing of residue play sequence from the CDN edge node devices, with
The video section not played in the video plays out.
The case where sending the second request to CDN edge node devices for second of triggering client mentioned above, should
Client downloads the whole from the CDN edge node devices and plays sequence according to the corresponding download address of whole play sequence
Corresponding video slicing is arranged, for playing out from first play time or from the first fragment position to the video;
Or according to the corresponding download address of residue play sequence, the residue play sequence is downloaded from the CDN edge node devices
Corresponding video slicing, for being played out from first play time or from the first fragment position to the video.
In one possible implementation, which may include multiple client, if the first server is from CDN
Edge node devices receive first request of multiple client, then it is corresponding to generate multiple client for the first server
Rise and broadcast the priority of index file, be higher than the first server generate corresponding first index file of multiple client or
The priority of second index file.In this way, which it is corresponding can be preferentially produced multiple client
It rises and broadcasts index file, can be further reduced and generate the time for broadcasting index file, play the video with watermark to reduce
Rise sowing time prolong.
In one possible implementation, which includes multiple client, and each of multiple client
Client has priority, if the first server receives first request of multiple client from CDN edge node devices,
Then the first server is preferentially produced corresponding of the high client of priority and broadcasts index file, and is preferentially produced priority height
Corresponding first index file of client or second index file.Wherein, the priority of various index files exists
Height relationship can be that " corresponding of the high client of priority broadcasts corresponding of the low client of index file > priority
Broadcast corresponding first index file of the high user of index file > priority or the low user couple of the second index file > priority
The first index file or the second index file answered ".It should be noted that " A > B " indicates that the priority of A is preferential higher than B
Grade.There is likely to be other priority relationships, such as do finer division to the priority of client, do not limit herein
System.In this way, first server can be further reduced life with the first request of the high client of preferential answering priority
Time of index file is broadcast at rising for the high client of priority, to further decrease the high client terminal playing band water of priority
The sowing time of rising of the video of print prolongs.
The foregoing describe the present processes embodiments, and the Installation practice of the realization above method is introduced below.
It is a kind of server provided by the embodiments of the present application referring to Fig. 7, which is used as first server, this first
Server includes receiving unit 701, acquiring unit 702, generation unit 703 and transmission unit 704, below will to said units into
Row is specific to be introduced.
The receiving unit 701, for receiving the first request of client from CDN edge node devices, which is used
In the index file of request video.In one embodiment, which can be data transmission interface, communication interface
Or receiver etc. can be configured for receiving the circuit or component of information.
The acquiring unit 702, for broadcasting play sequence from obtaining the video in second server, wherein this broadcasts
Play sequence is the sequence of the partial video fragment of the video.
The generation unit 703 broadcasts play sequence corresponding for generating this and broadcasts index file, this broadcasts index file
In included broadcasting the corresponding download address of play sequence.
The transmission unit 704 broadcasts index file for sending this to the CDN edge node devices, so that the client
Index file is broadcast from the CDN fringe node receives this in end.In one embodiment, which can pass for data
Defeated interface, communication interface or receiver etc. can be configured for receiving the circuit or component of information.
In one possible implementation, which is also used to: obtaining the video from the second server
Whole play sequence;The generation unit is also used to: generating the first index file according to the whole play sequence;Alternatively, the acquisition
Unit is also used to: surplus in addition to broadcasting play sequence except this from the whole play sequence for obtaining the video in the second server
Remaining play sequence;The generation unit is also used to: generating the second index file according to the residue play sequence.
In one possible implementation, this broadcast further include in index file first index file downloading
Location includes the corresponding download address of whole play sequence of the video in first index file, or this broadcasts index file
In further include second index file download address, include in second index file video whole play sequence in remove
This acts the corresponding download address of remaining play sequence broadcast except play sequence.
In one possible implementation, which is also used to: receiving client from the CDN edge node devices
The second request, which downloads corresponding first index file of the client or the second index text for requesting
Part;The transmission unit is also used to: sending first index file or second index file to the CDN edge node devices.
In one possible implementation, which includes multiple client, if the first server is from the edge CDN
Node device receives first request of multiple client, then the first server generates multiple client corresponding and broadcasts
The priority of index file, be higher than the first server generate corresponding first index file of multiple client or this
The priority of two index files.
In one possible implementation, which includes multiple client, and each of multiple client
Client has priority, if the first server receives first request of multiple client from CDN edge node devices,
Then the first server is preferentially produced corresponding of the high client of priority and broadcasts index file, and is preferentially produced priority height
Corresponding first index file of client or second index file.
In one possible implementation, which further includes judging unit, which is used for: judgement
Whether the playing duration of the video is greater than preset duration, or judges whether the fragment number of the video is greater than preset value.
In one possible implementation, which is also used to: receiving and acts the setting for broadcasting play sequence for this
The create-rule of parameter, the setting parameter include first the preset play time perhaps first default fragment position or packet
It includes, second preset play time or the second default fragment position;The first server further includes determination unit, the determination
Unit is used for: being determined that this rises according to the create-rule and is broadcast the setting parameter of play sequence.
In one possible implementation, which is the total duration of first preset play time and the video
The directly proportional or first default fragment position is directly proportional to the fragment quantity of the video;Alternatively, the create-rule be this second
Preset play time is directly proportional to the total duration of the video or the fragment quantity of the second default fragment position and the video at
Direct ratio.
In one possible implementation, before this broadcasts play sequence as the first preset play time of the video
The sequence of video slicing, or the sequence for the video slicing before the first default fragment position of the video;Alternatively, this broadcasts
After play time of the play sequence for the head of the video, and the sequence of the video slicing before the second preset play time
It arranges, or after the fragment position for the head of the video, and the sequence of the video slicing before the second default fragment position
Column.
In addition, the realization of each operation in Fig. 7 can also be to the phase that should refer to Fig. 2 or embodiment of the method shown in Fig. 4
It should describe.Above-mentioned each unit can be with hardware, and the mode of software or software and hardware combining is realized.In one embodiment,
Acquiring unit 702 and generation unit 703 can be the functional module of software realization, and the function of these functional modules is by being stored in
Journey logic bomb in reservoir realizes that server executes these journey logic bombs by least one processor, may be implemented each
The function of a functional module.
In server shown in Fig. 7, which is receiving the of client transmission by CDN edge node devices
After one request, will generate in real time and broadcast index file, broadcasting in index file has included with broadcasting the corresponding downloading of play sequence
Location, acts that broadcast one section of video clip that play sequence is one section of video clip starting of video or video is skipped after head corresponding
Sequence;Later, server pass through again CDN edge node devices to client send this broadcast index file.Rope is broadcast due to rising
The data volume that quotation part includes is less, and the time that generation and transmission occupies is less, and client can obtain in a relatively short period of time
Index file is broadcast to rising, the corresponding download address foradownloaded video content of play sequence is broadcast further according to and broadcast, to reach
It reduces video and plays the purpose that sowing time prolongs.
It is a kind of client provided by the embodiments of the present application referring to Fig. 8, which includes transmission unit 801, is received single
Member 802 and download unit 803, below will specifically introduce said units.
The transmission unit 801, for sending the first request to CDN edge node devices, first request is for requesting view
The index file of frequency.In one embodiment, which can be data transmission interface, communication interface or receiver
Etc. the circuit or component that can be configured for receiving information.
The receiving unit 802, for from received in the CDN edge node devices video it is corresponding broadcast index file,
It includes that rising for the video broadcasts the corresponding download address of play sequence in index file that this, which rises and broadcasts, wherein this broadcasts play sequence and be
The sequence of the partial video fragment of the video.In one embodiment, which can be data transmission interface, lead to
Letter interface or receiver etc. can be configured for receiving the circuit or component of information.
The download unit 803 is set for broadcasting the corresponding download address of play sequence according to this from the CDN fringe node
Standby middle this of downloading broadcasts the corresponding video slicing of play sequence and carries out video playing.
In an optional implementation manner, this broadcast further include in index file the first index file download address,
It include the corresponding download address of whole play sequence of the video in first index file;Alternatively, this broadcasts in index file
Further include the download address of the second index file, removes this in whole play sequence in second index file including the video
Broadcast the corresponding download address of remaining play sequence except play sequence.
In an optional implementation manner, which is also used to: rising and broadcasts play sequence corresponding video point at this
In the case that piece is played to third preset play time or the default fragment position of third, the client is according to the first index text
The download address of part or the second index file sends the second request to the CDN edge node devices, wherein second request is used
First index file or second index file are downloaded in request, which is less than this broadcasting sequence
The maximum value of the play time of column, the third preset fragment position this rise broadcast the fragment position of play sequence maximum value it
Before;The receiving unit is also used to: first index file or the second index text are received from the CDN edge node devices
Part;The download unit is also used to: according to the corresponding download address of whole play sequence, under in the CDN edge node devices
The corresponding video slicing of whole play sequence is carried, for playing out to the video section not played in the video;Or
According to the corresponding download address of residue play sequence, it is corresponding that the residue play sequence is downloaded from the CDN edge node devices
Video slicing, for being played out to the video section not played in the video.
In an optional implementation manner, which is also used to: the client receive input to the view
In the case where first play time of frequency or the playing request of the first fragment position, the client is according to first index file
Or second index file download address to the CDN edge node devices send second request, wherein this second request be used for
First index file or second index file are downloaded in request, which rises greater than this and broadcast broadcasting for play sequence
The maximum value of time is put, the first fragment position is after the maximum value for acting the fragment position for broadcasting play sequence;The reception list
Member is also used to: first index file or second index file are received from the CDN edge node devices;The download unit
It is also used to: according to the corresponding download address of whole play sequence, the whole is downloaded from the CDN edge node devices and plays sequence
Corresponding video slicing is arranged, for playing out from first play time or from the first fragment position to the video;
Or according to the corresponding download address of residue play sequence, the residue play sequence is downloaded from the CDN edge node devices
Corresponding video slicing, for being played out from first play time or from the first fragment position to the video.
In an optional implementation manner, the setting parameter that this broadcasts play sequence is received by the CDN source station server
The create-rule that arrives determines, the setting parameter include first preset play time perhaps the first default fragment position or
Including second preset play time or the second default fragment position.
In an optional implementation manner, which is the total duration of first preset play time and the video
The directly proportional or first default fragment position is directly proportional to the fragment quantity of the video;Alternatively, the create-rule be this second
Preset play time is directly proportional to the total duration of the video or the fragment quantity of the second default fragment position and the video at
Direct ratio.
In an optional implementation manner, before this broadcasts play sequence as the first preset play time of the video
The sequence of video slicing, or the sequence for the video slicing before the first default fragment position of the video;Alternatively, this broadcasts
After play time of the play sequence for the head of the video, and the sequence of the video slicing before the second preset play time
It arranges, or after the fragment position for the head of the video, and the sequence of the video slicing before the second default fragment position
Column.
In addition, the realization of each operation in Fig. 8 can also be to the phase that should refer to Fig. 2 or embodiment of the method shown in Fig. 4
It should describe.Above-mentioned each unit can be with hardware, and the mode of software or software and hardware combining is realized.
In client shown in Fig. 8, server is receiving the of client transmission by CDN edge node devices
After one request, will generate in real time and broadcast index file, broadcasting in index file has included with broadcasting the corresponding downloading of play sequence
Location, acts that broadcast one section of video clip that play sequence is one section of video clip starting of video or video is skipped after head corresponding
Sequence;Later, server pass through again CDN edge node devices to client send this broadcast index file.Rope is broadcast due to rising
The data volume that quotation part includes is less, and the time that generation and transmission occupies is less, and client can obtain in a relatively short period of time
Index file is broadcast to rising, the corresponding download address foradownloaded video content of play sequence is broadcast further according to and broadcast, to reach
It reduces video and plays the purpose that sowing time prolongs.
It is another server provided by the embodiments of the present application referring to Fig. 9, which is used as first server.This
One server includes processor 901, memory 902 and communication interface 903, the processor 901, memory 902 and communication interface
903 are connected with each other by bus 904.
Memory 902 include but is not limited to be random access memory (random access memory, RAM), it is read-only
Memory (read-only memory, ROM), Erasable Programmable Read Only Memory EPROM (erasable programmable
Read only memory, EPROM) or portable read-only memory (compact disc read-only memory, CD-
ROM), which is used for dependent instruction and data.
Communication interface 903 can be configured for receiving information for data transmission interface, communication interface or receiver etc.
Circuit or component.
Processor 901 can be one or more central processing units (central processing unit, CPU), locate
In the case that reason device 901 is a CPU, which can be monokaryon CPU, be also possible to multi-core CPU.
Processor 901 in the server is executed following by reading and executing the program code stored in memory 902
Operation:
The first request of client is received from content distributing network CDN edge node devices by communication interface 903, this
One requests the index file for requesting video.
Play sequence is broadcast from obtaining the video in second server by communication interface 903, wherein this broadcasts broadcasting
Sequence is the sequence of the partial video fragment of the video.
This of generation broadcasts play sequence corresponding and broadcasts index file, and it has included broadcasting play sequence in index file that this, which broadcasts,
Corresponding download address.
By communication interface 903 to the CDN edge node devices send this broadcast index file so that the client from
The CDN fringe node receives this and broadcasts index file.
In one possible implementation, which is also used to: obtaining the video from the second server
Whole play sequence;The first index file is generated according to the whole play sequence;Alternatively, obtaining the view from the second server
Except this acts the remaining play sequence in addition to broadcasting play sequence in whole play sequence of frequency;The is generated according to the residue play sequence
Two index files.
In one possible implementation, this broadcast further include in index file first index file downloading
Location includes the corresponding download address of whole play sequence of the video in first index file, or this broadcasts index file
In further include second index file download address, include in second index file video whole play sequence in remove
This acts the corresponding download address of remaining play sequence broadcast except play sequence.
In one possible implementation, which is also used to: receiving client from the CDN edge node devices
Second request at end, second request download corresponding first index file of the client or the second index text for requesting
Part;First index file or second index file are sent to the CDN edge node devices.
In one possible implementation, which includes multiple client, if the first server is from the edge CDN
Node device receives first request of multiple client, then the first server generates multiple client corresponding and broadcasts
The priority of index file, be higher than the first server generate corresponding first index file of multiple client or this
The priority of two index files.
In one possible implementation, which includes multiple client, and each of multiple client
Client has priority, if the first server receives first request of multiple client from CDN edge node devices,
Then the first server is preferentially produced corresponding of the high client of priority and broadcasts index file, and is preferentially produced priority height
Corresponding first index file of client or second index file.
In one possible implementation, which is also used to: it is default to judge that the playing duration of the video is greater than
Duration, or judge that the fragment number of the video is greater than preset value.
In one possible implementation, which is also used to: receiving and acts the setting for broadcasting play sequence for this
The create-rule of parameter, the setting parameter include first the preset play time perhaps first default fragment position or packet
It includes, second preset play time or the second default fragment position;Determine that this broadcasts play sequence according to the create-rule
Setting parameter.
In one possible implementation, which is the total duration of first preset play time and the video
The directly proportional or first default fragment position is directly proportional to the fragment quantity of the video;Alternatively, the create-rule be this second
Preset play time is directly proportional to the total duration of the video or the fragment quantity of the second default fragment position and the video at
Direct ratio.
In one possible implementation, before this broadcasts play sequence as the first preset play time of the video
The sequence of video slicing, or the sequence for the video slicing before the first default fragment position of the video;Alternatively, this broadcasts
After play time of the play sequence for the head of the video, and the sequence of the video slicing before the second preset play time
It arranges, or after the fragment position for the head of the video, and the sequence of the video slicing before the second default fragment position
Column.
The detail of each operation performed by processor 901 in Fig. 9 can also be to should refer to Fig. 2 Fig. 4 institute
The corresponding description for the embodiment of the method shown.
In server shown in Fig. 9, which is receiving the of client transmission by CDN edge node devices
After one request, will generate in real time and broadcast index file, broadcasting in index file has included with broadcasting the corresponding downloading of play sequence
Location, acts that broadcast one section of video clip that play sequence is one section of video clip starting of video or video is skipped after head corresponding
Sequence;Later, server pass through again CDN edge node devices to client send this broadcast index file.Rope is broadcast due to rising
The data volume that quotation part includes is less, and the time that generation and transmission occupies is less, and client can obtain in a relatively short period of time
Index file is broadcast to rising, the corresponding download address foradownloaded video content of play sequence is broadcast further according to and broadcast, to reach
It reduces video and plays the purpose that sowing time prolongs.
It is another client provided by the embodiments of the present application referring to Figure 10.The client includes processor 1001, storage
Device 1002 and communication interface 1003, the processor 1001, memory 1002 and communication interface 1003 are mutually interconnected by bus 1004
It connects.
Memory 1002 include but is not limited to be random access memory (random access memory, RAM), it is read-only
Memory (read-only memory, ROM), Erasable Programmable Read Only Memory EPROM (erasable programmable
Read only memory, EPROM) or portable read-only memory (compact disc read-only memory, CD-
ROM), which is used for dependent instruction and data.
Communication interface 1003 can be configured for receiving information for data transmission interface, communication interface or receiver etc.
Circuit or component.
Processor 1001 can be one or more central processing units (central processing unit, CPU),
In the case that processor 1001 is a CPU, which can be monokaryon CPU, be also possible to multi-core CPU.
Processor 1001 in the client by reading and execute the program code stored in memory 1002, execute with
Lower operation:
The first request is sent to CDN edge node devices by communication interface 1003, first request is for requesting video
Index file.
By communication interface 1003 from received in the CDN edge node devices video it is corresponding broadcast index file, should
Rise broadcast in index file including the video rise broadcast the corresponding download address of play sequence, wherein this broadcast play sequence for be somebody's turn to do
The sequence of the partial video fragment of video.
It is risen according to this and broadcasts the corresponding download address of play sequence, played from downloading this in the CDN edge node devices
The corresponding video slicing of sequence carries out video playing.
In one possible implementation, this broadcast further include in index file the first index file download address,
It include the corresponding download address of whole play sequence of the video in first index file;Alternatively, this broadcasts in index file
Further include the download address of the second index file, removes this in whole play sequence in second index file including the video
Broadcast the corresponding download address of remaining play sequence except play sequence.
In one possible implementation, which is also used to: rising and broadcasts the corresponding video of play sequence at this
Fragment be played to third preset play time perhaps third preset in the case where fragment position according to first index file or
The download address of second index file sends the second request to the CDN edge node devices, wherein second request is for requesting
First index file or second index file are downloaded, which rises less than this and broadcast broadcasting for play sequence
The maximum value of time is put, which presets fragment position before the maximum value for acting the fragment position for broadcasting play sequence;From this
First index file or second index file are received in CDN edge node devices;It is corresponding according to the whole play sequence
Download address, download the corresponding video slicing of whole play sequence, from the CDN edge node devices with for the view
The video section not played in frequency plays out;Or according to the corresponding download address of residue play sequence, from the edge CDN
The corresponding video slicing of residue play sequence is downloaded in node device, with for the video section not played in the video into
Row plays.
In one possible implementation, which is also used to: the client receive input to this
First play time of video is perhaps in the case where the playing request of the first fragment position according to first index file or
The download address of two index files sends the second request to the CDN edge node devices, wherein under second request is for requesting
First index file or second index file are carried, which is greater than this and acts the play time for broadcasting play sequence
Maximum value, the first fragment position is after the maximum value for acting the fragment position for broadcasting play sequence;From the CDN fringe node
First index file or second index file are received in equipment;According to the corresponding download address of whole play sequence,
The corresponding video slicing of whole play sequence is downloaded, from the CDN edge node devices to be used for from first play time
Or the video is played out from the first fragment position;Or according to the corresponding download address of residue play sequence, from
The corresponding video slicing of residue play sequence is downloaded in the CDN edge node devices, with for from first play time or
Person plays out the video from the first fragment position.
In one possible implementation, the setting parameter that this broadcasts play sequence is received by the CDN source station server
The create-rule that arrives determines, the setting parameter include first preset play time perhaps the first default fragment position or
Including second preset play time or the second default fragment position.
In one possible implementation, which is the total duration of first preset play time and the video
The directly proportional or first default fragment position is directly proportional to the fragment quantity of the video;Alternatively, the create-rule be this second
Preset play time is directly proportional to the total duration of the video or the fragment quantity of the second default fragment position and the video at
Direct ratio.
In one possible implementation, before this broadcasts play sequence as the first preset play time of the video
The sequence of video slicing, or the sequence for the video slicing before the first default fragment position of the video;Alternatively, this broadcasts
After play time of the play sequence for the head of the video, and the sequence of the video slicing before the second preset play time
It arranges, or after the fragment position for the head of the video, and the sequence of the video slicing before the second default fragment position
Column.
The detail of each operation performed by processor 1001 in Figure 10 can also be to should refer to Fig. 2 or Fig. 4
Shown in embodiment of the method corresponding description.
In equipment shown in Fig. 10, server is receiving the of client transmission by CDN edge node devices
After one request, will generate in real time and broadcast index file, broadcasting in index file has included with broadcasting the corresponding downloading of play sequence
Location, acts that broadcast one section of video clip that play sequence is one section of video clip starting of video or video is skipped after head corresponding
Sequence;Later, server pass through again CDN edge node devices to client send this broadcast index file.Rope is broadcast due to rising
The data volume that quotation part includes is less, and the time that generation and transmission occupies is less, and client can obtain in a relatively short period of time
Index file is broadcast to rising, the corresponding download address foradownloaded video content of play sequence is broadcast further according to and broadcast, to reach
It reduces video and plays the purpose that sowing time prolongs.
A kind of computer program product is provided in another embodiment of the application, when the computer program product is calculating
When running on machine, the method for Fig. 2 or embodiment illustrated in fig. 4 is achieved.
A kind of computer readable storage medium is provided in another embodiment of the application, the computer readable storage medium
It is stored with computer program, which realizes Fig. 2 or embodiment illustrated in fig. 4 method when being computer-executed.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Those familiar with the art within the technical scope of the present application, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should all cover within the scope of protection of this application.