CN109005430A - A kind of order method, system, device and the storage medium of audio/video content - Google Patents

A kind of order method, system, device and the storage medium of audio/video content Download PDF

Info

Publication number
CN109005430A
CN109005430A CN201811082868.5A CN201811082868A CN109005430A CN 109005430 A CN109005430 A CN 109005430A CN 201811082868 A CN201811082868 A CN 201811082868A CN 109005430 A CN109005430 A CN 109005430A
Authority
CN
China
Prior art keywords
node
video
audio
client
content fragment
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
CN201811082868.5A
Other languages
Chinese (zh)
Other versions
CN109005430B (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.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething Technology 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 Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201811082868.5A priority Critical patent/CN109005430B/en
Publication of CN109005430A publication Critical patent/CN109005430A/en
Application granted granted Critical
Publication of CN109005430B publication Critical patent/CN109005430B/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/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • 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/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/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • H04N21/4325Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
    • 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

Abstract

This application discloses a kind of order methods of audio/video content, when the client for initiating on-demand request supports parallel transmission, the content fragment wherein stored is pulled simultaneously in destination node where constituting each content fragment of target sound/video file respectively, and the client is transmitted it to after completion of assembly, to accelerate the program request speed of audio/video resource, the mode that single-point pulls is carried out from centralized server compared to tradition, become multichannel from single-pass data transmission, when single-pass data transmission does not reach the user bandwidth upper limit, target sound/video resource program request speed can effectively be promoted, user's viewing experience is more preferably.The application further simultaneously discloses VOD system, device and the computer readable storage medium of a kind of audio/video content, has above-mentioned beneficial effect.

Description

A kind of order method, system, device and the storage medium of audio/video content
Technical field
This application involves audio/video program request technical field, in particular to a kind of order method of audio/video content, system, Device and computer readable storage medium.
Background technique
With the popularity of the internet with the extensive information source of information age, more and more people can be selected by network It is derived from oneself interested information to watch, the most universal is exactly all kinds of audio/video resources, is different to be controlled by TV station and broadcast The TV programme put, not only degree of integration is higher for the audio/video resource on network, and can be picked out at random according to user intention, arbitrarily Program request, user experience is more preferably.
In the prior art, also there is a kind of benefit in the serious consequence that centralization storage mode occurs in failure in order to prevent The distributed storage mode that memory space is formed is provided with by numerous users, by each data file segmentation at multiple contents point Piece, and each content fragment is stored in different nodes respectively according to certain redundant fashion and is stored, even if some is used Family goes offline or failure, additionally it is possible to and identical content fragment is obtained from other nodes, finally reverts back complete data file, this For kind mode since each complete data file is not stored portion in each node, one can effectively save depositing for node Space is stored up, two can also prevent the user of node from directly obtaining complete data file.
A kind of distributed storage mode of decentralization is although given based on aforesaid way, but how to be answered this kind of mode In terms of program request for audio/video resource, to accelerate the buffer speed of resource, reach the user bandwidth upper limit as far as possible, is this Field technical staff's urgent problem to be solved.
Summary of the invention
The purpose of the application is to provide a kind of order method of audio/video content, in the client branch for initiating on-demand request When holding parallel transmission, it is pulled simultaneously in the destination node where constituting each content fragment of target sound/video file respectively The content fragment of middle storage, and the client is transmitted it to after completion of assembly, to accelerate the program request speed of audio/video resource Degree, carries out the mode that single-point pulls from centralized server compared to tradition, becomes multichannel from single-pass data transmission, in single channel number When not reaching the user bandwidth upper limit according to transmission, target sound/video resource program request speed can be effectively promoted, user's viewing experience is more It is good.
The another object of the application is the provision of the VOD system of audio/video content a kind of, device and computer-readable Storage medium.
To achieve the above object, the application provides a kind of order method of audio/video content, this method comprises:
Receive the on-demand request of target audio/video;
Determine whether the client for initiating the on-demand request supports parallel transmission according to the on-demand request;
When the client supports parallel transmission, each content fragment difference institute for constituting the target audio/video is obtained Destination node;
Each content fragment of the target audio/video is pulled from each destination node simultaneously, and according to each described interior The temporal characteristics for holding fragment re-assembly as complete audio/video;
The complete audio/video is back to the client.
Optionally, determine whether the client for initiating the on-demand request supports parallel transmission according to the on-demand request, Include:
It is extracted from the on-demand request and obtains the interface type that the client is supported;
When the interface type includes MSE and/or Fetch interface, determine that the client supports parallel transmission;
When the interface type does not include the MSE and/or the Fetch interface, determine that the client is not supported Parallel transmission.
Optionally, the destination node constituted where each content fragment difference of the target audio/video is obtained, comprising:
The content fragment distribution request of the target audio/video is sent to control centre;
Receive the control centre according to the content fragment be distributed request return include each content fragment institute In the request return information of node, and is determined according to the request return information and constitute each destination node.
Optionally, while from each destination node each content fragment of the target audio/video is pulled, comprising:
Pull each content fragment of the target audio/video from each destination node simultaneously in a manner of Range.
Optionally, the order method further include:
According to each content fragment and each content fragment respectively where each destination node establish data pull Corresponding table.
Optionally, the order method further include:
When the client does not support parallel transmission, from the HTTP section of the optional support http protocol of available node pool Point;
The data pull is corresponded into table and is issued to the HTTP node, so that the HTTP node is from each target section Each content fragment is pulled in point, and is passed through after reformulating each content fragment for the complete audio/video Http protocol unicast is to the client.
Optionally, from the HTTP node of the optional support http protocol of available node pool, comprising:
All nodes for supporting http protocol are chosen from the available node pool, obtain preliminary available section point set;
The network quality of each node is concentrated to choose to obtain a preferred HTTP node according to the preliminary enabled node;Its In, the preferred HTTP node is the optimal node of network quality described in the preliminary enabled node collection;
The data pull is corresponded into table and is issued to the HTTP node, so that the HTTP node is from each target section Each content fragment is pulled in point, and is passed through after re-assemblying each content fragment for the complete audio/video Http protocol unicast is to the client, comprising:
The data pull is corresponded into table and is issued to the preferred HTTP node, so that the preferred HTTP node is from each institute It states and pulls each content fragment in destination node, and lead to after the content fragment to be re-assemblied to the complete audio/video Http protocol unicast is crossed to the client.
Optionally, the order method further include:
When a content fragment for constituting the target audio/video is located on N number of node simultaneously, by default selection rule It concentrates to choose from the identical content fragment node being made of N number of node and obtains unique destination node;Wherein, N >= 2。
To achieve the above object, present invention also provides a kind of VOD systems of audio/video content, comprising:
On-demand request receiving unit, for receiving the on-demand request of target audio/video;
Parallel transmission supports judging unit, for determining the client for initiating the on-demand request according to the on-demand request Whether parallel transmission is supported;
Node determination unit where content fragment, for obtaining described in constituting when the client supports parallel transmission Destination node where each content fragment difference of target audio/video;
Multinode data pull and assembling unit, for pulling the target sound/view from each destination node simultaneously Each content fragment of frequency, and re-assemblied according to the temporal characteristics of each content fragment as complete audio/video;
Complete audio/video return unit, for the complete audio/video to be back to the client.
Optionally, the parallel transmission supports that judging unit includes:
Interface type extracts subelement, for extracting the interface class for obtaining the client and supporting from the on-demand request Type;
Parallel transmission is supported to determine subelement, for determining when the interface type includes MSE and/or Fetch interface The client supports parallel transmission;
Parallel transmission is not supported to determine subelement, for not including the MSE and/or described when the interface type When Fetch interface, determine that the client does not support parallel transmission.
Optionally, node determination unit where the content fragment includes:
Distribution request transmission sub-unit, the content fragment for sending the target audio/video to control centre, which is distributed, asks It asks;
Each destination node determines subelement, is distributed request return according to the content fragment for receiving the control centre Include the request return information of node where each content fragment, and determined and constituted respectively according to the request return information The destination node.
Optionally, the multinode data pull and assembling unit include:
Range multi-source data pulls subelement, for pulling institute in a manner of Range while from each destination node State each content fragment of target audio/video.
Optionally, the order method further include:
Corresponding table establishes unit, for according to each mesh where each content fragment and each content fragment difference Mark node establishes data pull and corresponds to table.
Optionally, the order method further include:
HTTP node selection unit, for when the client does not support parallel transmission, from available node pool optional one A HTTP node for supporting http protocol;
Unicast processing unit is issued to the HTTP node for the data pull to be corresponded to table, so that described HTTP node pulls each content fragment from each destination node, and reformulates by each content fragment as institute Pass through http protocol unicast to the client after stating complete audio/video.
Optionally, the HTTP node selection unit includes:
Preliminary available section point set determines subelement, for choosing all support http protocols from the available node pool Node obtains preliminary available section point set;
It is preferred that HTTP node selection subelement, for concentrating the network quality of each node to select according to the preliminary enabled node It obtains to a preferred HTTP node;Wherein, the preferred HTTP node is network matter described in the preliminary enabled node collection Measure optimal node;
The unicast processing unit includes:
It is preferred that HTTP node-node transmission subelement, is issued to the preferred HTTP section for the data pull to be corresponded to table Point so that the preferred HTTP node pulls each content fragment from each destination node, and divides by the content Piece passes through http protocol unicast to the client after re-assemblying the complete audio/video.
Optionally, the order method further include:
Redundant node selection unit, for being located at N number of section simultaneously when a content fragment for constituting the target audio/video When on point, selection is concentrated to obtain uniquely from the identical content fragment node being made of N number of node by default selection rule The destination node;Wherein, N >=2.
To achieve the above object, present invention also provides a kind of on-demand devices of audio/video content, comprising:
Memory, for storing computer program;
Processor realizes the point of the audio/video content as described in above content when for executing the computer program The step of broadcasting method.
To achieve the above object, described computer-readable to deposit present invention also provides a kind of computer readable storage medium It is stored with computer program on storage media, is realized as described in above content when the computer program is executed by processor The step of order method of audio/video content.
Obviously, the order method of a kind of audio/video content provided herein, in the client branch for initiating on-demand request When holding parallel transmission, it is pulled simultaneously in the destination node where constituting each content fragment of target sound/video file respectively The content fragment of middle storage, and the client is transmitted it to after completion of assembly, to accelerate the program request speed of audio/video resource Degree, carries out the mode that single-point pulls from centralized server compared to tradition, becomes multichannel from single-pass data transmission, in single channel number When not reaching the user bandwidth upper limit according to transmission, target sound/video resource program request speed can be effectively promoted, user's viewing experience is more It is good.The application additionally provides VOD system, device and the computer readable storage medium of a kind of audio/video content simultaneously, has Above-mentioned beneficial effect, details are not described herein.
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, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the order method of audio/video content provided by the embodiments of the present application;
Fig. 2 is that one kind determines whether to support to pass parallel in the order method of audio/video content provided by the embodiments of the present application Defeated flow chart;
Fig. 3 is a kind of real when not supporting parallel transmission in the order method of audio/video content provided by the embodiments of the present application The flow chart that existing audio/video content plays;
Fig. 4 does not support to realize one kind in audio/video content playback method when parallel transmission to be provided by the embodiments of the present application Choose the flow chart of the method for preferred HTTP node;
Fig. 5 is a kind of structural block diagram of the VOD system of audio/video content provided by the embodiments of the present application;
Fig. 6 is provided by the embodiments of the present application a kind of by parallel transmission acceleration target sound/video content buffer speed The logical schematic of VOD system;
Fig. 7 is that a kind of client provided by the embodiments of the present application is not supported to realize target based on http protocol when parallel transmission Audio/video content accelerates the logical schematic of the VOD system of buffering.
Specific embodiment
The core of the application is to provide order method, system, device and the computer-readable storage of a kind of audio/video content Medium divides when the client for initiating on-demand request supports parallel transmission from each content fragment of target sound/video file is constituted The content fragment wherein stored is pulled simultaneously in destination node where not, and transmits it to the client after completion of assembly End carries out the mode that single-point pulls from centralized server compared to tradition to accelerate the program request speed of audio/video resource, from Single-pass data transmission becomes multichannel, when single-pass data transmission does not reach the user bandwidth upper limit, can effectively promote target audio/video money The program request speed in source, user's viewing experience is more preferably.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art All other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Embodiment one
Below in conjunction with Fig. 1, Fig. 1 is a kind of flow chart of the order method of audio/video content provided by the embodiments of the present application, The executing subject of the present embodiment is that can initiate the client of on-demand request (according to locating platform, including webpage client, PC visitor Family end, mobile client) a functional unit, in the industry cycle commonly known as SDK (Software Development Kit, Software Development Kit referred to establishes application software for specific software package, software frame, hardware platform, operating system etc. When developing instrument set), specifically includes the following steps:
S101: the on-demand request of target audio/video is received;
When user clicks the play button of some audio/video content on the client, corresponding functional unit will be sent out Play target sound/video content on-demand request, which is used to (pass to possessing target sound/video content node Then to the data server of centralization under system mode) it requests to return to the data file of the target audio-video, it is returned with staying in receive It is played out for user by corresponding player after the data file returned, and then completes entire on-demand process.
S102: determine whether the client for initiating on-demand request supports parallel transmission according to on-demand request;
On the basis of S101, this step is intended to determine whether the client for initiating on-demand request props up according to the on-demand request Parallel transmission is held, why can determine whether corresponding client supports parallel transmission according to the on-demand request, this is because In order to determine the client type of on-demand request is initiated, target data file is returned to whom and how to return target data etc. Subsequent pending operation, therefore when initiating the on-demand request, the Partial Feature information of client where usually also carrying, It may include: client model, IP address, the player types used, the data transmission interface type of support etc. information, with Just can according to these information determinations should use which kind of form tissue will return target data file, based on which kind of agreement it is complete At data transmission etc..
The emphasis of the application is the distributed storage form how to be stored on multiple nodes in data file dispersion Under, realization is as fast as possible to be presented on user at the moment for target sound/video content of user's program request, therefore this step is intended to basis On-demand request determines whether request initiating terminal supports parallel transmission.Certainly, whether description client supports the letter of parallel transmission Breath or field be not unique, can basis since different types of player still has biggish difference in principle Different players realizes corresponding adjustment, it is therefore intended that determines whether request initiating terminal through taking supports that data, which can be achieved, accelerates transmission Parallel transmission mode.
A method of include but is not limited to are as follows: judged according to the interface type of support, since different phase is difference The different data interface of Player Design can meet the requirement of different actual scenes, therefore can be made whether to support simultaneously based on this The judgement of row transmission.By taking HTML5 (hypertext markup language the 5th edition) player as an example, if client supports MSE where player Interface or Fetch interface, HTML5 player can simultaneously multiple download links from multiple data source downloading data files.
Media Source Extensions (MSE) is one that the major browsers such as Chrome, Safari, Edge are supported A new Web API (web-page interface).MSE is W3C (World Wide Web Consortium) standard, allows a kind of JavaScript (literal translation Formula scripting language is a part of browser) Media Stream of dynamic construction<video>(video) and<audio>(audio).It is fixed Justice object, allows JavaScript media stream segment to HTMLMediaElement (HTML media elements).It is logical It crosses using MSE, can dynamically modify Media Stream without any plug-in unit.Front end JavaScript can be done more for this Thing, such as carry out turning encapsulation, processing or even transcoding in JavaScript.Although MSE cannot allow stream to be transmitted directly to media On tags (media label), but MSE provides the core technology of building browser-cross player, and browser is allowed to pass through JavaScript API is pushed away in audio-video to media tags.
Fetch interface, more precisely, Fetch interface are a part under Fetch frame, in front end fast development During ground, in order to agree with better design pattern, fetch frame is produced, fetch frame is just to provide for more simply Powerful, efficient network request and give birth to, although the problem of having some browser-safes at present, can be used fetch progress Perfect network request.
Under the actual environment using HTML5 player, support the client of MSE interface and/or Fetch interface that can make The mode that HTML5 player realizes parallel transmission is obtained, realizes the purpose for accelerating program request.
S103: it when client supports parallel transmission, obtains where constituting each content fragment difference of target audio/video Destination node;
This step is established on the basis of the judging result of S102 is the client support parallel transmission for initiating on-demand request, It is intended to determine the destination node constituted where each content fragment difference of target audio/video.
It by each data file segmentation is in advance also each content fragment, and based on superfluous according to the description of background technology part Remaining mode disperses to be stored in each node, to realize the distributed storage of decentralization, therefore, correspondingly, receiving one When the client that the on-demand request of a audio/video content and request are initiated supports parallel transmission just, it is necessary to from each target section Each content fragment of the target audio/video is taken out in point, is used to broadcast to be back to the client that request is initiated after being recombinated It puts.Therefore, this step is intended to determine the storage location of each content fragment, in the actual operation process, has generally by record The control centre of the nodal stored information of each content fragment of all complete audio/videos is constituted to determine destination node, is being connect It when receiving the distribution request of each content fragment of target audio/video, will be scanned in the database of itself, and will be each interior The information of node returns to request end where holding fragment, so that number is established with these nodes simultaneously according to each nodal information in request end According to connection, to pull each content fragment.Further, the control centre can also implement to monitor each node communicated be The no status informations such as online.
A kind of implementation for including but is not limited to are as follows:
The content fragment for sending target audio/video to control centre is distributed request;
Receive control centre according to content fragment be distributed that request returns include node where each content fragment request Return information, and determined according to request return information and constitute each destination node.
Further, since the data based on redundancy split storage mode, it may be such that certain content fragments can be simultaneously It is stored in different nodes, it is intended that a node is because that can also guarantee that recombination obtains one completely wherein when abnormal go offline Data file, therefore may also relate to how to choose a node from multiple nodes, and be taken out from the node chosen Desired content fragment, mode is varied, can mode, nearest reason, active and standby mechanism etc. measure priority-based, also It can be deposited when abnormal in the content fragment taken out from the node chosen, additional respective markers simultaneously replace another node in time, Sufficiently to realize redundancy, herein and it is not specifically limited, it can flexible choice according to the actual situation.
S104: while each content fragment of target audio/video is pulled from each destination node, and according to each content fragment Temporal characteristics re-assembly as complete audio/video;
On the basis of S103, this step is intended to pull each content point of target audio/video from each destination node simultaneously Piece, and re-assemblied according to the temporal characteristics of each content fragment as complete audio/video.It should be noted that described herein same When pull, the number pulled parallel that can be realized or simultaneously line number, be not necessarily required to it is consistent with content fragment number, can including Hold fragment number it is more in the case where, that completes all the elements fragment point several times pulls process, such as in target audio/video by 100 When a different content fragment composition, and when this 100 content fragments are stored respectively on 100 different nodes, Yi Zhongla It takes the mode to be, while pulling the content fragment on 10 nodes, front and back point 10 times completion full content fragments pull altogether.When What difference so, according to the actual situation, different interface type were supported pulls the limiting factors such as several upper limits parallel, can flexibly be adjusted It is whole.
Range mode is that one of multi-source data pulls mode, can also use the data pull side of other same types Formula is realized, herein and is not specifically limited.
S105: complete audio/video is back to client.
On the basis of S104, this step is intended to for the complete audio/video that recombination obtains (being contained in by corresponding path In on-demand request, for example, IP address) it is back to client, and the broadcasting of target audio/video is completed using the player of client.
It is different from the mode that traditional single-point is pulled from data server, the application is on the basis using distributed storage On, the acceleration of resource program request is realized by way of parallel transmission.
Based on the above-mentioned technical proposal, the order method of a kind of audio/video content provided by the embodiments of the present application, in initiate point Target when broadcasting the client support parallel transmission of request, where constituting each content fragment of target sound/video file respectively The content fragment wherein stored is pulled simultaneously in node, and transmits it to the client after completion of assembly, to accelerate sound/view The program request speed of frequency resource carries out the mode that single-point pulls from centralized server compared to tradition, transmits and become from single-pass data Target sound/video resource program request speed can be effectively promoted when single-pass data transmission does not reach the user bandwidth upper limit for multichannel, User's viewing experience is more preferably.
Embodiment two
Below in conjunction with Fig. 2, Fig. 2 is for determination a kind of in the order method of audio/video content provided by the embodiments of the present application The no flow chart for supporting parallel transmission, the present embodiment are intended to provide a kind of concrete implementation mode for S102, which is based on Whether the client for initiating on-demand request supports certain types of interface to complete to judge, the specific steps are as follows:
S201: it is extracted from on-demand request and obtains the interface type of client support;
S202: when interface type includes MSE and/or Fetch interface, determine that client supports parallel transmission;
S203: when interface type does not include MSE and/or Fetch interface, determine that client does not support parallel transmission.
It should be noted that S202 and S203 are two steps arranged side by side based on S201, rather than exist as step name Sequencing.
Compared to embodiment one, what is provided through this embodiment judges whether support parallel transmission based on supporting interface type Method, it is simpler, easy-to-use, it is more convenient in Project Realization.
Embodiment three
Below in conjunction with Fig. 3, Fig. 3 is that one kind is not supported in the order method of audio/video content provided by the embodiments of the present application Realize that the flow chart that audio/video content plays, the present embodiment are intended to S102 judgement and show that the client is not supported when parallel transmission On the basis of parallel transmission, a kind of covert mode for realizing acceleration audio/video content-on-demand is provided, specific implementation step is as follows:
S301: according to each content fragment and each content fragment respectively where each destination node to establish data pull corresponding Table;
This step is intended to determine structure according to the corresponding table of the data pull comprising corresponding relationship between each content fragment and each node At the destination node where each content fragment of target sound/video content, to obtain each content fragment from these nodes.
S302: when client does not support parallel transmission, from the HTTP of the optional support http protocol of available node pool Node;
Client due to initiating on-demand request does not support parallel transmission, can only be transmitted based on traditional one point data Mode is completed by http protocol (HyperText Transfer Protocol, hypertext transfer protocol), therefore is also needed The HTTP node of the optional support http protocol of available node pool, wherein available node pool includes the available of substantial amounts Node is provided due to the equipment that these nodes are all based on user, there is a situation where that supported protocol is different.
S303: corresponding to table for data pull and be issued to HTTP node, so that HTTP node pulls respectively from each destination node Content fragment, and pass through http protocol unicast to client after reformulating each content fragment as complete audio/video.
On the basis of S302, this step, which is intended to corresponding to data pull into table, is issued to HTTP node, so that HTTP node Each content fragment is pulled from each destination node, since client does not support parallel transmission, the complete audio/video needed Data must be obtained from the HTTP node chosen, due to only storing some content fragments in each node under normal conditions, because This is in the case where being not present complete audio/video, it is also necessary to correspond to table completion Supplementing Data according to data pull, so as to will be each Content fragment is reformulated to pass through http protocol unicast after complete audio/video to client.
On the basis of example 1, the present embodiment leads in the case where judging mode that request end does not support parallel data transmission It crosses and data transmission bauds is improved to a certain extent to the transformation based on traditional HTTP unicast agreement application method.
Example IV
Below in conjunction with Fig. 4, Fig. 4 does not support to realize that audio/video content is broadcast when parallel transmission to be provided by the embodiments of the present application A kind of flow chart for the method for choosing preferred HTTP node, the present embodiment in method is put to provide on the basis of embodiment three A method of a preferred HTTP node how being chosen, maximumlly to optimize the resource program request experience of user, practical scene For there are multiple nodes for supporting http protocol, the specific steps are as follows:
S401: all nodes for supporting http protocol are chosen from available node pool, obtain preliminary available section point set;
S402: the network quality of each node is concentrated to choose to obtain a preferred HTTP node according to preliminary enabled node;
Wherein, preferably HTTP node is that preliminary enabled node concentrates the optimal node of network quality.
The present embodiment is intended to choose to obtain a preferred HTPP node by way of the network quality for measuring each node, It is, of course, also possible to obtain preferred HTTP node based on other selection principles, it is therefore intended that as far as possible for user provide one it is good Resource program request experience.
S403: corresponding to table for data pull and be issued to preferred HTTP node, so that it is preferred that HTTP node is from each destination node In pull each content fragment, and after content fragment to be re-assemblied to complete audio/video by http protocol unicast to visitor Family end.
Compared to the various embodiments described above, the present embodiment is after determining all nodes for supporting http protocol, also according to net This factor of network quality is chosen to obtain the preferred HTTP node for possessing optimum network quality, as optimal as possible to provide for user Resource program request experience.
Embodiment five
Fig. 5 is referred to below, and Fig. 5 is a kind of structure of the VOD system of audio/video content provided by the embodiments of the present application Block diagram, the system may include:
On-demand request receiving unit 100, for receiving the on-demand request of target audio/video;
Parallel transmission support judging unit 200, for according to on-demand request determine initiate on-demand request client whether Support parallel transmission;
Node determination unit 300 where content fragment, for obtaining and constituting target when client supports parallel transmission Destination node where each content fragment difference of audio/video;
Multinode data pull and assembling unit 400, for pulling each of target audio/video from each destination node simultaneously Content fragment, and re-assemblied according to the temporal characteristics of each content fragment as complete audio/video;
Complete audio/video return unit 500, for complete audio/video to be back to client.
Wherein, parallel transmission supports that judging unit 200 may include:
Interface type extracts subelement, obtains the interface type of client support for extracting from on-demand request;
Parallel transmission is supported to determine subelement, for determining client when interface type includes MSE and/or Fetch interface Support parallel transmission in end;
Parallel transmission is not supported to determine subelement, for determining when interface type does not include MSE and/or Fetch interface Client does not support parallel transmission.
Wherein, node determination unit 300 may include: where content fragment
Distribution request transmission sub-unit, the content fragment for sending target audio/video to control centre are distributed request;
Each destination node determines subelement, includes for receiving control centre according to what content fragment was distributed request return The request return information of node where each content fragment, and determined according to request return information and constitute each destination node.
Wherein, multinode data pull and assembling unit 400 may include:
Range multi-source data pulls subelement, for pulling target in a manner of Range while from each destination node Each content fragment of audio/video.
Further, which can also include:
Corresponding table establishes unit, for according to each content fragment and each content fragment respectively where each destination node build Vertical data pull corresponds to table;
HTTP node selection unit, for when client does not support parallel transmission, from the optional branch of available node pool Hold the HTTP node of http protocol;
Unicast processing unit is issued to HTTP node for data pull to be corresponded to table, so that HTTP node is from each Each content fragment is pulled in destination node, and passes through http protocol after reformulating each content fragment for complete audio/video Unicast is to client.
Further, HTTP node selection unit may include:
Preliminary available section point set determines subelement, for choosing all sections for supporting http protocol from available node pool Point obtains preliminary available section point set;
It is preferred that HTTP node selection subelement, for concentrating the network quality of each node to choose according to preliminary enabled node To a preferred HTTP node;Wherein, preferably HTTP node is that preliminary enabled node concentrates the optimal node of network quality;
Unicast processing unit may include:
It is preferred that HTTP node-node transmission subelement, is issued to preferred HTTP node for data pull to be corresponded to table, so that excellent It selects HTTP node to pull each content fragment from each destination node, and leads to after content fragment to be re-assemblied to complete audio/video Http protocol unicast is crossed to client.
Further, which can also include:
Redundant node selection unit, for being located at N number of node simultaneously when a content fragment for constituting target audio/video When, concentrate selection to obtain unique destination node from the identical content fragment node being made of N number of node by default selection rule; Wherein, N >=2.
Based on the above embodiment, present invention also provides a kind of on-demand device of audio/video content, which can be with Including memory and processor, wherein have computer program in the memory, which calls the calculating in the memory When machine program, step provided by above-described embodiment may be implemented.Certainly, which can also include various necessary nets Network interface, power supply and other components etc..
Embodiment six
The present embodiment provides a kind of concrete implementation mode for playing objective cloud, in conjunction with this practical application scene, specifically Including several parts being related to, object for appreciation visitor's cloud node of substantial amounts, the objective cloud equipment of each object for appreciation is a node, and one is responsible for Data distribution formula stores and records the Xing Yu cloud control centre and the end SDK of relevant parameter, and wherein the end SDK can be embodied in Functional unit on mobile terminal (mobile devices such as mobile phone), the functional unit in fixing end (fixed equipments such as PC) and the end Web On web browser function component, wherein mobile terminal, fixing end and the end Web with client carry out unified presentation.
It is provided first below when client supports MSE and/or Fetch interface, how to realize and money is realized with parallel transmission Source point broadcasts the mode of acceleration:
Client supports the MSE of H5, Fetch interface, i.e. H5 player that can support to pull sound view from multiple nodes by JS Frequency data fragmentation, while it being assembled into complete audio-video document at end, then audio, video data is transmitted to the broadcasting of H5 by interface Device, the normal video for completing player play;
As shown in fig. 6, specific process is as follows:
1, client triggering plays an audio-video document, such as http://a.com/app/vodvedio.flv;
2, SDK checks whether client JS supports MSE and/or Fetch interface;If supported, step 3 is gone to;
3, which SDK has play objective cloud to star domain cloud scheduling request video file cache resources, and cloud scheduling returns to a batch There is the node of resource to give the end SDK;
4, SDK initiates the link of these contacts, after connecting, by RANGE mode, starts concurrent data requests;Complete number It is downloaded according to the acceleration of video file.
One kind is given herein when client does not support MSE and/or Fetch interface, realizes become in another way The implementation that phase resource program request accelerates:
Client do not support to support MSE the and/or Fetch interface of H5, i.e. H5 player cannot be by JS from multiple nodes Audio, video data fragment, this kind of situation are pulled, H5 player is only supported to request standard http agreement from an acceleration node, be completed The acceleration of data is downloaded.
As shown in fig. 7, specific process is as follows:
1, client triggering plays an audio-video document, such as http://a.com/app/vodvedio.flv;
2, SDK checks whether client JS supports MSE and/or Fetch interface;If it does not, then going to step 3;
3, which SDK has play objective cloud to star domain cloud scheduling request video file cache resources, and requires to play objective cloud Have inside node and support http protocol, cloud scheduling returns to the top quality objective cloud node of HTTP object for appreciation and gives the end SDK;
4, the end SDK plays objective cloud node to HTTP by http protocol and initiates audio, video data request;
5, HTTP plays on objective cloud node whether have the complete data of the video, if having, is then all transmitted to SDK and plays end, If incomplete, step 6 please be go to;
6, the HTTP, which plays objective cloud node and can dispatch to initiate to obtain simultaneously from star domain cloud, has the list of this audio and video resources to ask It asks;
7, object for appreciation visitor's cloud node that cloud scheduling returns to a batch hit resource plays objective cloud node to HTTP;
8, HTTP, which plays objective cloud node, can concurrently link the objective cloud node of this batch of object for appreciation, while initiate the request of pulling data piece;
9, HTTP plays objective cloud node and sends broadcasting end for complete video file, and the file for completing to play end accelerates and broadcasts Put device.
Because situation is complicated, it can not enumerate and be illustrated, those skilled in the art should be able to recognize according to the application The basic skills principle combination actual conditions of offer may exist many examples, in the case where not paying enough creative works, It should within the scope of protection of this application.
Present invention also provides a kind of computer readable storage mediums, have computer program thereon, the computer program Step provided by above-described embodiment may be implemented when being performed terminal or processor execution.The storage medium may include: U Disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), the various media that can store program code such as magnetic or disk.
Specific examples are used herein to illustrate the principle and implementation manner of the present application, and between each embodiment For progressive relationship, each embodiment focuses on the differences from other embodiments, identical between each embodiment Similar portion may refer to each other.For the device disclosed in the embodiment, reference can be made to corresponding method part illustration.The above reality The explanation for applying example is merely used to help understand the present processes and its core concept.For the ordinary skill people of the art Member for, under the premise of not departing from the application principle, can also to the application, some improvement and modification can also be carried out, these improve and Modification is also fallen into the protection scope of the claim of this application.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also other elements including being not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or equipment for including element.

