CN103763580B - A kind of multi-medium play method and relevant device - Google Patents
A kind of multi-medium play method and relevant device Download PDFInfo
- Publication number
- CN103763580B CN103763580B CN201410005121.5A CN201410005121A CN103763580B CN 103763580 B CN103763580 B CN 103763580B CN 201410005121 A CN201410005121 A CN 201410005121A CN 103763580 B CN103763580 B CN 103763580B
- Authority
- CN
- China
- Prior art keywords
- multimedia file
- file fragment
- media flow
- current
- flow quality
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the invention discloses a kind of multi-medium play method and relevant device, including:When the current multimedia file fragment to be played in multimedia file is played out, the broadcasting mark of the current multimedia file fragment to be played is obtained;Obtain the media flow quality grade adaptable with the broadcasting mark of the current multimedia file fragment to be played;The current multimedia file fragment to be played corresponding with the media flow quality grade is asked to server, and exports the current multimedia file fragment to be played.Using the present invention, it can not only rise and broadcast quickly, Consumer's Experience can also be improved according to mark switching media stream credit rating, play smooth at any time is played.
Description
Technical field
The present invention relates to network communication field, more particularly to a kind of multi-medium play method and relevant device.
Background technology
Growing with electronic technology, multimedia also turns into the popular research direction of a comparison, current state
Interior most Internet video resource is all in fixed media flow quality grade, it is impossible to according to many matchmakers played the need for specific
The selection of body file fragment is adapted to the media flow quality grade of the multimedia file fragment, so as to cause multimedia file playing process
In many problems, fixed higher media flow quality grade played, and for example high definition media current mass grade is played, and can to broadcast
Slowly, it is necessary to wait longer buffer time, and when network condition is poor, it can also cause viewing program is played to block one for a moment
Meeting, fixed relatively low media flow quality grade is played, and for example SD media flow quality grade is played, and picture can be caused unclear again
It is clear, cause poor user experience.
The content of the invention
The embodiment of the present invention provides a kind of multi-medium play method and relevant device, can not only rise broadcast it is quick, can be with
According to mark switching media stream credit rating, play smooth at any time is played, Consumer's Experience is improved.
The embodiments of the invention provide a kind of multi-medium play method, including:
When the current multimedia file fragment to be played in multimedia file is played out, acquisition is described currently to be treated
The broadcasting mark of the multimedia file fragment of broadcasting;
Obtain the media flow quality grade adaptable with the broadcasting mark of the current multimedia file fragment to be played;
The current multimedia file fragment to be played corresponding with the media flow quality grade is asked to server,
And export the current multimedia file fragment to be played.
The embodiment of the present invention additionally provides a kind of multi-medium play method, including:
When the current multimedia file fragment to be played in multimedia file is played out, obtain client and send
Playing request, the playing request carries the broadcasting mark of current multimedia file fragment to be played and marked with described play
The media flow quality grade of sensible adaptation;
Identified according to described play, inquiry with it is described play the adaptable media flow quality grade of mark it is corresponding it is described ought
Preceding multimedia file fragment to be played;
The current multimedia file fragment to be played is returned into client, worked as so that client output is described
Preceding multimedia file fragment to be played.
Correspondingly, the embodiment of the present invention additionally provides a kind of client, including:
First acquisition module, is played out for working as to the current multimedia file fragment to be played in multimedia file
When, obtain the broadcasting mark of the current multimedia file fragment to be played;
Second acquisition module, the broadcasting mark for obtaining with the current multimedia file fragment to be played is adapted
Media flow quality grade;
Output module is asked, for corresponding with the media flow quality grade described current to be played to server request
Multimedia file fragment, and export the current multimedia file fragment to be played.
Accordingly, present invention also offers a kind of server, including:
Acquisition module, for when the current multimedia file fragment to be played in multimedia file is played out,
The playing request that client is sent is obtained, the playing request carries the broadcasting mark of current multimedia file fragment to be played
The adaptable media flow quality grade of mark is played with described;
First enquiry module, for being identified according to described play, inquiry plays the adaptable media liquid of mark with described
Measure the corresponding current multimedia file fragment to be played of grade;
First returns to module, for the current multimedia file fragment to be played to be returned into client, so that institute
State the client output current multimedia file fragment to be played.
In the embodiment of the present invention, obtained and identified with playing according to the broadcasting mark of current multimedia file fragment to be played
Adaptable media flow quality grade, and play multimedia file fragment corresponding with media flow quality grade, this multimedia
Player method, can not only rise and broadcast quickly, can also identify switching media stream credit rating at any time according to playing, play smooth,
Improve Consumer's Experience.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, embodiment will be described below
In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are some implementations of the present invention
Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is a kind of first embodiment schematic flow sheet of multi-medium play method of the invention;
Fig. 2 is a kind of second embodiment schematic flow sheet of multi-medium play method of the invention;
Fig. 3 is a kind of schematic flow sheet for calculating media flow quality grade of the present invention;
Fig. 4 is a kind of 3rd embodiment schematic flow sheet of multi-medium play method of the invention;
Fig. 5 is a kind of fourth embodiment schematic flow sheet of multi-medium play method of the invention;
Fig. 6 is a kind of structural representation of client provided in an embodiment of the present invention;
Fig. 7 is the structural representation of another client provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation for second acquisition module that the present invention is provided;
Fig. 9 is a kind of structural representation of server provided in an embodiment of the present invention;
Figure 10 is the structural representation of another server provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Client described in the embodiment of the present invention can be network machine top box, can lead between network machine top box and server
Wireless network connection is crossed, can also be connected by cable network, multi-medium play method of the present invention goes for net
Network set top box streaming media self-adapting is played.No matter the height of the network bandwidth, terminal user can make full use of the network bandwidth to obtain
Smooth result of broadcast is obtained, the high user of bandwidth can watch the high video content of media flow quality grade, the low use of bandwidth
Family can watch the low video content of media flow quality grade, and when network condition changes, video content can be automatic
Switching media stream credit rating is from without influenceing user's viewing.
Fig. 1 is refer to, is a kind of first embodiment schematic flow sheet of multi-medium play method of the invention;As described in Figure 1,
A kind of multi-medium play method described in the present embodiment includes step:
S100, when the current multimedia file fragment to be played in multimedia file is played out, obtains described
The broadcasting mark of current multimedia file fragment to be played;
In specific embodiment, multimedia file includes multiple multimedia file fragments, and each multimedia file piece
Section has a unique broadcasting starting played mark, it is necessary to illustrate, play that mark can be multimedia file fragment
Time or the broadcasting mark distributed at first for each multimedia file fragment, obtain current multimedia to be played
The broadcasting mark concrete mode of file fragment can be to obtain current to be played from the database of storing multimedia fragment
Multimedia file fragment information, the broadcasting comprising multimedia file fragment is identified in multimedia file piece segment information.
S101, obtains the media flow quality adaptable with the broadcasting mark of the current multimedia file fragment to be played
Grade;
In specific embodiment, it is necessary to preset multimedia file fragment broadcasting mark and with multimedia file fragment
The adaptable media flow quality grade of broadcasting mark, broadcasting mark one media liquid of correspondence of a multimedia file fragment
Grade is measured, it is necessary to illustrate, different multimedia file fragments, which plays marks, can correspond to identical media flow quality grade,
Obtaining the mode of the media flow quality grade adaptable with the broadcasting mark of current multimedia file fragment to be played can be
From the broadcasting mark and the media liquid adaptable with the broadcasting mark of multimedia file fragment of storing multimedia fragment
Measure in the database of grade and obtain.
S102, the current multimedia file to be played corresponding with the media flow quality grade is asked to server
Fragment, and export the current multimedia file fragment to be played.
In specific embodiment, client needs the matchmaker according to the current multimedia file fragment to be played of the correspondence obtained
The broadcasting of body current mass grade and current multimedia file fragment to be played identifies to obtain to server and currently waits to broadcast accordingly
Interaction between the multimedia file fragment put, client and server can be based on wireless network, can also be based on having
Gauze network, is obtained after corresponding current multimedia file fragment to be played, the corresponding current multimedia text to be played of output
Part fragment, the specific way of output can play corresponding multimedia file fragment, it is necessary to explanation, server end storage
All multimedia file fragments that multimedia file is included, and the multiple different media of multimedia file fragment correspondence
The multimedia file fragment of current mass grade.
In the embodiment of the present invention, obtained and identified with playing according to the broadcasting mark of current multimedia file fragment to be played
Adaptable media flow quality grade, and play multimedia file fragment corresponding with media flow quality grade, this multimedia
Player method, can not only rise and broadcast quickly, can also identify switching media stream credit rating at any time according to playing, play smooth,
Improve Consumer's Experience.
Fig. 2 is refer to, is a kind of second embodiment schematic flow sheet of multi-medium play method of the invention;As described in Figure 2,
A kind of multi-medium play method described in the present embodiment includes step:
S200, the acquisition for sending multimedia document information to the server is asked, and the acquisition request includes described many
The address information of media file, so that the server inquires about the multimedia document information according to the address information;
In specific embodiment, the mode that user end to server sends the acquisition request of multimedia document information can be base
It is transmitted in the form of packet, client uses HTTP(Hyper Text Transport
Protocol, HTTP)Packet is sent to server, the packet includes the address information of multimedia file, such as many matchmakers
The URL of body file(Uniform/Universal Resource Locator, URL), so that server according to
The URL address searches multimedia document information.
S201, receives the multimedia document information that the server is returned, and the multimedia document information includes described many
The initial time of each multimedia file fragment and institute at least one multimedia file fragment that media file is included
State the playing duration of multimedia file;
In specific embodiment, the mode that server returns to multimedia document information can be that return multimedia file is corresponding
Such as manifest files the playing duration of multimedia file, more this documents describes the essential information on multimedia file
Multimedia file number of fragments that media file is included, the initial time of each multimedia file fragment, multimedia file
The credit rating number of sound intermediate frequency stream and video flowing, the bit rate of the Media Stream of every kind of credit rating, audio/video coding form with
And resolution ratio etc., after client receives the manifest files, file is parsed and relevant information is stored, created simultaneously
Build player and necessary parameter is set.
S202, according to the initial time of each multimedia file fragment, the playing duration is divided at least
One multimedia file fragment playing duration, at least one described multimedia file fragment playing duration includes multimedia text
The broadcasting initial time of part fragment, the initial time of same multimedia file fragment is identical with playing initial time.
In specific embodiment, according to the playing duration of the multimedia file parsed and each multimedia file piece
The initial time of section, the playing duration of multimedia file is divided, and obtains multiple multimedia file fragment playing durations, is needed
It is noted that multimedia file fragment playing duration includes the broadcasting initial time of the multimedia file fragment, identical is more
The initial time of media file fragments with play initial time it is identical, so server and client side stored on multimedia
The initial time of the multimedia file fragment of each in file is identical with initial time is played, and this is primarily to reach server
With the synchronization of client.
S203, when the current multimedia file fragment to be played in multimedia file is played out, obtains described
The broadcasting mark of current multimedia file fragment to be played;
In specific embodiment, step of embodiment of the present invention S203 refers to the embodiment step S100 described in Fig. 1, herein not
Repeated.
S204, according to the broadcasting initial time of the current multimedia file fragment to be played, judges described currently to treat
The multimedia file fragment of broadcasting whether be the multimedia file start file fragment;
In specific embodiment, the broadcasting mark of multimedia file fragment is specially the broadcasting initial time of multi-media segment,
So may determine that current multimedia text to be played according to the broadcasting initial time of current multimedia file fragment to be played
Part fragment whether be multimedia file start file fragment, start file fragment is first multimedia of multimedia file
File fragment, as that the broadcasting initial time of current multimedia file fragment to be played is first multimedia file fragment
During time beginning, the initial time of such as first multimedia file fragment is 0 second, then current multimedia file fragment to be played
For start file fragment.
S205, if so, then obtaining each default media flow quality grade at least one default media flow quality grade
Corresponding bit rate;
In specific embodiment, when judging that current multimedia file fragment to be played is the start file of multimedia file
Fragment, obtains each and presets the corresponding bit rate of media flow quality grade, it is necessary to which explanation, presets media flow quality grade
Number it is identical with the number for the default media flow quality grade that server is stored, client by server returned it is many
The number and each default media liquid of the default media flow quality grade of multimedia file are obtained in media file information
Measure the bit rate of grade.
Each default media flow quality grade correspondence in S206, at least one described default media flow quality grade of analysis
Bit rate in lowest bitrate, and by the corresponding default media flow quality grade of the lowest bitrate be defined as with it is described
The media flow quality grade that the broadcasting mark of current multimedia file fragment to be played is adapted.
In specific embodiment, each presets the corresponding bit rate of media flow quality grade to client com-parison and analysis, and carries
The lowest bitrate in all bit rates is taken out, the corresponding default media flow quality grade of lowest bitrate is defined as currently treating
The media flow quality grade that the broadcasting mark of the multimedia file fragment of broadcasting is adapted, so extracts lowest bitrate corresponding
The purpose of media flow quality grade is broadcast quickly in order that obtaining multimedia file and rising, and user is without waiting for buffer time for a long time.
S207, the current multimedia file to be played corresponding with the media flow quality grade is asked to server
Fragment, and export the current multimedia file fragment to be played.
Step of embodiment of the present invention S207 refers to the embodiment step S102 described in Fig. 1, herein without repeating.
S208, if it is not, then measuring current network bandwidth, and is calculated and the current network according to the current network bandwidth
The corresponding media flow quality grade of bandwidth;
In specific embodiment, when judging that current multimedia file fragment to be played is not the starting text of multimedia file
Part fragment, then need to calculate media flow quality corresponding with current network bandwidth etc. according to current network bandwidth concrete condition
Level, makes full use of the current network bandwidth, when the current network bandwidth is higher, then the media flow quality grade ratio calculated
It is higher, when current network bandwidth than it is relatively low when, the media flow quality grade calculated is than relatively low.
Further, media flow quality grade is calculated according to the network bandwidth to may be referred to calculate media flow quality shown in Fig. 3
The schematic diagram of grade, as shown in figure 3, calculating the method for media flow quality grade includes step:
S300, measures current network bandwidth;
In specific embodiment, the concrete mode of measurement current network bandwidth can be to measure literary from multimedia is sent first
The requirement of part acquisition of information returns to complete multimedia file information to server(Length is length)Spent time time, then
Current real-time network bandwidth bit rate realtimeBitrate computational methods:realtimeBitrate=length/time;
Then real-time network bandwidth bit rate realtimeBitrate respectively B1, B2, B3, B4, the B5 of nearest 5 times is counted, then is put down
Equal network bandwidth bit rate averageBitrate computational methods are:AverageBitrate=(B1+B2+B3+B4+B5)/5,
And averaging network bandwidth bit rate averageBitrate is defined as current network bandwidth.
S301, obtains each default media flow quality grade correspondence at least one described default media flow quality grade
Bit rate;
In specific embodiment, default media flow quality that the number and server for presetting media flow quality grade are stored etc.
The number of level is identical, and the default media of multimedia file are obtained in the multimedia document information that client is returned by server
The bit rate of the number of current mass grade and each default media flow quality grade.
S302, the current network bandwidth is pre- with each at least one described default media flow quality grade successively
If the corresponding bit rate of media flow quality grade is compared, and will be greater than or equal to the network bandwidth and with the network
The minimum corresponding default media flow quality grade of bit rate of the comparison difference of bandwidth is defined as and the current network bandwidth phase
Corresponding media flow quality grade.
In specific embodiment, it is ranked up from low to high according to the bit rate of each default media flow quality grade, this
In illustrated by taking 5 default media flow quality grades as an example, the corresponding bit rate difference of this 5 default media flow quality grades
For R1, R2, R3, R4, R5, the corresponding bit rate of default media flow quality grade after sequence is:R1,R2,R3,R4,R5.Selection
The method of the default media flow quality grade corresponding with current network bandwidth is to travel through all default Media Streams from small to large
The corresponding bit rate of credit rating, when the corresponding bit rate R (n) of default media flow quality grade currently compared>=current network
Bandwidth averageBitrate, then regard R (n) as the media flow quality grade corresponding with current network bandwidth;If current
Network bandwidth averageBitrate<During R1, then R1 is regard as the media flow quality grade corresponding with current network bandwidth;Such as
Fruit current network bandwidth averageBitrate>During R5, then R5 is regard as the media flow quality corresponding with current network bandwidth
Grade.
S209, by the media flow quality grade corresponding with current network bandwidth be defined as with it is described current to be played
Multimedia file fragment the adaptable media flow quality grade of broadcasting mark;
In specific embodiment, by the media flow quality grade corresponding with current network bandwidth calculated be defined as with
The adaptable media flow quality grade of the broadcasting mark of current multimedia file fragment to be played, when with two multimedia files
When the corresponding current network bandwidth of fragment is more or less the same, the media flow quality grade calculated may be identical.
S210, the current multimedia file to be played corresponding with the media flow quality grade is asked to server
Fragment, and export the current multimedia file fragment to be played.
Step S210 of the embodiment of the present invention, refers to the embodiment step S102 described in Fig. 1, herein without repeating.
In the embodiment of the present invention, obtained and identified with playing according to the broadcasting mark of current multimedia file fragment to be played
Adaptable media flow quality grade, and play multimedia file fragment corresponding with media flow quality grade, this multimedia
Player method, can not only rise and broadcast quickly, can also identify switching media stream credit rating at any time according to playing, play smooth,
Improve Consumer's Experience.
Fig. 4 is refer to, is a kind of 3rd embodiment schematic flow sheet of multi-medium play method of the invention;As described in Figure 4,
A kind of multi-medium play method described in the present embodiment includes step:
S400, when the current multimedia file fragment to be played in multimedia file is played out, obtains client
Hold the playing request sent, the playing request carry current multimedia file fragment to be played broadcasting mark and with it is described
Play the adaptable media flow quality grade of mark;
In specific embodiment, when client is broadcast to the current multimedia file fragment to be played in multimedia file
When putting, playing request is sent to server, server end then obtains the playing request transmitted by client, and playing request can be
It is transmitted in the form of packet, the broadcasting mark of current multimedia file fragment to be played is carried in the packet
Know, and adaptable media flow quality grade is identified, it is necessary to illustrate with playing, with playing the Media Stream that mark is adapted
The media flow quality grade that credit rating is obtained by client according to broadcasting mark.
S401, is identified according to described play, and inquires about corresponding with the media flow quality grade that the broadcasting mark is adaptable
The current multimedia file fragment to be played;
In specific embodiment, server parses broadcasting mark and the matchmaker adaptable with playing mark in playing request
Body current mass grade, all multimedia file fragments with broadcasting mark are inquired according to mark is played, should but carry
All multimedia file fragments for playing mark are all the multimedia file fragments of different media flow quality grades, then from band
Have and choose identical with the media flow quality grade parsed in playing request in all multimedia file fragments of broadcasting mark
Multimedia file fragment, this document fragment, which is that the media flow quality grade adaptable with playing mark is corresponding, currently to be waited to broadcast
The multimedia file fragment put.
S402, returns to client, so that the client is exported by the current multimedia file fragment to be played
The current multimedia file fragment to be played.
In specific embodiment, the current multimedia file fragment to be played inquired is returned into client, so that
Client receives and exports the multimedia file fragment, it is necessary to illustrate after the current multimedia file fragment to be played,
The concrete mode that server returns to current multimedia file fragment to be played can also be transmitted in the form of packet,
The multimedia file fragment can be an independent MP4 file.
In the embodiment of the present invention, obtained and identified with playing according to the broadcasting mark of current multimedia file fragment to be played
Adaptable media flow quality grade, and play multimedia file fragment corresponding with media flow quality grade, this multimedia
Player method, can not only rise and broadcast quickly, can also identify switching media stream credit rating at any time according to playing, play smooth,
Improve Consumer's Experience.
Fig. 5 is refer to, is a kind of fourth embodiment schematic flow sheet of multi-medium play method of the invention;As described in Figure 5,
A kind of multi-medium play method described in the present embodiment includes step:
S500, at least one multimedia file fragment is divided into by the multimedia file;Wherein, a multimedia file
Fragment one initial time of correspondence;
In specific embodiment, server end multimedia file fragment makes can be by means of microsoft network Video coding software
Expression Encoder, the media file of a certain form of selection, such as digital video decoding form(Windows
Media Video, WMV), multimedia computer shelves form(MPEG-4, MP4)Deng, multimedia file is handled first, formed
Media Stream, then the Media Stream formed is divided, form at least one multimedia file fragment, a multimedia file piece
Section one initial time of correspondence, the initial time is the broadcasting initial time of the multimedia file fragment, it is necessary to explanation, matchmaker
Body stream can include audio stream and video flowing.
S501, each multimedia file fragment at least one described multimedia file fragment is handled, and is formed extremely
Lack the multimedia file fragment of a default media flow quality grade, wherein, a multimedia file fragment corresponds at least one
The multimedia file fragment of default media flow quality grade.
In specific embodiment, at each multimedia file fragment in the multimedia file fragment formed
Reason, forms the multimedia file fragment of multiple default media flow quality grades, a multimedia file fragment all correspond to it is multiple not
Multimedia file fragment with default media flow quality grade is, it is necessary to which explanation, multimedia file fragment can include a variety of
The video file segments and audio file fragment of default media flow quality grade, each of which preset media flow quality grade
The file of video file segments one ismv form of correspondence, the audio file fragment correspondence of each default media flow quality grade
The number of the default media flow quality grade of the file of one isma form, video file segments and audio file fragment regards demand
Depending on, and the default media flow quality number of levels and the default media flow quality grade of audio file of video file segments
Dependence is not present in number.Video file segments and one kind that seven kinds of differences preset media flow quality grade can such as be generated
The audio file fragment of default media flow quality grade, the bit corresponding to the default media flow quality grade of video file segments
Rate can be respectively from high to low:2962Kbps, 2056Kbps, 1427Kbps, 991Kbps, 688Kbps, 477Kbps,
331Kbps, 230Kbps.The corresponding bit rate of default media flow quality grade of audio file fragment is 160Kbps.Generation
The a certain broadcasting initial time of a certain media flow quality grade of file energy customer in response end software of isma or ismv forms it is many
Media file fragments are asked, it is necessary to explanation, in video file segments the corresponding coded format of video flowing be generally H.264 or
VC1, the corresponding coded format of audio file fragment sound intermediate frequency stream is generally AAC or WMA.
S502, receives the multimedia document information transmitted by client and obtains request, the acquisition request includes described many
The address information of media file;
In specific embodiment, when client, which sends multimedia document information, obtains request, receive transmitted by client
Multimedia document information obtain request, it is necessary to explanation, the acquisition request can be transmitted in the form of packet and
Receive, the address information that multimedia file is stored is encapsulated in the packet.
S503, according to the address information, inquires about the multimedia document information;
In specific embodiment, server obtains the address letter that multimedia file is parsed in request from media file information of hiding
After breath, multimedia document information is inquired about according to the address information, it is necessary to be provided with all many matchmakers of storage in explanation, server
The database of body fileinfo, in the database, multimedia document information is corresponded with multimedia file address information.
S504, the multimedia document information is returned to client, and the multimedia document information includes the multimedia
The initial time of each multimedia file fragment and described many at least one multimedia file fragment that file is included
The playing duration of media file.
In specific embodiment, the multimedia document information inquired is returned into client, it is necessary to explanation, many matchmakers
Body fileinfo can be that client is sent in the form of packet, and the broadcasting of multimedia file is encapsulated in the packet
The initial time for each multimedia file fragment that duration and multimedia file are included, wherein, each multimedia text
The initial time of part fragment is the broadcasting mark of the multimedia file fragment, by the playing duration of multimedia file and many matchmakers
The purpose that the initial time for each multimedia file fragment that body file is included is sent to client is lain also in so that client
End is divided playing duration, obtains the broadcasting initial time of each multimedia file fragment, and during using playing starting
Between ask corresponding multimedia file fragment to server.
S505, when the current multimedia file fragment to be played in multimedia file is played out, obtains client
Hold the playing request sent, the playing request carry current multimedia file fragment to be played broadcasting mark and with it is described
Play the adaptable media flow quality grade of mark;
In specific embodiment, step S505 of the embodiment of the present invention refers to the embodiment step S400 described in Fig. 4, herein
Without repeating.
S506, is identified according to described play, and inquires about corresponding with the media flow quality grade that the broadcasting mark is adaptable
The current multimedia file fragment to be played;
In specific embodiment, step S506 of the embodiment of the present invention refers to the embodiment step S401 described in Fig. 4, herein
Without repeating.
S507, returns to client, so that the client is exported by the current multimedia file fragment to be played
The current multimedia file fragment to be played.
In specific embodiment, step S507 of the embodiment of the present invention refers to the embodiment step S402 described in Fig. 4, herein
Without repeating.
In the embodiment of the present invention, obtained and identified with playing according to the broadcasting mark of current multimedia file fragment to be played
Adaptable media flow quality grade, and play multimedia file fragment corresponding with media flow quality grade, this multimedia
Player method, can not only rise and broadcast quickly, can also identify switching media stream credit rating at any time according to playing, play smooth,
Improve Consumer's Experience.
A kind of implementing for client provided in an embodiment of the present invention is described below.
Fig. 6 is refer to, is a kind of structural representation of client provided in an embodiment of the present invention.As shown in fig. 6, this implementation
A kind of client described in example includes:First acquisition module 100, the second acquisition module 101 and request output module 102.
First acquisition module 100, for being carried out when to the current multimedia file fragment to be played in multimedia file
During broadcasting, the broadcasting mark of the current multimedia file fragment to be played is obtained;
In specific embodiment, multimedia file includes multiple multimedia file fragments, and each multimedia file piece
Section has a unique broadcasting starting played mark, it is necessary to illustrate, play that mark can be multimedia file fragment
Time or the broadcasting mark distributed at first for each multimedia file fragment, the first acquisition module 100 are obtained currently
The broadcasting mark concrete mode of multimedia file fragment to be played can be from the database of storing multimedia fragment
Obtain in the information of current multimedia file fragment to be played, multimedia file piece segment information and include multimedia file fragment
Play mark.
Second acquisition module 101, the broadcasting for obtaining with the current multimedia file fragment to be played identifies phase
The media flow quality grade of adaptation;
In specific embodiment, it is necessary to preset multimedia file fragment broadcasting mark and with multimedia file fragment
The adaptable media flow quality grade of broadcasting mark, broadcasting mark one media liquid of correspondence of a multimedia file fragment
Grade is measured, it is necessary to illustrate, different multimedia file fragments, which plays marks, can correspond to identical media flow quality grade,
Second acquisition module 101 obtains media flow quality adaptable with the broadcasting mark of current multimedia file fragment to be played etc.
The mode of level can identify phase from the broadcasting mark of storing multimedia fragment and with the broadcasting of multimedia file fragment
Obtained in the database of the media flow quality grade of adaptation.
Output module 102 is asked, for described currently being treated to server request is corresponding with the media flow quality grade
The multimedia file fragment of broadcasting, and export the current multimedia file fragment to be played.
In specific embodiment, request output module 102 client needs current to be played many according to the correspondence obtained
The broadcasting of the media flow quality grade of media file fragments and current multimedia file fragment to be played is identified to be obtained to server
The interaction between corresponding current multimedia file fragment to be played, client and server is taken to be based on wireless network
Network, can also be based on cable network, and request output module 102 is obtained after corresponding current multimedia file fragment to be played,
The corresponding current multimedia file fragment to be played of output, the request specific way of output of output module 102 can be played
Corresponding multimedia file fragment is, it is necessary to which explanation, server end stores all multimedias that multimedia file is included
File fragment, and the multimedia file fragment of the multiple different media flow quality grades of multimedia file fragment correspondence.
In the embodiment of the present invention, obtained and identified with playing according to the broadcasting mark of current multimedia file fragment to be played
Adaptable media flow quality grade, and play multimedia file fragment corresponding with media flow quality grade, this multimedia
Player method, can not only rise and broadcast quickly, can also identify switching media stream credit rating at any time according to playing, play smooth,
Improve Consumer's Experience.
Fig. 7 is refer to, is the structural representation of another client provided in an embodiment of the present invention.As shown in fig. 6, this reality
Applying another client described in example includes:First acquisition module 100, the second acquisition module 101, request output module 102, hair
Send module 103, receiving module 104 and division module 105;Wherein, the first acquisition module 100, the second acquisition module 101 and request
Output module 102 refer to Fig. 6 description, will not be repeated here.
Sending module 103, the acquisition for sending multimedia document information to the server is asked, described to obtain request
Include the address information of the multimedia file, so that the server inquires about the multimedia file according to the address information
Information;
In specific embodiment, client sending module 103 sends the acquisition request of multimedia document information to server
Mode can be that the form based on packet is transmitted, and client sending module 103 is sent using http protocol to server
Packet, the packet includes the address information of multimedia file, the URL addresses of such as multimedia file, so that server
According to the URL address searches multimedia document information.
Receiving module 104, for receiving the multimedia document information that the server is returned, the multimedia document information
The starting of each multimedia file fragment at least one the multimedia file fragment included including the multimedia file
Time and the playing duration of the multimedia file;
In specific embodiment, the mode that server returns to multimedia document information can be that return multimedia file is corresponding
Such as manifest files the playing duration of multimedia file, more this documents describes the essential information on multimedia file
Multimedia file number of fragments that media file is included, the initial time of each multimedia file fragment, multimedia file
The credit rating number of sound intermediate frequency stream and video flowing, the bit rate of the Media Stream of every kind of credit rating, audio/video coding form with
And resolution ratio etc., after client receiving module 104 receives the manifest files, file is parsed and correlation is stored
Information, while creating player and setting necessary parameter.
Division module 105, for the initial time according to each multimedia file fragment, by the playing duration
At least one multimedia file fragment playing duration is divided into, at least one described multimedia file fragment playing duration includes institute
The broadcasting initial time of multimedia file fragment is stated, the initial time of same multimedia file fragment is with playing initial time phase
Together.
In specific embodiment, division module 105 according to the playing duration of the multimedia file parsed and each
The initial time of multimedia file fragment, the playing duration of multimedia file is divided, and obtains multiple multimedia file pieces
Section playing duration is, it is necessary to which explanation, the broadcasting that multimedia file fragment playing duration includes the multimedia file fragment is originated
Time, the initial time of identical multimedia file fragment is identical with playing initial time, so server and client side is deposited
That stores up is identical with initial time is played on the initial time of each multimedia file fragment in multimedia file, and this is mainly
In order to reach the synchronization of server and client side.
In the embodiment of the present invention, obtained and identified with playing according to the broadcasting mark of current multimedia file fragment to be played
Adaptable media flow quality grade, and play multimedia file fragment corresponding with media flow quality grade, this multimedia
Player method, can not only rise and broadcast quickly, can also identify switching media stream credit rating at any time according to playing, play smooth,
Improve Consumer's Experience.
Fig. 8 is refer to, is a kind of structural representation of second acquisition module of the present invention, as shown in figure 8, described in the present embodiment
A kind of second acquisition module 107 include judging unit 1070, survey calculation unit 1071, determining unit 1072, acquiring unit
1073 and analysis determining unit 1074.
Judging unit 1070, for the broadcasting initial time according to the current multimedia file fragment to be played, sentences
The disconnected current multimedia file fragment to be played whether be the multimedia file start file fragment;
In specific embodiment, the broadcasting mark of multimedia file fragment is specially the broadcasting initial time of multi-media segment,
Currently wait to broadcast so judging unit 1070 may determine that according to the broadcasting initial time of current multimedia file fragment to be played
The multimedia file fragment put whether be multimedia file start file fragment, start file fragment is multimedia file
First multimedia file fragment, when the broadcasting initial time of current multimedia file fragment to be played is first multimedia
During the initial time of file fragment, the initial time of such as first multimedia file fragment is 0 second, then current to be played many
Media file fragments are start file fragment.
Survey calculation unit 1071, for when judged result is no, measuring current network bandwidth, and according to described current
The network bandwidth calculates the media flow quality grade corresponding with the current network bandwidth;
In specific embodiment, when judging that current multimedia file fragment to be played is not the starting text of multimedia file
Part fragment, then survey calculation unit 1071 need to calculate relative with current network bandwidth according to current network bandwidth concrete condition
The media flow quality grade answered, makes full use of the current network bandwidth, when the current network bandwidth is higher, then calculates
Media flow quality higher grade, when current network bandwidth than it is relatively low when, the media flow quality grade calculated is than relatively low.
Further, survey calculation unit 1071 includes measurement subelement 10710, obtains subelement 10711 and relatively more true
Stator unit 10712.
Subelement 10710 is measured, subelement is measured, for measuring current network bandwidth;
In specific embodiment, the concrete mode of the measurement measurement current network bandwidth of subelement 10710 can be to measure first
Requirement is obtained to server return complete multimedia file information from multimedia document information is sent(Length is length)Consumed
The time time taken, then current real-time network bandwidth bit rate realtimeBitrate computational methods:
realtimeBitrate=length/time;Then the real-time network bandwidth bit rate of nearest 5 times is counted
RealtimeBitrate is respectively B1, B2, B3, B4, B5, then averaging network bandwidth bit rate averageBitrate calculating
Method is:AverageBitrate=(B1+B2+B3+B4+B5)/5, and by averaging network bandwidth bit rate averageBitrate
It is defined as current network bandwidth.
Subelement 10711 is obtained, for obtaining each default matchmaker at least one described default media flow quality grade
The corresponding bit rate of body current mass grade;
In specific embodiment, default media flow quality that the number and server for presetting media flow quality grade are stored etc.
The number of level is identical, and client obtains in the multimedia document information that subelement 10711 is returned by server and obtains many matchmakers
The bit rate of the number of the default media flow quality grade of body file and each default media flow quality grade.
Compare determination subelement 10712, for by the current network bandwidth successively with least one described default media
Each in current mass grade is preset the corresponding bit rate of media flow quality grade and is compared, and will be greater than or equal to described
The network bandwidth and default media flow quality grade corresponding with the bit rate that the comparison difference of the network bandwidth is minimum is defined as
The media flow quality grade corresponding with the current network bandwidth.
In specific embodiment, compare bit rate of the determination subelement 10712 according to each default media flow quality grade
It is ranked up, is illustrated here by taking 5 default media flow quality grades as an example from low to high, 5 default media flow qualities etc.
The corresponding bit rate of level is respectively R1, R2, R3, R4, R5, and the corresponding bit rate of default media flow quality grade after sequence is:
R1,R2,R3,R4,R5.Compare determination subelement 10712 and select default media flow quality corresponding with current network bandwidth etc.
The method of level is to travel through all corresponding bit rates of default media flow quality grade from small to large, default when what is currently compared
The corresponding bit rate R (n) of media flow quality grade>=current network bandwidth averageBitrate, then using R (n) as with it is current
The corresponding media flow quality grade of the network bandwidth;If current network bandwidth averageBitrate<During R1, then using R1 as
The media flow quality grade corresponding with current network bandwidth;If current network bandwidth averageBitrate>During R5, then will
R5 is used as the media flow quality grade corresponding with current network bandwidth.
Determining unit 1072, for the media flow quality grade corresponding with current network bandwidth to be defined as and institute
State the adaptable media flow quality grade of the broadcasting mark of current multimedia file fragment to be played;
In specific embodiment, determining unit 1072 is by the media flow quality corresponding with current network bandwidth calculated
Grade is defined as the media flow quality grade adaptable with the broadcasting mark of current multimedia file fragment to be played, when with two
When the corresponding current network bandwidth of individual multimedia file fragment is more or less the same, the media flow quality grade calculated may phase
Together.
Acquiring unit 1073, during for being when judged result, obtains every at least one default media flow quality grade
The corresponding bit rate of one default media flow quality grade;
In specific embodiment, when judging that current multimedia file fragment to be played is the start file of multimedia file
Fragment, acquiring unit 1073 obtains each and presets the corresponding bit rate of media flow quality grade, it is necessary to which explanation, presets matchmaker
The number of body current mass grade is identical with the number for the default media flow quality grade that server is stored, client side acquiring unit
Of the default media flow quality grade of multimedia file is obtained in 1073 multimedia document informations returned by server
The bit rate of number and each default media flow quality grade.
Determining unit 1074 is analyzed, for analyzing each default matchmaker at least one described default media flow quality grade
Lowest bitrate in the corresponding bit rate of body current mass grade, and by the corresponding default media flow quality of the lowest bitrate
Grade is defined as the media flow quality grade adaptable with the broadcasting mark of the current multimedia file fragment to be played.
In specific embodiment, each default media flow quality grade pair of client analysis determining unit 1074 com-parison and analysis
The bit rate answered, and the lowest bitrate in all bit rates is extracted, the corresponding default media flow quality of lowest bitrate
Grade is defined as the media flow quality grade that the broadcasting mark of current multimedia file fragment to be played is adapted, and analysis is determined
The purpose that unit 1074 so extracts the corresponding media flow quality grade of lowest bitrate is broadcast in order that obtaining multimedia file and rising
Quickly, user is without waiting for buffer time for a long time.
In the embodiment of the present invention, obtained and identified with playing according to the broadcasting mark of current multimedia file fragment to be played
Adaptable media flow quality grade, and play multimedia file fragment corresponding with media flow quality grade, this multimedia
Player method, can not only rise and broadcast quickly, can also identify switching media stream credit rating at any time according to playing, play smooth,
Improve Consumer's Experience.
A kind of implementing for server provided in an embodiment of the present invention is described below
Fig. 9 is refer to, is a kind of structural representation of server of the invention, as shown in figure 9, one kind described in the present embodiment
Server includes acquisition module 200, the first enquiry module 201 and first and returns to module 202.
Acquisition module 200, is played out for working as to the current multimedia file fragment to be played in multimedia file
When, the playing request that client is sent is obtained, the playing request carries the broadcasting of current multimedia file fragment to be played
Mark and the media flow quality grade adaptable with the broadcasting mark;
In specific embodiment, when client is broadcast to the current multimedia file fragment to be played in multimedia file
When putting, playing request is sent to server, server end acquisition module 200 then obtains the playing request transmitted by client, broadcast
It can be transmitted in the form of packet to put request, and current multimedia file piece to be played is carried in the packet
The broadcasting mark of section, and adaptable media flow quality grade is identified, it is necessary to which explanation, is mutually fitted with playing mark with playing
The media flow quality grade that the media flow quality grade answered is obtained by client according to broadcasting mark.
First enquiry module 201, for being identified according to described play, inquiry plays the adaptable Media Stream of mark with described
The corresponding current multimedia file fragment to be played of credit rating;
In specific embodiment, the broadcasting that the first enquiry module of server 201 is parsed in playing request is identified and with broadcasting
The adaptable media flow quality grade of mark is put, all multimedia files with broadcasting mark are inquired according to mark is played
Fragment, but be all the multimedia text of different media flow quality grades with all multimedia file fragments that the broadcasting is identified
Part fragment, then chooses the media with being parsed in playing request from all multimedia file fragments identified with the broadcasting
Current mass grade identical multimedia file fragment, this document fragment is the media flow quality grade adaptable with playing mark
Corresponding current multimedia file fragment to be played.
First returns to module 202, for the current multimedia file fragment to be played to be returned into client, so that
The client output current multimedia file fragment to be played.
In specific embodiment, the first return module 202 returns the current multimedia file fragment to be played inquired
Back to client, so that client exports the multimedia file piece after receiving the current multimedia file fragment to be played
Section is, it is necessary to which explanation, server first returns to the concrete mode that module 202 returns to current multimedia file fragment to be played
Can also be transmitted in the form of packet, the multimedia file fragment can be an independent MP4 file.
In the embodiment of the present invention, obtained and identified with playing according to the broadcasting mark of current multimedia file fragment to be played
Adaptable media flow quality grade, and play multimedia file fragment corresponding with media flow quality grade, this multimedia
Player method, can not only rise and broadcast quickly, can also identify switching media stream credit rating at any time according to playing, play smooth,
Improve Consumer's Experience.
Figure 10 is refer to, is the structural representation of another server provided in an embodiment of the present invention.As shown in Figure 10, originally
Another server described in embodiment includes:Acquisition module 200, the first enquiry module 201, first return to module 202, divided
Module 203, processing module 204, receiving module 205, the second enquiry module 206 and second return to module 207;Wherein, mould is obtained
Block 200, the first enquiry module 201 and the first return module 202 refer to Fig. 9 description, will not be repeated here.
Division module 203, for the multimedia file to be divided into at least one multimedia file fragment;Wherein, one
One initial time of individual multimedia file fragment correspondence;
In specific embodiment, server end multimedia file fragment makes can be by means of Microsoft Expression
Encoder softwares, the media file of a certain form of selection, such as WMV, MP4 forms etc., division module 203 is first by multimedia
File is handled, and forms Media Stream, then the Media Stream formed is divided, and forms at least one multimedia file piece
Section, multimedia file fragment one initial time of correspondence, initial time originates for the broadcasting of the multimedia file fragment
Time is, it is necessary to which explanation, Media Stream can include audio stream and video flowing.
Processing module 204, for each multimedia file fragment at least one described multimedia file fragment to be carried out
Processing, forms the multimedia file fragment of at least one default media flow quality grade, wherein, a multimedia file fragment pair
Answer the multimedia file fragment of at least one default media flow quality grade.
In specific embodiment, processing module 204 is by each multimedia file in the multimedia file fragment formed
Fragment is handled, and forms the multimedia file fragment of multiple default media flow quality grades, a multimedia file fragment is all
The multimedia file fragment of the multiple different default media flow quality grades of correspondence is, it is necessary to which explanation, multimedia file fragment can
To include the video file segments and audio file fragment of a variety of default media flow quality grades, each of which presets Media Stream
The file of video file segments one ismv form of correspondence of credit rating, the audio text of each default media flow quality grade
The default media flow quality grade of the file of part fragment one isma form of correspondence, video file segments and audio file fragment
Number is depending on demand, and the default media flow quality number of levels and the default Media Stream of audio file of video file segments
Dependence is not present in the number of credit rating.The video file that seven kinds of differences preset media flow quality grade can such as be generated
Fragment and a kind of audio file fragment of default media flow quality grade, the default media flow quality grade institute of video file segments
Corresponding bit rate can be respectively from high to low:2962Kbps, 2056Kbps, 1427Kbps, 991Kbps, 688Kbps,
477Kbps, 331Kbps, 230Kbps.The corresponding bit rate of default media flow quality grade of audio file fragment is
160Kbps.A certain a certain of media flow quality grade of file energy customer in response end software of the isma or ismv forms of generation is broadcast
The multimedia file fragment request of initial time is put, it is necessary to illustrate, the corresponding coding lattice of video flowing in video file segments
H.264 or VC1 formula is generally, and the corresponding coded format of audio file fragment sound intermediate frequency stream is generally AAC or WMA.
Receiving module 205, request is obtained for receiving the multimedia document information transmitted by client, described to obtain request
Include the address information of the multimedia file;
In specific embodiment, when client, which sends multimedia document information, obtains request, receiving module 205 receives client
The transmitted multimedia document information in end obtains request, it is necessary to which explanation, acquisition request can be in the form of packet
It is transmitted and receives, the address information that multimedia file is stored is encapsulated in the packet.
Second enquiry module 206, for according to the address information, inquiring about the multimedia document information;
In specific embodiment, the second enquiry module of server 206 parses many from media file information acquisition request of hiding
After the address information of media file, multimedia document information is inquired about according to the address information, it is necessary to be set in explanation, server
The database of all multimedia document informations of storage has been put, in the database, multimedia document information and multimedia file
Location information is corresponded.
Second returns to module 207, for returning to the multimedia document information, the multimedia document information to client
The starting of each multimedia file fragment at least one the multimedia file fragment included including the multimedia file
Time and the playing duration of the multimedia file.
In specific embodiment, the multimedia document information inquired is returned to client by the second return module 207, is needed
It is noted that multimedia document information can be that client is sent in the form of packet, encapsulated in the packet
The initial time for each multimedia file fragment that the playing duration and multimedia file of multimedia file are included, its
In, the initial time of each multimedia file fragment is the broadcasting mark of the multimedia file fragment, by multimedia file
Playing duration and the initial time of each multimedia file fragment that is included of multimedia file be sent to client
Purpose is lain also in so that client is divided playing duration, when obtaining the broadcasting starting of each multimedia file fragment
Between, and utilization plays initial time to the corresponding multimedia file fragment of server request.
In the embodiment of the present invention, obtained and identified with playing according to the broadcasting mark of current multimedia file fragment to be played
Adaptable media flow quality grade, and play multimedia file fragment corresponding with media flow quality grade, this multimedia
Player method, can not only rise and broadcast quickly, can also identify switching media stream credit rating at any time according to playing, play smooth,
Improve Consumer's Experience.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access
Memory, RAM)Deng.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Module or unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
The parts such as the microcontroller of the embodiment of the present invention, can with universal integrated circuit (such as central processor CPU), or with
Application specific integrated circuit (ASIC) is realized.
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly
Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.
Claims (14)
1. a kind of multi-medium play method, it is characterised in that methods described includes:
When the current multimedia file fragment to be played in multimedia file is played out, obtain described current to be played
Multimedia file fragment broadcasting mark, it is described play mark include the broadcasting initial time of the multimedia file fragment,
The initial time of playing is the playing duration of the multimedia file of the client according to transmitted by server and described many
The initial time for each multimedia file fragment that media file is included divides what is obtained;
Obtain the media flow quality grade adaptable with the broadcasting mark of the current multimedia file fragment to be played;
The current multimedia file fragment to be played corresponding with the media flow quality grade is asked to server, and it is defeated
Go out the current multimedia file fragment to be played;
Wherein, the acquisition media flow quality adaptable with the broadcasting mark of the current multimedia file fragment to be played
Grade, including:
The real-time network bandwidth bit rate of the preset times nearest from current time is counted, and calculates the real-time of the preset times
The average value of network bandwidth bit rate, the average value be current network bandwidth, and according to the current network bandwidth calculate with
The corresponding media flow quality grade of the current network bandwidth;
The media flow quality grade corresponding with current network bandwidth is defined as and the current multimedia to be played
The media flow quality grade that the broadcasting mark of file fragment is adapted.
2. the method as described in claim 1, it is characterised in that the broadcasting mark is specially to play initial time, described to obtain
Take the media flow quality grade adaptable with the broadcasting mark of the current multimedia file fragment to be played;Including:
According to the broadcasting initial time of the current multimedia file fragment to be played, current many matchmakers to be played are judged
Body file fragment whether be the multimedia file start file fragment;
If so, then obtaining the corresponding bit of the default media flow quality grade of each at least one default media flow quality grade
Rate;
The corresponding bit rate of the default media flow quality grade of each at least one described default media flow quality grade of analysis
In lowest bitrate, and the corresponding default media flow quality grade of the lowest bitrate is defined as currently to wait to broadcast with described
The media flow quality grade that the broadcasting mark for the multimedia file fragment put is adapted.
3. method as claimed in claim 2, it is characterised in that described to be calculated according to the current network bandwidth and described current
The corresponding media flow quality grade of the network bandwidth, including:
Obtain the corresponding bit rate of the default media flow quality grade of each at least one described default media flow quality grade;
The current network bandwidth is preset into Media Stream with each at least one described default media flow quality grade successively
The corresponding bit rate of credit rating is compared, and will be greater than or equal to the network bandwidth and with the ratio of the network bandwidth
Compared with difference, the minimum corresponding default media flow quality grade of bit rate is defined as the matchmaker corresponding with the current network bandwidth
Body current mass grade.
4. method as claimed in claim 2 or claim 3, it is characterised in that described when to current to be played in multimedia file
When multimedia file fragment is played out, before the broadcasting mark for obtaining the current multimedia file fragment to be played, also
Including:
The acquisition request of multimedia document information is sent to the server, described obtain asks to include the multimedia file
Address information, so that the server inquires about the multimedia document information according to the address information;
The multimedia document information that the server is returned is received, the multimedia document information includes the multimedia file institute
Comprising at least one multimedia file fragment in each multimedia file fragment initial time and the multimedia text
The playing duration of part;
According to the initial time of each multimedia file fragment, the playing duration is divided at least one multimedia
File fragment playing duration, at least one described multimedia file fragment playing duration includes broadcasting for the multimedia file fragment
Initial time is put, the initial time of same multimedia file fragment is identical with playing initial time.
5. a kind of multi-medium play method, it is characterised in that methods described includes:
When the current multimedia file fragment to be played in multimedia file is played out, broadcasting for client transmission is obtained
Request is put, the playing request carries the broadcasting mark of current multimedia file fragment to be played and plays mark phase with described
The media flow quality grade of adaptation, the media flow quality grade counts default time from current time recently for the client
Several real-time network bandwidth bit rates, and the average value of the real-time network bandwidth bit rate of the preset times is calculated, it is described flat
Average is current network bandwidth, and according to the current network bandwidth calculating Media Stream corresponding with the current network bandwidth
Credit rating, by the media flow quality grade corresponding with current network bandwidth be defined as with it is described current to be played many
The media flow quality grade that the broadcasting mark of media file fragments is adapted;
Identified according to described play, inquiry plays that media flow quality grade that mark is adapted is corresponding described currently to be treated with described
The multimedia file fragment of broadcasting;
The current multimedia file fragment to be played is returned into client, currently treated so that client output is described
The multimedia file fragment of broadcasting;
Wherein, the mark of playing includes the broadcasting initial time of the multimedia file fragment, and the broadcasting initial time is
The playing duration and the multimedia file of the multimedia file of the client according to transmitted by server are included
The initial time of each multimedia file fragment divide and obtain.
6. method as claimed in claim 5, it is characterised in that before the playing request that the acquisition client is sent, also wrap
Include:
The multimedia file is divided at least one multimedia file fragment;Wherein, a multimedia file fragment correspondence
One initial time;
Each multimedia file fragment at least one described multimedia file fragment is handled, at least one is formed and presets
The multimedia file fragment of media flow quality grade, wherein, at least one corresponding default Media Stream of a multimedia file fragment
The multimedia file fragment of credit rating.
7. method as claimed in claim 6, it is characterised in that methods described also includes:
Receive the multimedia document information transmitted by client and obtain request, described obtain asks to include the multimedia file
Address information;
According to the address information, the multimedia document information is inquired about;
The multimedia document information is returned to client, the multimedia document information is included including the multimedia file
At least one multimedia file fragment in each multimedia file fragment initial time and the multimedia file
Playing duration.
8. a kind of client, it is characterised in that the client includes:
First acquisition module, for when the current multimedia file fragment to be played in multimedia file is played out,
The broadcasting mark of the current multimedia file fragment to be played is obtained, wherein, the mark of playing includes the multimedia
The broadcasting initial time of file fragment, the broadcasting initial time is many matchmakers of the client according to transmitted by server
The initial time for each multimedia file fragment that the playing duration of body file and the multimedia file are included is divided
Obtain;
Second acquisition module, for obtaining the matchmaker adaptable with the broadcasting mark of the current multimedia file fragment to be played
Body current mass grade;
Output module is asked, for asking corresponding with the media flow quality grade described currently to be played many to server
Media file fragments, and export the current multimedia file fragment to be played;
Second acquisition module specifically for counting the real-time network bandwidth bit rates of the preset times nearest from current time,
And calculating the average value of the real-time network bandwidth bit rate of the preset times, the average value is current network bandwidth, and root
The media flow quality grade corresponding with the current network bandwidth is calculated according to the current network bandwidth;Will described and current net
The corresponding media flow quality grade of network bandwidth is defined as identifying with the broadcasting of the current multimedia file fragment to be played
Adaptable media flow quality grade.
9. client as claimed in claim 8, it is characterised in that the broadcasting mark is specially to play initial time, described
Second acquisition module includes:
Judging unit, for the broadcasting initial time according to the current multimedia file fragment to be played, judges described work as
Preceding multimedia file fragment to be played whether be the multimedia file start file fragment;
Survey calculation unit, for when judged result is no, measuring current network bandwidth, and according to the current network bandwidth
Calculate the media flow quality grade corresponding with the current network bandwidth;
Determining unit, for being defined as the media flow quality grade corresponding with current network bandwidth currently to treat with described
The media flow quality grade that the broadcasting mark of the multimedia file fragment of broadcasting is adapted;
Acquiring unit, during for being when judged result, obtaining each at least one default media flow quality grade and presetting
The corresponding bit rate of media flow quality grade;
Determining unit is analyzed, for analyzing each default media flow quality at least one described default media flow quality grade
Lowest bitrate in the corresponding bit rate of grade, and the corresponding default media flow quality grade of the lowest bitrate is determined
For the media flow quality grade adaptable with the broadcasting mark of the current multimedia file fragment to be played.
10. client as claimed in claim 9, it is characterised in that the survey calculation unit includes:
Subelement is measured, for measuring current network bandwidth;
Subelement is obtained, for obtaining each default media flow quality etc. at least one described default media flow quality grade
The corresponding bit rate of level;
Compare determination subelement, for by the current network bandwidth successively with least one described default media flow quality grade
In the corresponding bit rate of each default media flow quality grade be compared, and will be greater than or equal to the network bandwidth and
Default media flow quality grade corresponding with the bit rate that the comparison difference of the network bandwidth is minimum be defined as with it is described current
The corresponding media flow quality grade of the network bandwidth.
11. the client as described in claim 9 or 10, it is characterised in that the client also includes:
Sending module, the acquisition for sending multimedia document information to the server is asked, and described obtain asks to include institute
The address information of multimedia file is stated, so that the server inquires about the multimedia document information according to the address information;
Receiving module, for receiving the multimedia document information that the server is returned, the multimedia document information includes institute
State the initial time of each multimedia file fragment at least one multimedia file fragment that multimedia file is included with
And the playing duration of the multimedia file;
Division module, for the initial time according to each multimedia file fragment, the playing duration is divided into
At least one multimedia file fragment playing duration, at least one described multimedia file fragment playing duration includes many matchmakers
The broadcasting initial time of body file fragment, the initial time of same multimedia file fragment is identical with playing initial time.
12. a kind of server, it is characterised in that the server includes:
Acquisition module, for when the current multimedia file fragment to be played in multimedia file is played out, obtaining
The playing request that client is sent, the playing request carry current multimedia file fragment to be played broadcasting mark and with
It is described to play the adaptable media flow quality grade of mark, the media flow quality grade be the client count from it is current when
Between nearest preset times real-time network bandwidth bit rate, and calculate the real-time network bandwidth bit rate of the preset times
Average value, the average value is current network bandwidth, and calculated and the current network bandwidth according to the current network bandwidth
Corresponding media flow quality grade, by the media flow quality grade corresponding with current network bandwidth be defined as with it is described
The media flow quality grade that the broadcasting mark of current multimedia file fragment to be played is adapted;
First enquiry module, for being identified according to described play, inquiry plays adaptable media flow quality of mark etc. with described
The corresponding current multimedia file fragment to be played of level;
First returns to module, for the current multimedia file fragment to be played to be returned into client, so that the visitor
The family end output current multimedia file fragment to be played;
Wherein, the mark of playing includes the broadcasting initial time of the multimedia file fragment, and the broadcasting initial time is
The playing duration and the multimedia file of the multimedia file of the client according to transmitted by server are included
The initial time of each multimedia file fragment divide and obtain.
13. server as claimed in claim 12, it is characterised in that the server also includes:
Division module, for the multimedia file to be divided into at least one multimedia file fragment;Wherein, a multimedia
File fragment one initial time of correspondence;
Processing module, for each multimedia file fragment at least one described multimedia file fragment to be handled, shape
Into the multimedia file fragment of at least one default media flow quality grade, wherein, a multimedia file fragment correspondence is at least
The multimedia file fragment of one default media flow quality grade.
14. server as claimed in claim 13, it is characterised in that the server also includes:
Receiving module, obtains request, described obtain asks to include institute for receiving the multimedia document information transmitted by client
State the address information of multimedia file;
Second enquiry module, for according to the address information, inquiring about the multimedia document information;
Second returns to module, and for returning to the multimedia document information to client, the multimedia document information includes institute
State the initial time of each multimedia file fragment at least one multimedia file fragment that multimedia file is included with
And the playing duration of the multimedia file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410005121.5A CN103763580B (en) | 2014-01-06 | 2014-01-06 | A kind of multi-medium play method and relevant device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410005121.5A CN103763580B (en) | 2014-01-06 | 2014-01-06 | A kind of multi-medium play method and relevant device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103763580A CN103763580A (en) | 2014-04-30 |
CN103763580B true CN103763580B (en) | 2017-09-29 |
Family
ID=50530728
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410005121.5A Active CN103763580B (en) | 2014-01-06 | 2014-01-06 | A kind of multi-medium play method and relevant device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103763580B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105227993B (en) * | 2014-06-23 | 2018-09-25 | 北京大学 | The multimedia messages of AVS-DASH systems intercut control method, system and client |
CN105653530B (en) * | 2014-11-12 | 2021-11-30 | 上海交通大学 | Efficient and scalable multimedia transmission, storage and presentation method |
CN104602032A (en) * | 2015-01-13 | 2015-05-06 | 乐视致新电子科技(天津)有限公司 | Video playing processing method, playing application proxy device and playing server |
CN105471871B (en) * | 2015-11-26 | 2020-07-14 | 阿里巴巴(中国)有限公司 | Method and apparatus for providing a set of video segments |
CN105530522A (en) * | 2015-12-22 | 2016-04-27 | 米科互动教育科技(北京)有限公司 | Online course play method and device |
CN105828219A (en) * | 2016-03-21 | 2016-08-03 | 乐视网信息技术(北京)股份有限公司 | Online playing-based multimedia data traffic automatic adjusting method and device |
CN106297839A (en) * | 2016-09-30 | 2017-01-04 | 四川九洲电器集团有限责任公司 | A kind of audio-frequence player device |
CN108419136A (en) * | 2018-03-09 | 2018-08-17 | 青岛海信电器股份有限公司 | A kind of the seek implementation methods and device of network direct broadcasting stream |
CN111741335B (en) * | 2019-05-21 | 2022-12-27 | 北京京东尚科信息技术有限公司 | Data processing method and device, mobile terminal and computer readable storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102123303B (en) * | 2011-03-25 | 2012-10-24 | 天脉聚源(北京)传媒科技有限公司 | Audio/video file playing method and system as well as transmission control device |
CN102149005A (en) * | 2011-04-29 | 2011-08-10 | 四川长虹电器股份有限公司 | Self-adaptive method for controlling network video quality |
CN102378043A (en) * | 2011-09-29 | 2012-03-14 | 深圳市矽伟智科技有限公司 | Content delivery method and Internet television (TV) playing method as well as corresponding device and systems |
CN102843351B (en) * | 2012-03-31 | 2016-01-27 | 华为技术有限公司 | A kind of processing method of streaming media service, streaming media server and system |
EP2665239B1 (en) * | 2012-05-14 | 2016-08-31 | Alcatel Lucent | An adaptive streaming aware networks node, client and method with priority marking |
-
2014
- 2014-01-06 CN CN201410005121.5A patent/CN103763580B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103763580A (en) | 2014-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103763580B (en) | A kind of multi-medium play method and relevant device | |
CN102651033B (en) | A kind of recommend method of online resource and device | |
JP5500531B2 (en) | Method, system and network device for implementing HTTP-based streaming media services | |
KR101693584B1 (en) | Method and apparatus for performing adaptive streaming on media contents | |
TW379507B (en) | Video data transmission method | |
CN101060623B (en) | Moving image reproducing apparatus and method | |
CN108391179A (en) | live data processing method, device, server, terminal and storage medium | |
CN104125429A (en) | Video data transmission adjusting method and device | |
CN105163134A (en) | Video coding parameter setting method, device and video coding device for live video | |
CN110636339B (en) | Scheduling method and device based on code rate and electronic equipment | |
CN109982068B (en) | Method, apparatus, device and medium for evaluating quality of synthesized video | |
CN106911926B (en) | A kind of video code rate recognition methods and device | |
CN106911927B (en) | Method and device for evaluating experience quality of network video user and DPI equipment | |
KR101693567B1 (en) | Streaming media segment preparation method and apparatus | |
CN102280132A (en) | Online streaming audio play method based on HTTP (hyper text transfer protocol) | |
CN109640113A (en) | A kind of processing method and proxy server of dilatory video data | |
CN109089174A (en) | Multimedia data stream processing method and device and computer storage medium | |
CN110267117A (en) | A kind of processing method and Streaming Media processing server of stream medium data | |
CN102136948B (en) | Method, terminal equipment and system for counting user experiences | |
CN104509061A (en) | Method and device for regulating streaming media data transmission | |
CN106470350B (en) | Code rate adaptive approach and device based on dynamic bit rate | |
CN106303754A (en) | A kind of audio data play method and device | |
CN109587517B (en) | Multimedia file playing method and device, server and storage medium | |
CN106899843B (en) | A kind of video service quality appraisal procedure and device | |
CN111954034A (en) | Video coding method and system based on terminal equipment parameters |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A14, SKYWORTH Applicant after: Shenzhen Skyworth Digital Technology Co., Ltd. Address before: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A14, SKYWORTH Applicant before: Shenzhen Skyworth Digital Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |