CN110072122A - Video playing method and related equipment - Google Patents

Video playing method and related equipment Download PDF

Info

Publication number
CN110072122A
CN110072122A CN201910319993.1A CN201910319993A CN110072122A CN 110072122 A CN110072122 A CN 110072122A CN 201910319993 A CN201910319993 A CN 201910319993A CN 110072122 A CN110072122 A CN 110072122A
Authority
CN
China
Prior art keywords
video
index file
sequence
client
server
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.)
Granted
Application number
CN201910319993.1A
Other languages
Chinese (zh)
Other versions
CN110072122B (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 Device Co Ltd
Petal Cloud Technology 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 CN201910319993.1A priority Critical patent/CN110072122B/en
Publication of CN110072122A publication Critical patent/CN110072122A/en
Priority to PCT/CN2020/084574 priority patent/WO2020211731A1/en
Application granted granted Critical
Publication of CN110072122B publication Critical patent/CN110072122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2541Rights Management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25816Management of client data involving client authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8358Generation of protective data, e.g. certificates involving watermark
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8455Structuring of content, e.g. decomposing content into time segments involving pointers to the content, e.g. pointers to the I-frames of the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

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

Abstract

The embodiment of the application discloses a video playing method and related equipment, which can reduce the starting time delay of a video under the condition of playing the video with a watermark. After receiving a first request sent by a client through CDN edge node equipment, a CDN source station server generates a broadcast start index file in real time, wherein the broadcast start index file comprises a download address corresponding to a broadcast start playing sequence, and the broadcast start playing sequence is a sequence corresponding to a segment of video segment at the beginning of a video or a segment of video segment after a video skips over a segment head; and then, the CDN source station server sends the broadcast index file to the client through CDN edge node equipment. Because the data volume contained in the start-up playing index file is less, the time occupied by generation and transmission is less, the client can acquire the start-up playing index file in a shorter time, and then download the video content according to the download address corresponding to the start-up playing sequence for start-up playing, thereby achieving the purpose of reducing the video start-up playing time delay.

Description

A kind of video broadcasting method and relevant device
Technical field
This application involves field of computer technology more particularly to a kind of video broadcasting methods and relevant device.
Background technique
Video content provider is illegally revealed in order to avoid video, it will usually add watermark in video (watermarking).The watermark added in video is generally implicit watermark, and implicit watermark is digital signal for identification, no It will affect the visual quality of viewing video.If video is illegally revealed, can by the watermark information in the video that leaks out, Tracing back to is which user leaks out this video, to protect the legitimate rights and interests of video content provider.
The method of cloud side addition watermark is the method for currently used addition watermark.The principle of this method is: passing through first One video code conversion is A stream, B two video mediums of stream by transcoding platform, includes multiple in A stream and the video medium of B stream Video slicing.Wherein, the video content of the video slicing of same slice position in multiple video slicings that A stream and B stream include Identical (for example, the fragment 1 of A stream is identical as the video content of fragment 1 that B flows), but added in the video slicing of A stream and B stream Watermark is different.For different users, different video slicings can be chosen in A stream and B stream and form play sequence.Example Such as, the play sequence for the video that user 1 gets may be A stream fragment 1, fragment 3, fragment 4, fragment 6 ... and B stream point Piece 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 stream fragment 1, fragment 5, fragment 6 ....Since A flows the watermark added in the video slicing flowed with B mutually not It is identical, it, can be with by the watermark sequence in detection video then the play sequence of different user corresponds to different watermark sequences The video of retrospect leakage is which user gets.
At this stage, during program request has the video file of watermark, the client of user will pass through content delivery network Network (content delivery network, CDN) edge node devices obtain from CDN source station server and play index file (for example, playing index file can be MPD file or M3U8 file).This index file is CDN source station server according to use What user's unique identification (unique ID) of family playing request generated in real time, which includes the entire play sequence pair of video The download address (for example, uniform resource locator (uniform resource locator, URL)) answered.This index file After generation, CDN source station server will send the index file to CDN edge node devices, and CDN edge node devices are again by the rope Quotation part is sent to the client of user;Later, the client of user will download view according to the download address in the index file Frequency division piece carries out video playing.
In above process, being likely to result in biggish sowing time prolongs, so that user waits video to act the time broadcast It is too long, user experience is seriously affected, causes user to play abandonment rate excessively high.The main reason for having caused sowing time to prolong has been broadcasting rope The generation time of quotation part and delivery time are longer.The video of a length of 2 hours when for example, for one, if 5s mono- Fragment, a video generate 7 kinds of code rate media and 1 tunnel audio;Then the index file shares 2*3600/5*8=11520 (item) The information of fragment, the time that burst information amount causes greatly very much CDN source station server to generate index file are longer.In addition, video point Broadcast MPD (the media presentation description) index file generally used using Dash agreement, Dash agreement The broadcasting URL of the video slicing of all resolution ratio/code rates is put in an index file.Index file is larger, will be so that CDN Edge node devices are obtained from the client that CDN source station server obtains index file and user from CDN edge node devices Index file can all generate biggish time delay.When how to solve to play the video for having watermark, a sowing time, which prolongs larger problem, is Those skilled in the art's urgent problem to be solved.
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.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Figure 1A~Fig. 1 D is the configuration diagram of some audio/video player systems provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of video broadcasting method provided by the embodiments of the present application;
Fig. 3 A~Fig. 3 D is the schematic diagram of the more provided by the embodiments of the present application setting parameter for broadcasting play sequence;
Fig. 4 is the flow chart of another video broadcasting method provided by the embodiments of the present application;
Fig. 5 A~Fig. 5 D is the schematic diagram of a scenario that some triggering clients provided by the embodiments of the present application send the second request;
Fig. 6 A~Fig. 6 D is the schematic diagram of a scenario that some triggering clients provided by the embodiments of the present application send the second request;
Fig. 7 is a kind of schematic diagram of server provided by the embodiments of the present application;
Fig. 8 is a kind of schematic diagram of client provided by the embodiments of the present application;
Fig. 9 is the schematic diagram of another server provided by the embodiments of the present application;
Figure 10 is the schematic diagram of another client provided by the embodiments of the present application.
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.

Claims (20)

1. a kind of video broadcasting method characterized by comprising
First server receives the first request of client, first request from content distributing network CDN edge node devices For requesting the index file of video;
The first server broadcasts play sequence from obtaining the video in second server, wherein described is broadcast broadcasting Sequence is the sequence of the partial video fragment of the video;
Described of the first server generation broadcasts play sequence corresponding and broadcasts index file, broadcasts in index file for described and wraps It has included and has broadcast the corresponding download address of play sequence;
The first server sends described rise to the CDN edge node devices and broadcasts index file, so that the client Index file is broadcast from described in CDN fringe node reception.
2. according to the method described in claim 1, the method also includes:
The first server obtains whole play sequence of the video from the second server;
The first server generates the first index file according to whole play sequence;
Alternatively, the first server from the whole play sequence for obtaining the video in the second server except described Broadcast the remaining play sequence except play sequence;
The first server generates the second index file according to the remaining play sequence.
3. according to the method described in claim 2, it is characterized in that, described broadcast in index file further include it is described first index The download address of file includes the corresponding download address of whole play sequence of the video in first index file, or Risen described in person broadcast further include in index file second index file download address, include institute in second index file State the corresponding download address of remaining play sequence in whole play sequence of video in addition to described is broadcast play sequence.
4. according to the method described in claim 2, it is characterized in that, the first server is to the CDN edge node devices It is risen described in sending after broadcasting index file, the method also includes:
The first server receives the second request of client from the CDN edge node devices, and second request is used for Corresponding first index file of client or second index file are downloaded in request;
The first server sends first index file or the second index text to the CDN edge node devices Part.
5. according to the described in any item methods of claim 2~4, which is characterized in that the client includes multiple client, if The first server receives first request of the multiple client from CDN edge node devices, then first clothes Business device generates the multiple client corresponding priority for broadcasting index file, and it is described more to be higher than first server generation The priority of a corresponding first index file of client or second index file.
6. according to the described in any item methods of claim 2~4, which is characterized in that the client includes multiple client, and Each client in the multiple client has priority, if the first server is received from CDN edge node devices First request of the multiple client, then the first server is preferentially produced corresponding of the high client of priority Index file is broadcast, and is preferentially produced corresponding first index file of the high client of the priority or second rope Quotation part.
7. described in any item methods according to claim 1~6, which is characterized in that in the first server from described second Obtained in server the video rise broadcast play sequence before, the method also includes:
The first server judges that the playing duration of the video is greater than preset duration, or judges the fragment number of the video Greater than preset value.
8. according to the described in any item methods of claim 2~7, which is characterized in that the method also includes:
The first server receives the create-rule that the setting parameter of play sequence is broadcast for described, the setting parameter packet Include first preset play time perhaps the described first default fragment position or including second preset play time Or the second default fragment position;
The first server determines the described setting parameter for broadcasting play sequence according to the create-rule.
9. according to the method described in claim 8, it is characterized in that, 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;Or Person, the create-rule be second preset play time it is directly proportional to the total duration of the video or it is described second in advance If fragment position is directly proportional to the fragment quantity of the video.
10. described in any item methods according to claim 1~9, which is characterized in that it is the video that described, which is broadcast play sequence, The first preset play time before video slicing sequence, or for the first default fragment position of the video before The sequence of video slicing;Alternatively, after described is broadcast play time of the play sequence for the head of the video, and second After the sequence of video slicing before preset play time, or fragment position for the head of the video, and The sequence of video slicing before two default fragment positions.
11. a kind of video broadcasting method characterized by comprising
Client sends the first request to CDN edge node devices, and described first requests the index file for requesting video;
The client from received in the CDN edge node devices video it is corresponding broadcast index file, described is broadcast Rising including the video broadcasts the corresponding download address of play sequence in index file, wherein described is broadcast play sequence as institute State the sequence of the partial video fragment of video;
The client broadcasts the corresponding download address of play sequence according to described rise, and downloads from the CDN edge node devices It broadcasts the corresponding video slicing of play sequence for described and carries out video playing.
12. according to the method for claim 11, which is characterized in that broadcasting in index file for described further includes the first index text The download address of part includes the corresponding download address of whole play sequence of the video in first index file;Alternatively, Described broadcast further include in index file the second index file download address, include the video in second index file Whole play sequence in the corresponding download address of remaining play sequence in addition to described is broadcast play sequence.
13. according to the method for claim 12, which is characterized in that the method also includes:
The corresponding video slicing of play sequence is broadcast at described is played to third preset play time or the default fragment position of third In the case where setting, the client is according to the download address of first index file or the second index file to the CDN Edge node devices send the second request, wherein second request downloads first index file or institute for requesting The second index file is stated, the third preset play time is less than the maximum value for rising and broadcasting the play time of play sequence, institute Before the maximum value for stating the fragment position that the default fragment position of third broadcasts play sequence at described;
The client receives first index file or the second index text from the CDN edge node devices Part;
The client is downloaded from the CDN edge node devices according to the corresponding download address of the whole play sequence The corresponding video slicing of the whole play sequence, for being played out to the video section not played in the video;Or Person downloads the remaining broadcasting according to the corresponding download address of the residue play sequence from the CDN edge node devices The corresponding video slicing of sequence, for being played out to the video section not played in the video.
14. according to the method for claim 12, which is characterized in that the method also includes:
Asking to the first play time of the video or the broadcasting of the first fragment position for input is received in the client In the case where asking, the client is according to the download address of first index file or the second index file to the CDN Edge node devices send the second request, wherein second request downloads first index file or institute for requesting State the second index file, first play time is greater than the maximum value for rising and broadcasting the play time of play sequence, and described the It is broadcast at described after the maximum value of the fragment position of play sequence one fragment position;
The client receives first index file or the second index text from the CDN edge node devices Part;
The client is downloaded from the CDN edge node devices according to the corresponding download address of the whole play sequence The corresponding video slicing of the whole play sequence, for from first play time or from first fragment position The video is played out;Or it according to the corresponding download address of the residue play sequence, is set from the CDN fringe node The corresponding video slicing of the standby middle downloading remaining play sequence, for from first play time or from described first Fragment position plays out the video.
15. 1~14 described in any item methods according to claim 1, which is characterized in that described is broadcast the setting ginseng of play sequence Number is determined by the create-rule that the CDN source station server receives, when the setting parameter includes the described first default broadcasting Between perhaps the described first default fragment position or including second preset play time or the second default fragment position It sets.
16. according to the method for claim 15, which is characterized in that the create-rule is first preset play time It directlys proportional to the fragment quantity of the video directly proportional to the total duration of the video or described first default fragment position; Alternatively, the create-rule is that second preset play time is directly proportional to the total duration of the video or described second Default fragment position is directly proportional to the fragment quantity of the video.
17. 1~16 described in any item methods according to claim 1, which is characterized in that it is the view that described, which is broadcast play sequence, The sequence of video slicing before first preset play time of frequency, or for the first default fragment position of the video before Video slicing sequence;Alternatively, after the described play time for broadcasting the head that play sequence is the video, and the After the sequence of video slicing before two preset play times, or fragment position for the head of the video, and The sequence of video slicing before second default fragment position.
18. a kind of server, which is characterized in that the server is used as first server, and the first server includes processing Device and memory, wherein the memory is instructed for storing program instruction, described program when being run by the processor, So that the first server executes such as the described in any item methods of claim 1~10.
19. a kind of client, which is characterized in that including processor and memory, wherein the memory refers to for storing program It enables, described program instruction by the processor when being run, so that any one of the client executing such as claim 11~17 The method.
20. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with program instruction, institute Stating program instruction when executed by a computer makes the computer execute such as the described in any item methods of claim 1~17.
CN201910319993.1A 2019-04-19 2019-04-19 Video playing method and related equipment Active CN110072122B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910319993.1A CN110072122B (en) 2019-04-19 2019-04-19 Video playing method and related equipment
PCT/CN2020/084574 WO2020211731A1 (en) 2019-04-19 2020-04-14 Video playing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910319993.1A CN110072122B (en) 2019-04-19 2019-04-19 Video playing method and related equipment

Publications (2)

Publication Number Publication Date
CN110072122A true CN110072122A (en) 2019-07-30
CN110072122B CN110072122B (en) 2022-03-08

Family

ID=67368255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910319993.1A Active CN110072122B (en) 2019-04-19 2019-04-19 Video playing method and related equipment

Country Status (2)

Country Link
CN (1) CN110072122B (en)
WO (1) WO2020211731A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636340A (en) * 2019-09-30 2019-12-31 普联技术有限公司 Video file uploading method and storage device
CN110677736A (en) * 2019-10-08 2020-01-10 烽火通信科技股份有限公司 HLS on-demand fast playing method and system
CN110677737A (en) * 2019-10-08 2020-01-10 烽火通信科技股份有限公司 HLS live broadcast quick playing method and system
WO2020211731A1 (en) * 2019-04-19 2020-10-22 华为技术有限公司 Video playing method and related device
CN113613032A (en) * 2021-08-04 2021-11-05 杭州梦视网络科技有限公司 Video transmission method of embedded remote teaching experiment system
CN114650239A (en) * 2022-03-23 2022-06-21 腾讯音乐娱乐科技(深圳)有限公司 Data brushing amount identification method, storage medium and electronic equipment

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113300875A (en) * 2021-02-10 2021-08-24 阿里巴巴集团控股有限公司 Return source data verification method, server, system and storage medium
CN113495843B (en) * 2021-07-07 2024-06-07 北京百度网讯科技有限公司 Method and apparatus for testing play-up performance of video player
CN114025201A (en) * 2021-10-29 2022-02-08 恒安嘉新(北京)科技股份公司 Video playing method, device, equipment and storage medium
CN115086300B (en) * 2022-06-16 2023-09-08 乐视云网络技术(北京)有限公司 Video file scheduling method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685264A (en) * 2013-12-06 2014-03-26 乐视致新电子科技(天津)有限公司 Method, client side and system for broadcasting media fragmentations in turn
US20140282703A1 (en) * 2013-03-14 2014-09-18 Comcast Cable Communications, Llc Delivery of content and priority messages
CN105872721A (en) * 2015-12-14 2016-08-17 乐视云计算有限公司 Processing method and device of play-starting speed
CN105872607A (en) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 Method, server and terminal device for providing multimedia contents
CN105898535A (en) * 2015-12-30 2016-08-24 乐视致新电子科技(天津)有限公司 Play start speed improving method, video player and electronic device
CN106559677A (en) * 2015-09-30 2017-04-05 华为技术有限公司 The method and device of terminal, caching server and acquisition video slicing
CN110022482A (en) * 2019-03-05 2019-07-16 咪咕视讯科技有限公司 Video plays broadcasting method, video service system and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9578354B2 (en) * 2011-04-18 2017-02-21 Verizon Patent And Licensing Inc. Decoupled slicing and encoding of media content
CN104125516B (en) * 2013-04-24 2018-09-28 华为技术有限公司 Media file reception, media file sending method and apparatus and system
CN108933764B (en) * 2017-05-26 2022-04-22 中兴通讯股份有限公司 Method and device for realizing quick broadcast starting
CN108540868B (en) * 2018-05-16 2019-04-16 北京百度网讯科技有限公司 Processing method, device, server, terminal and the storage medium of HLS live streaming
CN110072122B (en) * 2019-04-19 2022-03-08 华为技术有限公司 Video playing method and related equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282703A1 (en) * 2013-03-14 2014-09-18 Comcast Cable Communications, Llc Delivery of content and priority messages
CN103685264A (en) * 2013-12-06 2014-03-26 乐视致新电子科技(天津)有限公司 Method, client side and system for broadcasting media fragmentations in turn
CN106559677A (en) * 2015-09-30 2017-04-05 华为技术有限公司 The method and device of terminal, caching server and acquisition video slicing
CN105872721A (en) * 2015-12-14 2016-08-17 乐视云计算有限公司 Processing method and device of play-starting speed
CN105898535A (en) * 2015-12-30 2016-08-24 乐视致新电子科技(天津)有限公司 Play start speed improving method, video player and electronic device
CN105872607A (en) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 Method, server and terminal device for providing multimedia contents
CN110022482A (en) * 2019-03-05 2019-07-16 咪咕视讯科技有限公司 Video plays broadcasting method, video service system and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020211731A1 (en) * 2019-04-19 2020-10-22 华为技术有限公司 Video playing method and related device
CN110636340A (en) * 2019-09-30 2019-12-31 普联技术有限公司 Video file uploading method and storage device
CN110636340B (en) * 2019-09-30 2021-11-09 普联技术有限公司 Video file uploading method, storage device, terminal device and storage medium
CN110677736A (en) * 2019-10-08 2020-01-10 烽火通信科技股份有限公司 HLS on-demand fast playing method and system
CN110677737A (en) * 2019-10-08 2020-01-10 烽火通信科技股份有限公司 HLS live broadcast quick playing method and system
CN113613032A (en) * 2021-08-04 2021-11-05 杭州梦视网络科技有限公司 Video transmission method of embedded remote teaching experiment system
CN114650239A (en) * 2022-03-23 2022-06-21 腾讯音乐娱乐科技(深圳)有限公司 Data brushing amount identification method, storage medium and electronic equipment
CN114650239B (en) * 2022-03-23 2024-02-23 腾讯音乐娱乐科技(深圳)有限公司 Data brushing amount identification method, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2020211731A1 (en) 2020-10-22
CN110072122B (en) 2022-03-08

Similar Documents

Publication Publication Date Title
CN110072122A (en) Video playing method and related equipment
US11877017B2 (en) System for measuring video playback events using a server generated manifest/playlist
US20230283814A1 (en) Method and apparatus for a virtual online video channel
CN103003821B (en) For the DRM method and apparatus of service is provided
KR101854919B1 (en) Method and apparatus for providing drm service
CN105516739B (en) Video live broadcast method, transcoding server, webpage client and system
CN104837035B (en) A kind of video broadcasting method and terminal
US20180376206A1 (en) System and Method to Obtain Content and Generate Modified Content Based on Time Limited Content Information
JP5265365B2 (en) Apparatus and method for providing and presenting customized channel information
US8973026B2 (en) Decoding media content at a wireless receiver
EP2172867A1 (en) Network av content reproduction terminal, server, and system
CN106060055B (en) A kind of television video playback method and system
MX2013002076A (en) Receiving device, receiving method and program.
CN107517411B (en) Video playing method based on GSstreamer frame
CN106028154A (en) Program playing method and device based on HLS (HTTP Live Streaming) protocol
EP2835947B1 (en) Method, terminal, and server for generating media information and ahs system thereof
WO2015131390A1 (en) Communication method, user device, content server and controller
JP2009517944A (en) A method for providing an interactive menu to a terminal coupled to a communication network upon request
WO2008009880A1 (en) Decoding media content
CN105474648B (en) Content feedway, content supply method, program, terminal installation and content provider system
CN112689171A (en) Video playing system
US20130191876A1 (en) Reproducing device, reproducing method, and program
CN110719498A (en) Video data processing method, device and system
WO2016194637A1 (en) Reproduction device, delivery device, reproduction method, and delivery method
KR20110059430A (en) Method for servicing multimedia contents using network attached storage with webhard system and apparatus for the same and system for the same

Legal Events

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

Effective date of registration: 20220506

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: HUAWEI DEVICE Co.,Ltd.

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

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

Effective date of registration: 20220506

Address after: 523799 Room 101, building 4, No. 15, Huanhu Road, Songshanhu Park, Dongguan City, Guangdong Province

Patentee after: Petal cloud Technology Co.,Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee before: HUAWEI DEVICE Co.,Ltd.