Claims (11)

1. a kind of order method of audio/video content characterized by comprising
Receive the on-demand request of target audio/video;
Determine whether the client for initiating the on-demand request supports parallel transmission according to the on-demand request;
When the client supports parallel transmission, obtain where constituting each content fragment difference of the target audio/video Destination node;
Each content fragment of the target audio/video is pulled from each destination node simultaneously, and according to each content point The temporal characteristics of piece re-assembly as complete audio/video;
The complete audio/video is back to the client.
2. order method according to claim 1, which is characterized in that determine initiate the program request according to the on-demand request Whether the client of request supports parallel transmission, comprising:
It is extracted from the on-demand request and obtains the interface type that the client is supported;
When the interface type includes MSE and/or Fetch interface, determine that the client supports parallel transmission;
When the interface type does not include the MSE and/or the Fetch interface, determine that the client is not supported parallel Transmission.
3. order method according to claim 1, which is characterized in that obtain each content for constituting the target audio/video Destination node where fragment difference, comprising:
The content fragment distribution request of the target audio/video is sent to control centre;
It receives the control centre and the section where including each content fragment that request returns is distributed according to the content fragment The request return information of point, and determined according to the request return information and constitute each destination node.
4. order method according to claim 1, which is characterized in that while the mesh is pulled from each destination node Mark each content fragment of audio/video, comprising:
Pull each content fragment of the target audio/video from each destination node simultaneously in a manner of Range.
5. order method according to claim 1, which is characterized in that further include:
According to each content fragment and each content fragment respectively where each destination node to establish data pull corresponding Table.
6. order method according to claim 5, which is characterized in that further include:
When the client does not support parallel transmission, from the HTTP node of the optional support http protocol of available node pool;
The data pull is corresponded into table and is issued to the HTTP node, so that the HTTP node is from each destination node Each content fragment is pulled, and is assisted after reformulating each content fragment for the complete audio/video by HTTP Unicast is discussed to the client.
7. order method according to claim 6, which is characterized in that from the optional support http protocol of available node pool HTTP node, comprising:
All nodes for supporting http protocol are chosen from the available node pool, obtain preliminary available section point set;
The network quality of each node is concentrated to choose to obtain a preferred HTTP node according to the preliminary enabled node;Wherein, institute Stating preferred HTTP node is the optimal node of network quality described in the preliminary enabled node collection;
The data pull is corresponded into table and is issued to the HTTP node, so that the HTTP node is from each destination node Each content fragment is pulled, and is assisted after re-assemblying each content fragment for the complete audio/video by HTTP Unicast is discussed to the client, comprising:
The data pull is corresponded into table and is issued to the preferred HTTP node, so that the preferred HTTP node is from each mesh Each content fragment is pulled in mark node, and is passed through after the content fragment is re-assemblied the complete audio/video Http protocol unicast is to the client.
8. order method according to any one of claims 1 to 7, which is characterized in that further include:
When a content fragment for constituting the target audio/video is located on N number of node simultaneously, by default selection rule from by The identical content fragment node of N number of node composition, which is concentrated to choose, obtains unique destination node;Wherein, N >=2.
9. a kind of VOD system of audio/video content characterized by comprising
On-demand request receiving unit, for receiving the on-demand request of target audio/video;
Parallel transmission supports judging unit, for determine according to the on-demand request initiate the on-demand request client whether Support parallel transmission;
Node determination unit where content fragment, for obtaining and constituting the target when the client supports parallel transmission Destination node where each content fragment difference of audio/video;
Multinode data pull and assembling unit, for pulling the target audio/video from each destination node simultaneously Each content fragment, and re-assemblied according to the temporal characteristics of each content fragment as complete audio/video;
Complete audio/video return unit, for the complete audio/video to be back to the client.
10. a kind of on-demand device of audio/video content characterized by comprising
Memory, for storing computer program;
Processor realizes audio/video content as claimed in any one of claims 1 to 8 when for executing the computer program Order method.
11. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the computer program realize audio/video content as claimed in any one of claims 1 to 8 when being executed by processor Order method.
CN201811082868.5A 2018-09-17 2018-09-17 Method, system, device and storage medium for on-demand playing of audio/video contents Active CN109005430B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811082868.5A CN109005430B (en) 2018-09-17 2018-09-17 Method, system, device and storage medium for on-demand playing of audio/video contents

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811082868.5A CN109005430B (en) 2018-09-17 2018-09-17 Method, system, device and storage medium for on-demand playing of audio/video contents

