Summary of the invention
In view of the above drawbacks of the prior art, the multimedia messages that the embodiment of the present invention provides a kind of AVS-DASH system are inserted
Broadcast control method, system and client.
The multimedia messages that one aspect of the present invention provides a kind of AVS-DASH system intercut control method, comprising:
Media information segment to be played is obtained from server, and inquiry and institute from the media description file obtained in advance
State the corresponding media information description of media information segment;
If judgement is known in the media information description comprising multithread property parameters, according to the multithread property parameters control
Make the broadcasting that stream is intercutted in the media information segment, wherein the multithread property parameters specifically include: class is intercutted in multithread
The duration is intercutted in type, the inter cut time of multithread and multithread.
Another aspect of the present invention provides a kind of client, comprising:
Processing module, for obtaining media information segment to be played from server, and from the media description obtained in advance
Media information description corresponding with the media information segment is inquired in file;
Control module, if for judging to know in the media information description comprising multithread property parameters, according to
Multithread property parameters control the broadcasting that stream is intercutted in the media information segment, wherein the multithread property parameters specifically include:
Multithread intercut type, the inter cut time of multithread and multithread intercut the duration.
The multimedia messages that another aspect of the invention provides a kind of AVS-DASH system intercut control system, comprising:
Server and above-mentioned client.
The multimedia messages of AVS-DASH system provided in an embodiment of the present invention intercut control method, system and client,
Media information segment to be played is obtained from server by client, and from the media description file obtained in advance inquiry with
The corresponding media information description of media information segment, if judgement is known in media information description comprising multithread property parameters, root
Believe according to the duration control media that intercut for intercutting type, the inter cut time of multithread and multithread of the multithread in multithread property parameters
The broadcasting of stream is intercutted in breath segment, thus in AVS-DASH system on the basis of Transmitting of Multi-media Information mechanism, is realized pair
Effective description and control comprising intercutting the multithread media information of stream, improve the diversity of media traffic.
Specific embodiment
Fig. 1 is that the multimedia messages of an AVS-DASH system provided in an embodiment of the present invention intercut the process of control method
Figure, as shown in Figure 1, this method comprises:
Step 100, media information segment to be played is obtained from server, and from the media description file obtained in advance
Inquire media information description corresponding with the media information segment;
In AVS-DASH system, multimedia messages, which can be split, is stored in HTTP clothes for many small media information segments
It is engaged on device, each media information segment can be made into the piecemeal sample of different code rates, for covering different bandwidth conditions, institute
Have an information such as organizational form, code rate, resolution ratio, the web page address of media information segment, by a media description file into
Row description.It should be noted that multimedia messages include video information and audio-frequency information.
Client to multimedia messages play during, first look at obtain in advance it is corresponding with the multimedia messages
Media description file, include initial time and the webpage of each media information segment cut in media description file
Location, client successively obtain sequentially in time and play each media information segment described in media description file.When
After client obtains media information segment to be played from server, inquiry and the media information segment from media description file
Corresponding media information description.
Step 101, if judgement is known in the media information description comprising multithread property parameters, according to the multithread category
The broadcasting of stream is intercutted in media information segment described in property state modulator, wherein the multithread property parameters specifically include: multithread
That intercuts type, the inter cut time of multithread and multithread intercuts the duration.
Client query corresponding with media information segment media information description, judge in media information description whether
Comprising multithread property parameters, specifically, multithread property parameters include: the inter cut time for intercutting type type, multithread of multithread
Duration duration is intercutted in offsetStart and multithread, wherein the type type that intercuts of multithread includes: that centre is intercutted
Mode Default, covering intercut mode Overlap with synchronize intercut mode Concurrent, the inter cut time of multithread
OffsetStart is the relative time based on the media information segment period starting point;The duration is intercutted in multithread
Duration is that this intercuts the play time of stream.If judgement is known comprising multithread property parameters in media information description, should
Media information segment is identified as comprising original media stream and intercuts the multithread media information segment of stream, thus according to corresponding more
The broadcasting of stream is intercutted in the stream attribute state modulator media information segment.
Specifically, when the value of type is Default, in such a way that centre is intercutted, client will be in offsetStart
Stream is intercutted in broadcasting, after intercutting stream broadcasting, then continues to play original media stream from the breakpoint of original media stream, such as
Advertisement is inserted into VoD program;When the value of type is Overlap, in such a way that covering is intercutted, client will be
Stream is intercutted in offsetStart broadcasting, after intercutting stream broadcasting, then skips from original media stream the time of inter cut time length
Point continues to play original media stream, such as Live program is inserted into advertisement;It is slotting using synchronizing when the value of type is Concurrent
The mode broadcast, client will play in offsetStart and intercut stream, and the broadcasting of original media stream continues to, unaffected.
The multimedia messages of AVS-DASH system provided in this embodiment intercut control method, by client from server
Media information segment to be played is obtained, and inquiry is corresponding with media information segment from the media description file obtained in advance
Media information description, if judgement is known in media information description comprising multithread property parameters, according in multithread property parameters
The intercutting in duration control media information segment for type, the inter cut time of multithread and multithread of intercutting of multithread intercuts broadcasting for stream
It puts, to realize in AVS-DASH system on the basis of Transmitting of Multi-media Information mechanism to the multithread matchmaker comprising intercutting stream
The effective description and control of body information, improve the diversity of media traffic.
Fig. 2 is that the multimedia messages of another AVS-DASH system provided in an embodiment of the present invention intercut the stream of control method
Cheng Tu, as shown in Fig. 2, this method comprises:
Step 200, the multimedia messages play command and server issued according to user establishes hypertext transfer protocol
HTTP connection is obtained corresponding with user multimedia messages to be played by the http session between the server
Media description file;
In AVS-DASH system, multimedia messages can be that many small media are believed by the cutting of Web Video Service provider
Breath segment is stored on one or HTTP server, and each media information segment can be made into the piecemeal sample of different code rates
This, for covering different bandwidth conditions, the letter such as organizational form, code rate, resolution ratio, web page address of all media information segments
Breath, is described by a media description file.It should be noted that multimedia messages include video information and audio letter
Breath.When user sends multimedia messages play command to client, client is played according to the multimedia messages that user issues
Order is established hypertext transfer protocol HTTP with server and is connect, after the completion of link is established, by between server
Http session acquisition media description file corresponding with user's multimedia messages to be played.
Step 201, according to the description of the media information of media information segments multiple in the media description file and client
Network information parameter, obtain media information segment to be played by http session, and from the media description text obtained in advance
Media information description corresponding with the media information segment is inquired in part;
Client can be obtained media description file corresponding with the multimedia messages that user to be watched simultaneously parses, and looks into
Media information description corresponding with each media information segment is ask, then client passes through according to local network information parameter
Http session obtains media information segment to be played, and network information parameter specifically includes the informations parameter such as bandwidth conditions.Work as visitor
After family end obtains media information segment to be played from server, inquiry and the media information segment pair from media description file
The media information description answered.
Step 202, it if judgement is known in the media information description comprising multithread property parameters, inquires media information and retouches
Group generic attribute parameter in stating, by video media information segment and audio media information segment with identical group of generic attribute parameter
It is divided into one group;
Client query corresponding with media information segment media information description, judge in media information description whether
Comprising multithread property parameters, specifically, multithread property parameters include: the inter cut time for intercutting type type, multithread of multithread
Duration duration is intercutted in offsetStart and multithread, wherein the type type that intercuts of multithread includes: that centre is intercutted
Mode Default, covering intercut mode Overlap with synchronize intercut mode Concurrent, the inter cut time of multithread
OffsetStart is the relative time based on the media information segment period starting point;The duration is intercutted in multithread
Duration is that this intercuts the play time of stream.If judgement is known comprising multithread property parameters in media information description, should
Media information segment is identified as comprising original media stream and intercuts the multithread media information segment of stream, then inquires media information
Group generic attribute parameter in description, by video media information segment and audio media information piece with identical group of generic attribute parameter
Section is divided into one group.
Step 203, the broadcasting for intercutting stream in every group in media information segment is controlled according to the multithread property parameters,
In, the multithread property parameters specifically include: type, the inter cut time of multithread and when intercutting lasting of multithread are intercutted in multithread
Between.
Client controls in every group in video media information segment and audio media information segment according to multithread property parameters
The broadcasting of stream is intercutted, specifically, when the value of type is Default, in such a way that centre is intercutted, client will be
Stream is intercutted in offsetStart broadcasting, after intercutting stream broadcasting, then continues to play original matchmaker from the breakpoint of original media stream
Advertisement is inserted into body stream, such as VoD program;When the value of type is Overlap, in such a way that covering is intercutted, client will
OffsetStart broadcasting intercut stream, after intercutting stream broadcasting, then from original media stream skip inter cut time length when
Between point continue play original media stream, such as Live program be inserted into advertisement;When the value of type is Concurrent, using synchronization
The mode intercutted, client will play in offsetStart and intercut stream, and the broadcasting of original media stream continues to, not by shadow
It rings.
The multimedia messages of AVS-DASH system provided in this embodiment intercut control method, pass through client and server
Between http session obtain media information segment to be played, and from the media description file obtained in advance inquiry and media
The corresponding media information description of information segment will have if judgement is known in media information description comprising multithread property parameters
The video media information segment and audio media information segment of identical group of generic attribute parameter are divided into one group, then according to multithread attribute
The duration of intercutting for intercutting type, the inter cut time of multithread and multithread of multithread in parameter controls media information piece in every group
The broadcasting of stream is intercutted in section, thus in AVS-DASH system on the basis of Transmitting of Multi-media Information mechanism, realize to comprising
The effective description and control for intercutting the multithread media information of stream, improve the diversity and flexibility of media traffic.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light
The various media that can store program code such as disk.
Fig. 3 is the structural schematic diagram of a client provided in an embodiment of the present invention, as shown in figure 3, the client includes:
Processing module 11 and control module 12, wherein processing module 11 is used to obtain media information segment to be played from server, and
Media information description corresponding with the media information segment is inquired from the media description file obtained in advance;Control module 12
If controlling institute according to the multithread property parameters comprising multithread property parameters for judging to know in the media information description
State the broadcasting that stream is intercutted in media information segment, wherein the multithread property parameters specifically include: type, more is intercutted in multithread
The duration is intercutted in the inter cut time of stream and multithread.
The function and process flow of each module in client provided in this embodiment, may refer to above-mentioned side shown in FIG. 1
Method embodiment, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Further, processing module 11 is also used to:
Hypertext transfer protocol HTTP is established with server according to the multimedia messages play command that user issues to connect;It is logical
The http session crossed between the server obtains media description text corresponding with user multimedia messages to be played
Part.
Wherein, processing module 11 is specifically used for:
Believed according to the network of the description of the media information of media information segments multiple in the media description file and client
Parameter is ceased, media information segment to be played is obtained by http session.
Based on the above embodiment, further, control module 12 is specifically used for:
The group generic attribute parameter in the media information description is inquired, by the video media with identical group of generic attribute parameter
Information segment and audio media information segment are divided into one group, control media information segment in every group according to the multithread property parameters
In intercut the broadcasting of stream.
The function and process flow of each module in client provided in this embodiment, may refer to above-mentioned side shown in Fig. 2
Method embodiment, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Fig. 4 is that the multimedia messages of an AVS-DASH system provided in an embodiment of the present invention intercut the structure of control system
Schematic diagram, as shown in figure 4, the system includes: server 1 and client 2, wherein client 2 can be the above-mentioned implementation of the present invention
The client that example provides, server 1 can be the server referred in the above embodiment of the present invention.
The multimedia messages of AVS-DASH system provided in this embodiment intercut the function of each module and place in control system
Manage process, may refer to it is above-mentioned shown in embodiment of the method, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.