Publications (2)

Publication Number Publication Date
CN109005430A true CN109005430A (en) 2018-12-14
CN109005430B CN109005430B (en) 2021-05-18

Family

ID=64591856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811082868.5A Active CN109005430B (en) 2018-09-17 2018-09-17 Method, system, device and storage medium for on-demand playing of audio/video contents

Country Status (1)

Country Link
CN (1) CN109005430B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714606A (en) * 2018-12-29 2019-05-03 深圳市网心科技有限公司 A kind of HLS document play-back method, system and electronic equipment and storage medium
CN109788301A (en) * 2019-01-08 2019-05-21 深圳市网心科技有限公司 A kind of live broadcasting method of Streaming Media, terminal device, live broadcast system and computer readable storage medium
CN112929756A (en) * 2021-03-05 2021-06-08 深圳市迅雷网络技术有限公司 Video-on-demand method, P2P node and computer-readable storage medium
CN114257835A (en) * 2021-12-31 2022-03-29 广东省教育研究院 Live broadcast system based on education cloud platform and live broadcast method thereof

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087403A (en) * 2007-05-31 2007-12-12 吴彬 Distributed stream media order system based on P2P technology and implementation method for stream media program order
CN101959054A (en) * 2009-07-14 2011-01-26 中国电信股份有限公司 Integrated P2P (Peer-To-Peer) VOD (Video-On-Demand) system and partner node selecting method
CN102063486A (en) * 2010-12-28 2011-05-18 东北大学 Multi-dimensional data management-oriented cloud computing query processing method
CN102143237A (en) * 2011-05-09 2011-08-03 宋健 Grid-based Internet content delivery method and system
CN102196298A (en) * 2011-05-19 2011-09-21 广东星海数字家庭产业技术研究院有限公司 Distributive VOD (video on demand) system and method
CN105392068A (en) * 2015-11-04 2016-03-09 合一网络技术(北京)有限公司 Distributed multi-transmission channel network live video parallel distribution method and system
US20170124173A1 (en) * 2014-03-31 2017-05-04 International Business Machines Corporation Parallel bootstrap aggregating in a data warehouse appliance
CN106789956A (en) * 2016-12-01 2017-05-31 武汉市烽视威科技有限公司 A kind of P2P order methods and system based on HLS

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087403A (en) * 2007-05-31 2007-12-12 吴彬 Distributed stream media order system based on P2P technology and implementation method for stream media program order
CN101959054A (en) * 2009-07-14 2011-01-26 中国电信股份有限公司 Integrated P2P (Peer-To-Peer) VOD (Video-On-Demand) system and partner node selecting method
CN102063486A (en) * 2010-12-28 2011-05-18 东北大学 Multi-dimensional data management-oriented cloud computing query processing method
CN102143237A (en) * 2011-05-09 2011-08-03 宋健 Grid-based Internet content delivery method and system
CN102196298A (en) * 2011-05-19 2011-09-21 广东星海数字家庭产业技术研究院有限公司 Distributive VOD (video on demand) system and method
US20170124173A1 (en) * 2014-03-31 2017-05-04 International Business Machines Corporation Parallel bootstrap aggregating in a data warehouse appliance
CN105392068A (en) * 2015-11-04 2016-03-09 合一网络技术(北京)有限公司 Distributed multi-transmission channel network live video parallel distribution method and system
CN106789956A (en) * 2016-12-01 2017-05-31 武汉市烽视威科技有限公司 A kind of P2P order methods and system based on HLS

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714606A (en) * 2018-12-29 2019-05-03 深圳市网心科技有限公司 A kind of HLS document play-back method, system and electronic equipment and storage medium
CN109788301A (en) * 2019-01-08 2019-05-21 深圳市网心科技有限公司 A kind of live broadcasting method of Streaming Media, terminal device, live broadcast system and computer readable storage medium
CN109788301B (en) * 2019-01-08 2021-12-03 深圳市网心科技有限公司 Live broadcast method, terminal equipment, live broadcast system and computer readable storage medium of streaming media
CN112929756A (en) * 2021-03-05 2021-06-08 深圳市迅雷网络技术有限公司 Video-on-demand method, P2P node and computer-readable storage medium
CN114257835A (en) * 2021-12-31 2022-03-29 广东省教育研究院 Live broadcast system based on education cloud platform and live broadcast method thereof

Also Published As

Publication number Publication date
CN109005430B (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN109005430A (en) A kind of order method, system, device and the storage medium of audio/video content
US8595342B2 (en) Synchronized media playback using autonomous clients over standard Internet protocols
KR100870587B1 (en) Multimedia session management
CN102215116B (en) Method, equipment and system that time migration is served are provided in a digital broadcasting system
WO2015043415A1 (en) Method, device and system for video content interaction
CN103813185B (en) A kind of method that segment programs are quickly distributed, server and client
JP2011130018A (en) Content distribution system, content distribution apparatus, content playback terminal and content distribution method
CN109600673A (en) Information processing unit, information processing method and computer-readable medium
EP2515536A1 (en) Content distribution system, content distribution device, content playback terminal, and content distribution method
CN105828210A (en) Bullet screen based song-on-demand method and device
CN108076383A (en) Adaptive identifying, control method, set-top box and electronic programming server
CN103702178B (en) A kind of playback method and electronic equipment
WO2011029355A1 (en) Program delivery method, set-top box and electronic program guide
CN101867777A (en) Video ordering transmission method based on peer-to-peer computing set-top box
WO2013097454A1 (en) Video inter-cut method, device and system
JP2010062963A (en) Television receiver, and processing method in television receiver
JP2013232697A (en) Content transfer device and content transfer method, content reproduction device and content reproduction method, content distribution system, and computer program
WO2015070796A1 (en) Method and device for pushing resources to mobile communication terminal by smart television
CN103596019B (en) For showing the method and system of IPTV contents across screen
KR20170141677A (en) Receiving device, transmitting device and data processing method
CN108833552A (en) A kind of P2P content distribution system of promiscuous mode
JP2010154523A (en) Content broadcasting system, and content broadcasting method
CN107318052A (en) Player method, television set and the storage medium of television video
CN103139601B (en) The implementation method of IPTV service and device
CN106303754A (en) A kind of audio data play method and device

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