CN103974100B - Media data playing method and device - Google Patents
Media data playing method and device Download PDFInfo
- Publication number
- CN103974100B CN103974100B CN201410213412.3A CN201410213412A CN103974100B CN 103974100 B CN103974100 B CN 103974100B CN 201410213412 A CN201410213412 A CN 201410213412A CN 103974100 B CN103974100 B CN 103974100B
- Authority
- CN
- China
- Prior art keywords
- file
- index
- audio
- time
- image
- 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.)
- Expired - Fee Related
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention provides a media data playing device, method and system in order to solve the problem that multimedia data cannot be played stably with an existing multimedia data playing technology. The device comprises an index file acquisition and analysis unit, an audio and/or image acquisition unit, a start time setting unit, a playing time determining unit, a playing unit and an update unit, wherein the index file acquisition and analysis unit is used for acquiring an index file from a server and analyzing the index file, and the index file contains index information and time stamps of audio and/or image files; the audio and/or image acquisition unit is used for acquiring the corresponding audio and/or image files from the server according to the analyzed content of the index file; the start time setting unit is used for setting a playing start time point according to the index file; the playing time determining unit is used for determining a plurality of playing time points after the playing start time point according to the time stamps contained in the index file; the playing unit is used for playing the audio and/or image file related to each playing time point at the playing time point; the update unit is used for acquiring the latest index file regularly from the server. The media data playing device, method and system can be applied to the field of multimedia data playing.
Description
Technical field
The present invention relates to multi-medium data plays field, more particularly, to a kind of play the method for media data, equipment and
System.
Background technology
With scientific and technological progress, the life of people increasingly be unable to do without computer and network technology.At present, in computer and
, there are many kind multi-medium data play-back technologies in networking technology area.
For example, existing HLS (HTTP Live Streaming) is a kind of Streaming transfer protocol based on HTTP, can
Realize the live of Streaming Media and program request by network data transmission.Media data according to HLS protocol is the fragment literary composition of a pile
Part, including the index file of m3u (8), TS media slicing file and key encryption string file etc., wherein each slicing files is
The small documents of 1-2M.For the common live streaming media agreement of RTMP agreement, RTSP agreement, MMS etc.,
The live maximum difference of HLS is, accessed by client is not a complete data flow.HLS protocol is in server
Under live data streams are stored as the media file (MPEG-TS form) grown in short-term continuously, very much by end, and client is then continuous
Carry and play these small documents, because up-to-date live data always can be generated new small documents, such client by server end
As long as the file getting from server is ceaselessly play in order it becomes possible to realize live in end.As can be seen here, HLS is substantially
It is considered as realizing a kind of live technology with the technical approach of program request.
However, the HLS segmental file that HLS is generated is generally larger, when using it for live or recorded broadcast etc., easily
The problems such as Transmission (phenomenon such as interim card that such as user is experienced), particularly in the situation that the network bandwidth is unstable
Down it is difficult to realize stable laser propagation effect.
It follows that the above existing many matchmakers such as the described multi-medium data play-back technology based on HLS that illustrate
Volume data play-back technology, because it needs the multimedia data file play larger, is easily caused and downloads the problems such as interrupt, therefore difficult
To realize stable download, thus result in the unstable of broadcasting.
Content of the invention
Brief overview with regard to the present invention is given below, to provide basic with regard to certain aspects of the invention
Understand.It should be appreciated that this general introduction is not the exhaustive general introduction with regard to the present invention.It is not intended to determine the pass of the present invention
Key or pith, nor is it intended to limit the scope of the present invention.Its purpose only provides some concepts in simplified form,
In this, as the preamble in greater detail discussed after a while.
In consideration of it, the invention provides playing the equipment of media data, method and system, existing many at least to solve
The unstable problem of broadcasting existing for media data play-back technology.
According to an aspect of the invention, it is provided a kind of equipment playing media data, this equipment includes:Index file
Obtain and resolution unit, it is arranged to obtain index file from server, and parses index file, wherein index file bag
Include index information and the timestamp of audio file and/or image file;Audio frequency and/or image acquisition unit, it is arranged to
The audio file name cited in the index information in index file content according to parsing and/or image file name are come from clothes
Business device obtains corresponding audio file and/or image file;Time started arranging unit, it is arranged to according to index file
Setting broadcast start time point;Reproduction time determining unit, the timestamp that it is arranged to according to comprising in index file is true
It is scheduled on the multiple play time after broadcast start time point;Broadcast unit, it is arranged in each broadcasting determining
Time point plays the audio file associating with this play time and/or image file respectively;And updating block, it is configured
For termly obtaining up-to-date index file from server, to update current index file.Wherein, reproduction time determines list
Unit includes:Audio frequency process subelement, it is configured for the broadcast start time point arranging, according to the index file of parsing
The recording starting time of this audio file included in the timestamp of each audio file in content is with respect to index file pair
The difference of the recording starting time first answered, determines the play time corresponding to this audio file;And image procossing subelement,
It is configured for arrange broadcast start time point, according to parsing index file content in each image file when
Between stamp included in the capture time first capture time corresponding with respect to index file of this image file difference, determine should
Play time corresponding to image file.
Alternatively, in the equipment of the broadcasting media data according to the present invention, time started arranging unit is arranged to:
Broadcast start time point is arranged according to index file, so that described client can be from service before broadcast start time point
The audio file of device acquisition predetermined quantity or predefined size and/or image file.
According to another aspect of the present invention, additionally provide another kind of equipment playing media data, this equipment includes:Rope
Draw file acquisition and resolution unit, it is arranged to obtain index file from server, and parses index file, wherein rope
Quotation part includes index information and the timestamp of audio file and/or image file;Duration arranging unit, it is arranged to root
According to the timestamp in the index file content of parsing, the duration of the setting corresponding whole recorded broadcast file of index file;Time started
Arranging unit, it is arranged to arrange broadcast start time point according to user input;Reproduction time determining unit, it is configured
For determining the multiple play time after broadcast start time point according to the timestamp comprising in index file;Audio frequency
And/or image acquisition unit, its index information being arranged in the index file content according to parsing determines to be broadcast with each
Put time point be associated audio file name and/or image file name, and according to determined by audio file name and/or
Image file name to obtain corresponding audio file and image file from server;And broadcast unit, it is arranged to
Play the audio file associating with this play time and/or image file in each play time determining respectively.Wherein,
Reproduction time determining unit includes:Audio frequency process subelement, it is configured for the broadcast start time point arranging, according to
The recording starting time phase of this audio file included in the timestamp of each audio file in the index file content of parsing
For the difference of the corresponding recording starting time first of index file, determine the play time corresponding to this audio file;And
Image procossing subelement, it is configured for the broadcast start time point arranging, in the index file content according to parsing
The capture time of this image file included in the timestamp of each image file is corresponding with respect to index file to catch first
Obtain the difference of time, determine the play time corresponding to this image file.
According to another aspect of the present invention, additionally provide a kind of method playing media data, the method includes:From clothes
Business device obtains index file, and parses index file, and wherein index file includes the index letter of audio file and/or image file
Breath and timestamp;The audio file name cited in the index information in index file content according to parsing and/or image literary composition
Part title to obtain corresponding audio file and/or image file from server;Broadcast start time is arranged according to index file
Point;Multiple play time after broadcast start time point are determined according to the timestamp comprising in index file;Determining
Each play time play the audio file associating with this play time and/or image file respectively;And termly
Obtain up-to-date index file from server, to update current index file.Wherein it is determined that after broadcast start time point
Multiple play time include:Based on the broadcast start time point of setting, each sound in the index file content according to parsing
The recording starting time of this audio file included in the timestamp of frequency file is corresponding with respect to index file to be recorded first
The difference of time started, determines the play time corresponding to this audio file;And the described broadcast start time based on setting
Point, the capture time of this image file included in the timestamp of each image file in the index file content according to parsing
The difference of first capture time corresponding with respect to index file, determines the play time corresponding to this image file.
Alternatively, in the method for the broadcasting media data according to the present invention, when being commenced play out according to index file setting
Between point step include:Broadcast start time point is arranged according to index file, so that described client can be in described beginning
From audio file and/or the image file of described server acquisition predetermined quantity or predefined size before play time.
According to another aspect of the present invention, additionally provide another kind of method playing media data, the method includes:From
Server obtains index file, and parses index file, and wherein index file includes the index of audio file and/or image file
Information and timestamp;The timestamp in index file content according to parsing, arranges the corresponding whole recorded broadcast file of index file
Duration;Broadcast start time point is arranged according to user input;Determined according to the timestamp comprising in index file and starting to broadcast
Put the multiple play time after time point;The index information in index file content according to parsing determines and each broadcasting
Time point be associated audio file name and/or image file name, and according to determined by audio file name and/or figure
As file name to obtain corresponding audio file and image file from server;And divide in each play time determining
The audio file that Bo Fang not associate with this play time and/or image file.Wherein, described determination is in broadcast start time point
Multiple play time afterwards include:Based on the described broadcast start time point of setting, according to the index file content of parsing
In each audio file timestamp included in this audio file recording starting time with respect to described index file pair
The difference of the recording starting time first answered, determines the play time corresponding to this audio file;And based on described in setting
Broadcast start time point, this image literary composition included in the timestamp of each image file in the index file content according to parsing
The difference of the capture time of part first capture time corresponding with respect to described index file, determines broadcasting corresponding to this image file
Put time point.
According to another aspect of the present invention, additionally provide a kind of play media data system, this system include located at
The media data of server end generates equipment and the media data playback equipment located at client, and wherein, media data is play
Equipment includes at least one equipment playing media data as above;Media data generates equipment and is used for generating media data
And the media data of generation is stored in server, media data includes audio file and/or image file and corresponding rope
Quotation part;And media data playback equipment is used for obtaining media data from server, and play audio file and/or image literary composition
Part.
The above-mentioned equipment of broadcasting media data according to embodiments of the present invention, method and system, it is according at least to from clothes
The index file that business device obtains, to determine multiple play time, obtains corresponding with the plurality of play time from server
Audio file and/or image file, to play the audio file associating with this and/or image literary composition respectively in each play time
Part, it is capable of one of at least following benefit:Required file to be played is less, relatively low to the susceptibility of the network bandwidth,
Thus the susceptibility to the network bandwidth can be reduced during live or recorded broadcast;In the case that the network bandwidth is more unstable,
Can more stablize than prior art, play out glibly;For more advantageous for existing mobile network's terminal;With
And in the application scenarios such as more concerned with audio frequency rather than video effect, can only download audio frequency literary composition by for example pre-setting
Part and the mode of not downloading image file play out, such that it is able to reduce to a greater degree file to be played size so that
Play more stable, smooth etc..
By the detailed description to highly preferred embodiment of the present invention below in conjunction with accompanying drawing, the these and other of the present invention is excellent
Point will be apparent from.
Brief description
The present invention can be by reference to being better understood below in association with the description given by accompanying drawing, wherein in institute
Have and employ same or analogous reference in accompanying drawing to represent same or like part.Described accompanying drawing is together with following
Describe the part comprising in this manual and being formed this specification together in detail, and be used for being further illustrated this
The preferred embodiment of invention and the principle and advantage explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of example schematically showing a kind of according to an embodiment of the invention equipment playing media data
The block diagram of structure;
Fig. 2 is the block diagram of a kind of possible structure schematically showing the reproduction time determining unit 140 shown in Fig. 1;
Fig. 3 is that the one kind schematically showing another kind of according to an embodiment of the invention equipment playing media data is shown
The block diagram of example structure;
Fig. 4 is the block diagram of a kind of possible structure schematically showing the reproduction time determining unit 340 shown in Fig. 3;
Fig. 5 is a kind of example schematically showing a kind of according to an embodiment of the invention method playing media data
Property process flow chart;
Fig. 6 is that the one kind schematically showing another kind of according to an embodiment of the invention method playing media data is shown
The flow chart that example property is processed;And
Fig. 7 is the one kind illustrating to can be used to realize the equipment and method playing media data according to an embodiment of the invention
The structure diagram of the hardware configuration of possible messaging device.
It will be appreciated by those skilled in the art that element in accompanying drawing be used for the purpose of simple and clear for the sake of and illustrate,
And be not necessarily drawn to scale.For example, in accompanying drawing, the size of some elements may be exaggerated with respect to other elements, with
Just it is favorably improved the understanding to the embodiment of the present invention.
Specific embodiment
Hereinafter in connection with accompanying drawing, the one exemplary embodiment of the present invention is described.For clarity and conciseness,
All features of actual embodiment are not described in the description.It should be understood, however, that developing any this actual enforcement
A lot of decisions specific to embodiment, to realize the objectives of developer, for example, symbol must be made during example
Close those restrictive conditions related to system and business, and these restrictive conditions may have with the difference of embodiment
Changed.Additionally, it also should be appreciated that although development is likely to be extremely complex and time-consuming, but to having benefited from the disclosure
For those skilled in the art of content, this development is only routine task.
Here is in addition it is also necessary to illustrate is a bit, in order to avoid having obscured the present invention because of unnecessary details, in the accompanying drawings
Illustrate only and the device structure closely related according to the solution of the present invention and/or process step, and eliminate and the present invention
The little other details of relation.
As described above, the existing multi-medium data play-back technology of play-back technology based on HLS etc., due to its needs
Play multimedia data file larger it is difficult to realize stable transmission (particularly in the case that the network bandwidth is unstable),
Thus the stable playback in being unfavorable for live or recording playing mode.Pin is in this regard, embodiments of the invention propose one kind for live
The multi-medium data of mode plays scheme, and (in following article, the equipment 100 playing media data described in conjunction with Figure 1 or combination are schemed
The method of the broadcasting media data described by 5), and a kind of multi-medium data broadcasting scheme (following article for recording playing mode
In described in conjunction with Figure 3 play media data equipment 300 or described in conjunction with Figure 6 play media data method), use
In solution the above-mentioned problems in the prior art.Above scheme is described more fully below.
The embodiment provides a kind of equipment playing media data, this equipment includes:Index file obtain with
Resolution unit, it is arranged to obtain index file from server, and parses index file, and wherein index file includes audio frequency
The index information of file and/or image file and timestamp;Audio frequency and/or image acquisition unit, it is arranged to according to solution
The audio file name cited in index information in the index file content of analysis and/or image file name to obtain from server
Take corresponding audio file and/or image file;Time started arranging unit, it is arranged to be opened according to index file setting
Beginning play time;Reproduction time determining unit, it is arranged to be determined according to the timestamp comprising in index file and is opening
Multiple play time after beginning play time;Broadcast unit, it is arranged in each play time determining
Play the audio file associating with this play time and/or image file respectively;And updating block, it is arranged to
Termly obtain up-to-date index file from server, to update current index file.
To describe a kind of broadcasting media number being used for direct-seeding according to an embodiment of the invention with reference to Fig. 1 in detail
According to equipment an example, wherein, shown in Fig. 1 broadcasting media data equipment 100 include index file obtain with parsing
Unit 110, audio frequency and/or image acquisition unit 120, time started arranging unit 130, reproduction time determining unit 140, broadcasting
Unit 150 and updating block 160.
Generally, equipment 100 can be installed on a client device.To be play certain when user starts client device determination
Individual just in live content (such as just in live video frequency program, audio program etc.) (for example pass through click on client device
The icon of this content on screen is determining broadcasting), equipment 100 is triggered and starts to execute process.
First, index file obtains and obtains index file with resolution unit 110 from server, and wherein this index file includes
The index information of at least one file in audio file and image file and timestamp.
Then, index file is obtained and with resolution unit 110, the index file that it obtains is parsed, to obtain this index
The particular content of file, for example, obtain the particular content in above-mentioned timestamp and index information.
Wherein, index information includes corresponding audio file name and/or image file name.In one example,
When index information includes audio file name, it can also optionally include this audio file name corresponding audio frequency literary composition
One or more of information such as part size, recording time and audio frequency duration;And work as index information and include corresponding image literary composition
During part title, it can also optionally include one or more information such as this image file name corresponding image size.
Then, audio frequency and/or image acquisition unit 120 are according to cited in index information in the index file content of parsing
File name to obtain file corresponding to these titles from server, such as, the audio frequency literary composition quoted according to wherein index information
Part title and/or image file name download corresponding audio file and/or image file from server.
In addition, according to the index file of parsing, time started arranging unit 130 is configured to starting play time.
For example, time started arranging unit 130 can arrange a broadcast start time point so that current time is to beginning
Play time arrives in this period of time, and time started arranging unit 130 can download predetermined quantity or predetermined from server
The audio file of size and/or image file, for caching etc..
In one example, time started arranging unit 130 can be according to these sounds in index file content included
The size (being for example included in the index file content of parsing) of frequency file and/or image file and current speed of download are estimating
Calculate the download required time of these files, then current time is added that the moment obtained by calculated download required time is made
For above-mentioned broadcast start time point.
It should be noted that predetermined quantity or predefined size can be arranged previously according to empirical value, or by test
Mode determines, I will not elaborate.
Then, reproduction time determining unit 140 determines when commencing play out according to the timestamp comprising in index file
Between put after multiple play time.Wherein, each play time determined by reproduction time determining unit 140 is distinguished
It is associated with an audio file and/or an image file.With reference to Fig. 2, reproduction time determining unit 140 to be described
A kind of example arrangement.
As shown in Fig. 2 in this example embodiment, reproduction time determining unit 140 can include audio frequency process subelement 210 and figure
As processing subelement 220, audio frequency process subelement 210 and image procossing subelement 220 can be based respectively on setting start broadcast
Put time point to determine each play time.
Hypothesis broadcast start time point is t0, with corresponding to certain audio file name in index file content cited
Audio file D1As a example illustrating, for corresponding to other audio file names in index file content cited
The determination process of the play time of audio file may be referred to following description, will no longer repeat one by one here.
As shown in Fig. 2 audio frequency process subelement 210 can calculate audio file D first1Recording starting time ts1(example
As being included in the index file content of parsing) first recording starting time ts corresponding with respect to index file0(for example comprise
Parsing index file content in) time difference Δ t1(wherein Δ t1=ts1-ts0), then by the beginning having set
Play time t0Plus this time difference Δ t1Moment (the t of gained0+Δt1) as audio file D1Corresponding play time
TD1.
Here, the corresponding recording starting time first of index file refers to cited all audio frequency in index file content
Earliest that in the recording starting time of file name each audio file corresponding.
Similarly, with the image file D ' corresponding to certain image file name in index file content cited1For
Example illustrating, for the broadcasting of the image file corresponding to other image file names in index file content cited
The determination process of time point may be referred to following description, will no longer repeat one by one here.
As shown in Fig. 2 image procossing subelement 220 can calculate image file D ' first1Recording starting time ts '1
(being for example included in the index file content of parsing) first capture time ts corresponding with respect to index file '0(for example wrap
Be contained in the index file content of parsing) time difference Δ t2(wherein Δ t2=ts '1-ts’0), then will set
Broadcast start time point t0Plus this time difference Δ t2Moment (the t of gained0+Δt2) as image file D '1Corresponding broadcasting
Time point TD’1.
It should be noted that when only comprising audio file name (not comprising image file name) in index file,
Can only make audio frequency process subelement 210 execute alignment processing as above, and make image procossing subelement 220 not execute place
Reason.Similarly, when only comprising image file name (not comprising audio file name) in index file, image can only be made
Process subelement 220 and execute alignment processing as above, and make audio frequency process subelement 210 not execute process.
So, by the process of audio frequency process subelement 210 and image procossing subelement 220, multiple broadcastings can be obtained
Time point, and wherein each play time is all after broadcast start time point.Additionally, obtained by above process
Each play time is associated with an audio file and/or an image file respectively.For example, what above citing described broadcasts
Put time point TD1It is associated with audio file D1, and play time T of description of illustrating aboveD’1Then it is associated with image file D '1.
In addition, if if certain audio file is identical with the play time corresponding to certain image file, then this play time
It is associated with this audio file and this image file simultaneously.
By above description, obtained by being utilized respectively audio frequency process subelement 210 and image procossing subelement 220
Obtain the play time of audio file and the play time of image file, enable to realize to audio file in subsequent treatment
Relatively independent broadcasting with image file.That is, broadcasting therebetween does not interfere with each other.So, in actual treatment, such as
Fruit only needs to play audio file, then image procossing subelement 220 can be made not deal with, namely make future will not play figure
As file;Conversely, audio frequency process subelement 210 can be made not deal with the case of only needing to play image file, and make
Obtain and will not play audio file.Thereby, it is possible to come according to actual needs optionally to reduce file size to be played, so as to
Enough susceptibilitys reducing to the network bandwidth, that is, more stably can play out in the case that the network bandwidth is more unstable.
Thus, by the process of reproduction time determining unit 140, each audio file and/or each image can be obtained
Play time corresponding to file.Then, in each play time determined by reproduction time determining unit 140, play
Unit 150 plays the audio file associating with this play time and/or image file.For example, it is assumed that reproduction time determines list
Unit 140 has determined certain audio file D3Corresponding play time is moment T1, then when moment T1 arrives, broadcast unit
150 commence play out audio file D3.
Additionally, in device 100, updating block 160 termly can obtain up-to-date index file from server, with more
Newly current index file.
It should be noted that, although above example describe successively index file obtain with resolution unit 110, audio frequency and/
Or image acquisition unit 120, time started arranging unit 130, reproduction time determining unit 140, broadcast unit 150 and renewal are single
The process of unit in unit 160, but the process execution sequence of above unit is not limited to this.For example, the time started sets
Put unit 130 and reproduction time determining unit 140 synchronously can be processed with audio frequency and/or image acquisition unit 120, or
Person, time started arranging unit 130 and reproduction time determining unit 140 can also indexed file obtain and resolution unit 110
Afterwards, executed before audio frequency and/or image acquisition unit 120 process (but the process of reproduction time determining unit 140 start
Carry out after set of time unit 130), etc..
By above description, the above-mentioned broadcasting media data being used for direct-seeding according to an embodiment of the invention
Equipment, it obtains corresponding audio file and/or image file according to the index file obtaining from server from server,
The play time determining plays the audio file associating with this and/or image file respectively.With respect to such as many based on HLS
For the existing multi-medium data play-back technology such as media data play-back technology, this equipment needs to be played from server acquisition
File (can be one of audio file and image file or two kinds) less so that the susceptibility to the network bandwidth for this equipment
Relatively low, thus the susceptibility to the network bandwidth can be reduced during live that is to say, that more unstable in the network bandwidth
In the case of, can more stablize than above-mentioned existing multi-medium data play-back technology, play out glibly.
For existing mobile network's terminal, because result of broadcast when carrying out live using this equipment is more steady
Fixed, smooth, therefore this equipment is more advantageous compared to above-mentioned existing multi-medium data play-back technology.
Additionally, in the application scenarios such as online education, user more concerned with often teacher voice data,
And video effect is then considered less.Therefore, in the application scenarios such as more concerned with audio frequency rather than video effect, for example may be used
Played out in the way of only downloading audio file and do not download image file by pre-setting, such that it is able to more great Cheng
Degree ground reduces the size of file to be played so that playing more stable, smooth etc..
Additionally, embodiments of the invention additionally provide another kind of equipment playing media data, this equipment includes:Index literary composition
Part obtains and resolution unit, and it is arranged to obtain index file from server, and parses index file, wherein index file
Index information including audio file and/or image file and timestamp;Duration arranging unit, it is arranged to according to parsing
Index file content in timestamp, setting the corresponding whole recorded broadcast file of index file duration;Time started setting is single
Unit, it is arranged to arrange broadcast start time point according to user input;Reproduction time determining unit, it is arranged to
Multiple play time after broadcast start time point are determined according to the timestamp comprising in index file;Audio frequency and/or
Image acquisition unit, its index information being arranged in the index file content according to parsing determines and each reproduction time
The associated audio file name of point and/or image file name, and according to determined by audio file name and/or image literary composition
Part title to obtain corresponding audio file and image file from server;And broadcast unit, it is arranged to determining
Each play time play the audio file associating with this play time and/or image file respectively.
A kind of broadcasting media data being used for recording playing mode according to an embodiment of the invention to be described with reference to Fig. 3
One example of equipment, wherein, the equipment 300 of the broadcasting media data shown in Fig. 3 includes index file and obtains and resolution unit
310th, audio frequency and/or image acquisition unit 320, time started arranging unit 330, reproduction time determining unit 340, broadcast unit
350 and duration arranging unit 370.
Equipment 300 may be mounted on client device.Certain recorded broadcast to be play when user starts client device determination
(for example pass through to click on this content on client device screen during content (video frequency program of such as recorded broadcast, audio program etc.)
Icon is determining broadcasting), equipment 300 is triggered and starts to execute process.
First, index file obtains and obtains index file with resolution unit 310 from server, and wherein this index file includes
The index information of at least one file in audio file and image file and timestamp.
Then, index file is obtained and with resolution unit 310, the index file that it obtains is parsed, to obtain this index
The particular content of file, for example, obtain the particular content in above-mentioned timestamp and index information.
Wherein, index information includes corresponding audio file name and/or image file name.In one example,
When index information includes corresponding audio file name, it is corresponding that it can also optionally include this audio file name
One or more of information such as audio file size, recording time and audio frequency duration;And work as index information and include accordingly
During image file name, it can also optionally include one or more letter such as this image file name corresponding image size
Breath.
Then, according to the timestamp in the index file content of parsing, setting index file corresponds to duration arranging unit 370
Whole recorded broadcast file duration.
For example, the timestamp of each audio file generally can include the recording starting time of this audio file and record knot
The bundle time, when only comprising audio file name (not comprising image file name) in index file, in all audio files
In recording starting time in select earliest that time (hereinafter referred to as first recording starting time), in all audio frequency
Recording in file selects that time (hereinafter referred to as last records the end time) the latest in the end time, recorded with last
End time processed deducts the time difference of recording starting time gained first, as the corresponding whole recorded broadcast file of index file when
Long.
And for example, when not only having comprised audio file name in index file but also having comprised image file name, by above description
Mode select earliest that time (hereinafter referred to as to record first and open in the recording starting time in all audio files
Time beginning), and select that time (hereinafter referred to as last record the latest in the recording end time in all audio files
End time processed).Additionally, the timestamp of each image file generally can include the capture time of this image file, all
Select that time (hereinafter referred to as last capture time) the latest in capture time in image file, and compare last record
End time processed and last capture time, select wherein more late that time (hereinafter referred to as end time), then with being somebody's turn to do
End time deducts the time difference of recording starting time gained first, as the corresponding whole recorded broadcast file of index file when
Long.
Additionally, after index file is parsed, time started arranging unit 330 is arranged out according to user input
Beginning play time.For example, it is possible to show inputting interface on the screen of equipment 300 place client device, to point out user
Input its desired broadcast start time point.
Then, reproduction time determining unit 340, according to the timestamp comprising in index file, determines in broadcast start time
Multiple play time after point.Wherein, each play time determined by reproduction time determining unit 340 respectively with
One audio file and/or an image file are associated.To describe the one of reproduction time determining unit 340 with reference to Fig. 4
Plant example arrangement.
As shown in figure 4, in this example embodiment, reproduction time determining unit 340 can include audio frequency process subelement 410 and figure
As processing subelement 420, audio frequency process subelement 410 and image procossing subelement 420 can be based respectively on setting start broadcast
Put time point to determine each play time.
Wherein, audio frequency process subelement 410 can be based on the broadcast start time set by time started arranging unit 330
Point, the recording of this audio file included in the timestamp of each audio file in the index file content according to parsing starts
The time difference of time first recording starting time corresponding with respect to index file, by the broadcast start time having set point
Moment plus this time difference gained is defined as the play time corresponding to this audio file.
Similarly, it is directed to the cited image file corresponding to each image file name in index file content,
Image procossing subelement 420 can be based on the broadcast start time point set by time started arranging unit 330, according to parsing
The capture time of this image file included in the timestamp of each image file in index file content is with respect to index literary composition
The time difference of the corresponding capture time first of part, the broadcast start time having set point is added this time difference gained
Moment is defined as the play time corresponding to this image file.
It should be noted that when only comprising audio file name (not comprising image file name) in index file,
Can only make audio frequency process subelement 410 execute alignment processing as above, and make image procossing subelement 420 not execute place
Reason.Similarly, when only comprising image file name (not comprising audio file name) in index file, image can only be made
Process subelement 420 and execute alignment processing as above, and make audio frequency process subelement 410 not execute process.
So, by the process of audio frequency process subelement 410 and image procossing subelement 420, multiple broadcastings can be obtained
Time point, and wherein each play time is all after broadcast start time point.Additionally, obtained by above process
Each play time is associated with an audio file and/or an image file respectively.
By above description, obtained by being utilized respectively audio frequency process subelement 410 and image procossing subelement 420
Obtain the play time of audio file and the play time of image file, enable to realize to audio file in subsequent treatment
Relatively independent broadcasting with image file.That is, broadcasting therebetween does not interfere with each other.So, in actual treatment, such as
Fruit only needs to play audio file, then image procossing subelement 420 can be made not deal with, namely make future will not play figure
As file;Conversely, audio frequency process subelement 410 can be made not deal with the case of only needing to play image file, and make
Obtain and will not play audio file.Thereby, it is possible to come according to actual needs optionally to reduce file size to be played, so as to
Enough susceptibilitys reducing to the network bandwidth, that is, more stably can play out in the case that the network bandwidth is more unstable.
Then, audio frequency and/or image acquisition unit 320, according to the index information in the index file content of parsing, determine
The audio file name being associated with each play time and/or image file name, and according to determined by audio file
Title and/or image file name to obtain corresponding audio file and image file from server.
Thus, in each play time determining, broadcast unit 350 can be play respectively and be associated with this play time
Audio file and/or image file.
By above description, the above-mentioned broadcasting media data being used for recording playing mode according to an embodiment of the invention
Equipment, its basis is when the broadcast start time point of the index file that server obtains and user input is to determine multiple broadcasting
Between point, and obtain the audio file corresponding with the plurality of play time and/or image file from server, to broadcast at each
Put time point and play the audio file associating with this and/or image file respectively.With respect to the multi-medium data such as based on HLS
For the existing multi-medium data play-back technology such as play-back technology, the file to be played that this equipment needs obtain from server (can
To be one of audio file and image file or two kinds) less so that this equipment is relatively low to the susceptibility of the network bandwidth,
Thus the susceptibility to the network bandwidth can be reduced during recorded broadcast that is to say, that in the more unstable situation of the network bandwidth
Under, can more stablize than above-mentioned existing multi-medium data play-back technology, play out glibly.
For existing mobile network's terminal, more steady due to carrying out result of broadcast during recorded broadcast using this equipment
Fixed, smooth, therefore this equipment is more advantageous compared to above-mentioned existing multi-medium data play-back technology.
Additionally, in the application scenarios such as online education, user more concerned with often teacher voice data,
And video effect is then considered less.Therefore, in the application scenarios such as more concerned with audio frequency rather than video effect, for example may be used
Played out in the way of only downloading audio file and do not download image file by pre-setting, such that it is able to more great Cheng
Degree ground reduces the size of file to be played so that playing more stable, smooth etc..
Additionally, embodiments of the invention additionally provide a kind of method playing media data, the method includes:From server
Obtain index file, and parse index file, wherein index file include audio file and/or image file index information and
Timestamp;The audio file name cited in the index information in index file content according to parsing and/or image file name
Claim to obtain corresponding audio file and/or image file from server;Broadcast start time point is arranged according to index file;Root
Determine the multiple play time after broadcast start time point according to the timestamp comprising in index file;In each determining
Play time plays the audio file associating with this play time and/or image file respectively;And termly from service
Device obtains up-to-date index file, to update current index file.
A kind of exemplary process of the method for broadcasting media data for direct-seeding to be described with reference to Fig. 5.
As shown in figure 5, the method for the above-mentioned according to an embodiment of the invention broadcasting media data for direct-seeding
Exemplary process flow 500 starts from step S510, then, execution step S520.
In step S520, obtain index file from server, and parse index file, wherein index file includes audio frequency
The index information of file and/or image file and timestamp.Wherein, performed process in step S520 for example can be with above
In index file described in conjunction with Figure 1 obtain identical with the process of resolution unit 110, and similar technology can be reached imitate
Really, will not be described here.Then, execution step S530.
The audio file name cited in the index information in index file content in step S530, according to parsing
And/or image file name to obtain corresponding audio file and/or image file from server.Then, execution step S540.
Wherein, performed process in step S530 for example can with above in conjunction with the audio frequency described by Fig. 1 and/or Image Acquisition
The process of unit 120 is identical, and can reach similar technique effect, will not be described here.
In step S540, broadcast start time point is arranged according to index file.Then, execution step S550.Wherein, walk
Performed process in rapid S540 for example can be with the process above in conjunction with the time started arranging unit 130 described by Fig. 1
Identical, and similar technique effect can be reached, will not be described here.
In a kind of above-mentioned according to an embodiment of the invention exemplary process flow 500 of the method playing media data
In a kind of implementation, in step S540, for example, broadcast start time point can be arranged according to index file, so that client
End can obtain audio file and/or the image file of predetermined quantity before broadcast start time point from server.
In step S550, determined multiple after broadcast start time point according to the timestamp comprising in index file
Play time.Then, execution step S560.Wherein, performed process in step S550 for example can with above in conjunction with
The process of the reproduction time determining unit 140 described by Fig. 1 is identical, and can reach similar technique effect, and here is no longer superfluous
State.
In a kind of above-mentioned according to an embodiment of the invention exemplary process flow 500 of the method playing media data
In a kind of implementation, in step S550, for example, can determine in the following way after broadcast start time point
Multiple play time:Based on the broadcast start time point of setting, each audio file in the index file content according to parsing
Timestamp included in this audio file recording starting time corresponding with respect to index file first record start when
Between difference, determine the play time corresponding to this audio file;And the broadcast start time point based on setting, according to parsing
Index file content in each image file timestamp included in this image file capture time with respect to index
The difference of the corresponding capture time first of file, determines the play time corresponding to this image file.
In step S560, play, in each play time determining, the audio frequency literary composition associating with this play time respectively
Part and/or image file.Wherein, performed in step S560 or process for example can with above in conjunction with described by Fig. 1
The process of broadcast unit 150 is identical, and can reach similar technique effect, will not be described here.Then, in step S570
Terminate handling process 500.
In addition, while execution step S520-S560, also termly executing the renewal step as shown in step S580.
Wherein, in step S580, obtain up-to-date index file from server, to update current index file.For example, it is possible to it is every
Executed step S580 every (the such as 10 minutes) scheduled time.
It should be noted that being not limited to above execution sequence, such as S540 and S550 can also be between S520 and S530
Execution, or synchronously execute with S530.
By above description, the above-mentioned broadcasting media data being used for direct-seeding according to an embodiment of the invention
Method, it obtains corresponding audio file and/or image file according to the index file obtaining from server from server,
The play time determining plays the audio file associating with this and/or image file respectively.With respect to such as many based on HLS
For the existing multi-medium data play-back technology such as media data play-back technology, the method needs to be played from server acquisition
File (can be one of audio file and image file or two kinds) less so that the susceptibility to the network bandwidth for the method
Relatively low, thus the susceptibility to the network bandwidth can be reduced during live that is to say, that more unstable in the network bandwidth
In the case of, can more stablize than above-mentioned existing multi-medium data play-back technology, play out glibly.
For existing mobile network's terminal, because result of broadcast when carrying out live using the method is more steady
Fixed, smooth, therefore the method is more advantageous compared to above-mentioned existing multi-medium data play-back technology.
Additionally, in the application scenarios such as online education, user more concerned with often teacher voice data,
And video effect is then considered less.Therefore, in the application scenarios such as more concerned with audio frequency rather than video effect, for example may be used
Played out in the way of only downloading audio file and do not download image file by pre-setting, such that it is able to more great Cheng
Degree ground reduces the size of file to be played so that playing more stable, smooth etc..
Additionally, embodiments of the invention additionally provide another kind of method playing media data, the method includes:From service
Device obtains index file, and parses index file, and wherein index file includes the index information of audio file and/or image file
And timestamp;According to parsing index file content in timestamp, setting the corresponding whole recorded broadcast file of index file when
Long;Broadcast start time point is arranged according to user input;Determined when commencing play out according to the timestamp comprising in index file
Between put after multiple play time;The index information in index file content according to parsing determines and each reproduction time
The associated audio file name of point and/or image file name, and according to determined by audio file name and/or image literary composition
Part title to obtain corresponding audio file and image file from server;And broadcast respectively in each play time determining
Put the audio file associating with this play time and/or image file.
A kind of exemplary place of a kind of method of broadcasting media data for recording playing mode to be described with reference to Fig. 6
Reason.
As shown in fig. 6, the method for the above-mentioned according to an embodiment of the invention broadcasting media data for recording playing mode
Exemplary process flow 600 starts from step S610, then, execution step S620.
In step S620, obtain index file from server, and parse index file, wherein index file includes audio frequency
The index information of file and/or image file and timestamp.Wherein, performed process in step S620 for example can be with above
In index file described in conjunction with Figure 3 obtain identical with the process of resolution unit 310, and similar technology can be reached imitate
Really, will not be described here.Then, execution step S630.
In step S630, according to the timestamp in the index file content parsing, setting index file is corresponding whole
The duration of recorded broadcast file.Wherein, performed process in step S630 for example can with above in conjunction with the duration described by Fig. 3
The process of arranging unit 370 is identical, and can reach similar technique effect, will not be described here.Then, execution step
S640.
In step S640, broadcast start time point is arranged according to user input.Wherein, performed place in step S640
Reason for example can be identical with the process above in conjunction with the time started arranging unit 330 described by Fig. 3, and can reach similar
Technique effect, will not be described here.Then, execution step 650.
In step S650, determined multiple after broadcast start time point according to the timestamp comprising in index file
Play time.Wherein, performed process in step S650 for example can with above in conjunction with the reproduction time described by Fig. 3
The process of determining unit 340 is identical, and can reach similar technique effect, will not be described here.Then, execution step 660.
Exemplary process flow 600 in the above-mentioned according to an embodiment of the invention another kind of method playing media data
A kind of implementation in, in step S650, for example, can determine in the following way after broadcast start time point
Multiple play time:Based on the broadcast start time point of setting, each audio frequency literary composition in the index file content according to parsing
First record corresponding with respect to index file of the recording starting time of this audio file included in the timestamp of part starts
The difference of time, determines the play time corresponding to this audio file;And the broadcast start time point based on setting, according to solution
The capture time of this image file included in the timestamp of each image file in the index file content of analysis is with respect to rope
The difference of the corresponding capture time first of quotation part, determines the play time corresponding to this image file.
In step S660, the index information in index file content according to parsing determines and each play time phase
Association audio file name and/or image file name, and according to determined by audio file name and/or image file name
Claim to obtain corresponding audio file and image file from server.Wherein, performed process in step S660 is for example permissible
Identical with the process above in conjunction with the audio frequency described by Fig. 3 and/or image acquisition unit 320, and similar skill can be reached
Art effect, will not be described here.Then, execution step S670.
In step S670, play, in each play time determining, the audio frequency literary composition associating with this play time respectively
Part and/or image file.Wherein, performed process in step S670 for example can with above in conjunction with broadcasting described by Fig. 3
The process putting unit 350 is identical, and can reach similar technique effect, will not be described here.Then, handling process 600 is tied
Restraint in step S680.
It should be noted that being not limited to above execution sequence, such as S640-S660 can also hold between S620 and S630
OK, or with S630 synchronously execute.
By above description, the above-mentioned broadcasting media data being used for recording playing mode according to an embodiment of the invention
Method, its basis is when the broadcast start time point of the index file that server obtains and user input is to determine multiple broadcasting
Between point, and obtain the audio file corresponding with the plurality of play time and/or image file from server, to broadcast at each
Put time point and play the audio file associating with this and/or image file respectively.With respect to the multi-medium data such as based on HLS
For the existing multi-medium data play-back technology such as play-back technology, the file to be played that the method needs obtain from server (can
To be one of audio file and image file or two kinds) less so that the method is relatively low to the susceptibility of the network bandwidth,
Thus the susceptibility to the network bandwidth can be reduced during recorded broadcast that is to say, that in the more unstable situation of the network bandwidth
Under, can more stablize than above-mentioned existing multi-medium data play-back technology, play out glibly.
For existing mobile network's terminal, more steady due to carrying out result of broadcast during recorded broadcast using the method
Fixed, smooth, therefore the method is more advantageous compared to above-mentioned existing multi-medium data play-back technology.
Additionally, in the application scenarios such as online education, user more concerned with often teacher voice data,
And video effect is then considered less.Therefore, in the application scenarios such as more concerned with audio frequency rather than video effect, for example may be used
Played out in the way of only downloading audio file and do not download image file by pre-setting, such that it is able to more great Cheng
Degree ground reduces the size of file to be played so that playing more stable, smooth etc..
Additionally, embodiments of the invention additionally provide a kind of system playing media data, this system is included located at service
The media data at device end generates equipment and the media data playback equipment located at client, wherein, media data playback equipment
Including at least one equipment playing media data as above;Media data generates equipment and is used for generating media data and inciting somebody to action
The media data generating is stored in server, and media data includes audio file and/or image file and corresponding index literary composition
Part;And media data playback equipment is used for obtaining media data from server, and play audio file and/or image file.
It should be noted that in actual applications, the above-mentioned equipment for live broadcasting media data and be used for recorded broadcast
Broadcasting media data equipment can individually be arranged in this system it is also possible to integrating and integrally arranging
In this system.Additionally, in some instances, when for the live equipment of broadcasting media data and the broadcasting matchmaker for recorded broadcast
Unit in two equipment of the equipment of volume data can realize wholly or in part identical function treatment when it is also possible to these are single
Unit is set to a unit to realize.
Each component units in the equipment of the above-mentioned media data of broadcasting according to an embodiment of the invention, subelement, mould
Block etc. can be configured by way of software, firmware, hardware or its any combination.In the feelings realized by software or firmware
Under condition, can install to the machine (general-purpose machinery 700 for example shown in Fig. 7) with specialized hardware structure from storage medium or network
Constitute the program of this software or firmware, this machine, when being provided with various program, is able to carry out above-mentioned each component units, subelement
Various functions.
Fig. 7 shows and can be used to realize the one of the equipment and method playing media data according to an embodiment of the invention
Plant the structure diagram of the possible hardware configuration of messaging device.
In the figure 7, CPU (CPU) 701 is according to the program of storage in read-only storage (ROM) 702 or from depositing
Storage part 708 is loaded into the various process of program performing of random access memory (RAM) 703.In RAM 703, always according to need
Store the data required when CPU 701 executes various process etc..CPU 701, ROM 702 and RAM 703 are via bus
704 are connected to each other.Input/output interface 705 is also connected to bus 704.
Components described below is also connected to input/output interface 705:Importation 706 (including keyboard, mouse etc.), output
Part 707 (including display, such as cathode-ray tube (CRT), liquid crystal display (LCD) etc., and loudspeaker etc.), storage part
708 (including hard disks etc.), communications portion 709 (including NIC such as LAN card, modem etc.).Communications portion 709
Via network such as internet execution communication process.As needed, driver 710 can be connected to input/output interface 705.
Detachable media 711 such as disk, CD, magneto-optic disk, semiconductor memory etc. can be installed in driver as needed
So that the computer program reading out can be installed in storage part 708 as needed on 710.
In the case that above-mentioned series of processes is realized by software, can be from network such as internet or from storage medium example
As detachable media 711 installs the program constituting software.
It will be understood by those of skill in the art that this storage medium be not limited to wherein having program stored therein shown in Fig. 7,
Separately distribute with equipment to provide a user with the detachable media 711 of program.The example of detachable media 711 comprises disk
(comprising floppy disk), CD (comprising compact disc read-only memory (CD-ROM) and digital universal disc (DVD)), magneto-optic disk (comprise mini
Disk (MD) (registration mark)) and semiconductor memory.Or, storage medium can be ROM 702, storage part 708 in comprise
Hard disk etc., wherein computer program stored, and be distributed to user together with the equipment comprising them.
In the description to the specific embodiment of the invention above, for a kind of description of embodiment and/or the feature that illustrates
Can be used in one or more other embodiments in same or similar mode, with the feature in other embodiment
Combined, or substitute the feature in other embodiment.
Additionally, the method for various embodiments of the present invention be not limited to specifications described in or accompanying drawing shown in when
Between sequentially to execute it is also possible to according to other time sequencings, concurrently or independently execute.Therefore, described in this specification
The execution sequence of method the technical scope of the present invention is not construed as limiting.
B10. the method playing media data according to claim 9, wherein, described determination is in broadcast start time
Multiple play time after point include:Based on the described broadcast start time point of setting, in the index file according to parsing
The recording starting time of this audio file included in the timestamp of each audio file in appearance is with respect to described index file
The difference of corresponding recording starting time first, determines the play time corresponding to this audio file;And the institute based on setting
State broadcast start time point, this image included in the timestamp of each image file in the index file content according to parsing
The difference of the capture time of file first capture time corresponding with respect to described index file, determines corresponding to this image file
Play time.
Last in addition it is also necessary to explanation, herein, such as left and right, first and second or the like relational terms only
Only it is used for making a distinction an entity or operation with another entity or operation, and not necessarily require or imply that these are real
There is any this actual relation or order between body or operation.And, term " inclusion ", "comprising" or its any its
His variant is intended to comprising of nonexcludability, so that including a series of process of key elements, method, article or equipment not
Only include those key elements, but also include other key elements being not expressly set out, or also include for this process, method,
Article or the intrinsic key element of equipment.In the absence of more restrictions, by wanting that sentence "including a ..." limits
It is not excluded that also there is other identical element in process, method, article or the equipment including described key element in element.
Claims (7)
1. a kind of equipment playing media data, including:
Index file obtains and resolution unit, and it is arranged to obtain index file from server, and parses described index literary composition
Part, wherein said index file includes index information and the timestamp of audio file and/or image file;
Audio frequency and/or image acquisition unit, its index information being arranged in the index file content according to parsing is drawn
With audio file name and/or image file name come from described server obtain corresponding audio file and/or image literary composition
Part;
Time started arranging unit, it is arranged to arrange broadcast start time point according to described index file;
Reproduction time determining unit, it is arranged to be determined according to the timestamp comprising in described index file and is commencing play out
Multiple play time after time point;
Broadcast unit, each play time that it is arranged to determining plays the sound associating with this play time respectively
Frequency file and/or image file;And
Updating block, it is arranged to termly obtain up-to-date index file from server, to update current index literary composition
Part;
Wherein, described reproduction time determining unit includes:
Audio frequency process subelement, it is configured for the described broadcast start time point arranging, according to the index literary composition of parsing
The recording starting time of this audio file included in the timestamp of each audio file in part content is with respect to described index
The difference of the corresponding recording starting time first of file, determines the play time corresponding to this audio file;And
Image procossing subelement, it is configured for the described broadcast start time point arranging, according to the index literary composition of parsing
The capture time of this image file included in the timestamp of each image file in part content is with respect to described index file
The difference of corresponding capture time first, determines the play time corresponding to this image file.
2. the equipment playing media data according to claim 1, wherein, described time started arranging unit is configured to use
In:
According to described index file arrange broadcast start time point so that client can described broadcast start time point it
The front audio file from described server acquisition predetermined quantity or predefined size and/or image file.
3. a kind of equipment playing media data, including:
Index file obtains and resolution unit, and it is arranged to obtain index file from server, and parses described index literary composition
Part, wherein said index file includes index information and the timestamp of audio file and/or image file;
Duration arranging unit, it is arranged to the timestamp in the index file content according to parsing, setting described index literary composition
The duration of the corresponding whole recorded broadcast file of part;
Time started arranging unit, it is arranged to arrange broadcast start time point according to user input;
Reproduction time determining unit, it is arranged to be determined according to the timestamp comprising in described index file and is commencing play out
Multiple play time after time point;
Audio frequency and/or image acquisition unit, its index information being arranged in the index file content according to parsing determines
The audio file name being associated with each play time and/or image file name, and according to determined by audio file
Title and/or image file name to obtain corresponding audio file and image file from described server;And
Broadcast unit, each play time that it is arranged to determining plays the sound associating with this play time respectively
Frequency file and/or image file;
Wherein, described reproduction time determining unit includes:
Audio frequency process subelement, it is configured for the described broadcast start time point arranging, according to the index literary composition of parsing
The recording starting time of this audio file included in the timestamp of each audio file in part content is with respect to described index
The difference of the corresponding recording starting time first of file, determines the play time corresponding to this audio file;And
Image procossing subelement, it is configured for the described broadcast start time point arranging, according to the index literary composition of parsing
The capture time of this image file included in the timestamp of each image file in part content is with respect to described index file
The difference of corresponding capture time first, determines the play time corresponding to this image file.
4. a kind of method playing media data, including:
Obtain index file from server, and parse described index file, wherein said index file include audio file and/or
The index information of image file and timestamp;
According to parsing index file content in index information cited in audio file name and/or image file name Lai
Obtain corresponding audio file and/or image file from described server;
Broadcast start time point is arranged according to described index file;
Multiple play time after broadcast start time point are determined according to the timestamp comprising in described index file;
Play the audio file associating with this play time and/or image file in each play time determining respectively;
And
Termly obtain up-to-date index file from server, to update current index file;
Wherein, the described multiple play time determining after broadcast start time point include:
Based on the described broadcast start time point of setting, the timestamp of each audio file in the index file content according to parsing
Included in this audio file recording starting time first recording starting time corresponding with respect to described index file it
Difference, determines the play time corresponding to this audio file;And
Based on the described broadcast start time point of setting, the timestamp of each image file in the index file content according to parsing
Included in the capture time first capture time corresponding with respect to described index file of this image file difference, determine should
Play time corresponding to image file.
5. the method playing media data according to claim 4, wherein, described setting according to described index file starts
The step of play time includes:
According to described index file arrange broadcast start time point so that client can described broadcast start time point it
The front audio file from described server acquisition predetermined quantity or predefined size and/or image file.
6. a kind of method playing media data, including:
Obtain index file from server, and parse described index file, wherein said index file include audio file and/or
The index information of image file and timestamp;
According to parsing index file content in timestamp, setting the corresponding whole recorded broadcast file of described index file when
Long;
Broadcast start time point is arranged according to user input;
Multiple play time after broadcast start time point are determined according to the timestamp comprising in described index file;
The audio file name that index information determination in index file content according to parsing is associated with each play time
Claim and/or image file name, and according to determined by audio file name and/or image file name come from described server
Obtain corresponding audio file and image file;And
Play the audio file associating with this play time and/or image file in each play time determining respectively;
Wherein, the described multiple play time determining after broadcast start time point include:
Based on the described broadcast start time point of setting, the timestamp of each audio file in the index file content according to parsing
Included in this audio file recording starting time first recording starting time corresponding with respect to described index file it
Difference, determines the play time corresponding to this audio file;And
Based on the described broadcast start time point of setting, the timestamp of each image file in the index file content according to parsing
Included in the capture time first capture time corresponding with respect to described index file of this image file difference, determine should
Play time corresponding to image file.
7. a kind of system playing media data, generates equipment and located at client including the media data located at server end
Media data playback equipment, wherein, described media data playback equipment includes playing as claimed in claim 1 or 2 media
The equipment of data and/or the equipment playing media data as claimed in claim 3;Described media data generates equipment and is used for giving birth to
Become media data and the media data of generation is stored in server, described media data includes audio file and/or image literary composition
Part and corresponding index file;And described media data playback equipment is used for obtaining described media number from described server
According to, and play described audio file and/or described image file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410213412.3A CN103974100B (en) | 2014-05-20 | 2014-05-20 | Media data playing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410213412.3A CN103974100B (en) | 2014-05-20 | 2014-05-20 | Media data playing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103974100A CN103974100A (en) | 2014-08-06 |
CN103974100B true CN103974100B (en) | 2017-02-15 |
Family
ID=51243065
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410213412.3A Expired - Fee Related CN103974100B (en) | 2014-05-20 | 2014-05-20 | Media data playing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103974100B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104410902B (en) * | 2014-12-04 | 2017-12-15 | 华为技术有限公司 | The player method and terminal of a kind of programme televised live, the generation method and equipment of index file |
CN105912705A (en) * | 2016-04-27 | 2016-08-31 | 乐视控股(北京)有限公司 | Acquisition method and device of multimedia file playing duration |
CN106993236B (en) * | 2017-04-01 | 2019-07-23 | 青岛海信电器股份有限公司 | A kind of video broadcasting method and terminal |
CN112133300B (en) * | 2019-06-25 | 2024-05-07 | 腾讯科技(深圳)有限公司 | Multi-device interaction method, related device and system |
CN110636340B (en) * | 2019-09-30 | 2021-11-09 | 普联技术有限公司 | Video file uploading method, storage device, terminal device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102004760A (en) * | 2010-11-03 | 2011-04-06 | 深圳市同洲电子股份有限公司 | Multimedia file storing and applying method, related device and system |
CN102123303A (en) * | 2011-03-25 | 2011-07-13 | 天脉聚源(北京)传媒科技有限公司 | Audio/video file playing method and system as well as transmission control device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007048348A (en) * | 2005-08-08 | 2007-02-22 | Toshiba Corp | Information storage medium, information reproducing apparatus, information reproducing method, and information reproducing program |
-
2014
- 2014-05-20 CN CN201410213412.3A patent/CN103974100B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102004760A (en) * | 2010-11-03 | 2011-04-06 | 深圳市同洲电子股份有限公司 | Multimedia file storing and applying method, related device and system |
CN102123303A (en) * | 2011-03-25 | 2011-07-13 | 天脉聚源(北京)传媒科技有限公司 | Audio/video file playing method and system as well as transmission control device |
Also Published As
Publication number | Publication date |
---|---|
CN103974100A (en) | 2014-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103974100B (en) | Media data playing method and device | |
CN103974143B (en) | A kind of method and apparatus for generating media data | |
US7603434B2 (en) | Central system providing previews of a user's media collection to a portable media player | |
US8316081B2 (en) | Portable media player enabled to obtain previews of a user's media collection | |
US8595330B2 (en) | Method, system and apparatus for uploading and downloading a caption file | |
CN104575550B (en) | Multimedia file title skipping method and electronic device | |
US20070244903A1 (en) | Collectively managing media bookmarks | |
EP2382781A1 (en) | Systems and methods for providing a license for media content over a network | |
US10334302B2 (en) | Method and system for segment based recording | |
EP2131364A1 (en) | Content playing device for retrieving and binding lacking content from the internet as copyright free sample. | |
US20100107082A1 (en) | Comment delivery system, terminal device, comment delivery method, and recording medium storing program therefor | |
KR20060002868A (en) | Information processing device, information processing method, and computer program | |
US20190026366A1 (en) | Method and device for playing video by each segment of music | |
CN108174133A (en) | A kind of trial video methods of exhibiting, device, electronic equipment and storage medium | |
CN107810638A (en) | By the transmission for skipping redundancy fragment optimization order content | |
US20100169942A1 (en) | Systems, methods, and apparatus for tagging segments of media content | |
WO2016161922A1 (en) | Video file processing method and device | |
JP5291448B2 (en) | Content production server and content production program | |
KR101520788B1 (en) | Method for Playing Movie Synchronous | |
US20150358261A1 (en) | Playback method and associated transmitting device, playback device, and communication system | |
US20070244985A1 (en) | User system providing previews of a user's media collection to an associated portable media player | |
KR101523622B1 (en) | Method for Playing Movie Synchronous | |
JP2022082453A (en) | Method, computer system and computer program for media consumption gap filling (gap filling using personalized injectable media) | |
US20220124383A1 (en) | Audio bullet screen processing method and device | |
JP4175430B2 (en) | Data processing apparatus and data processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170215 Termination date: 20200520 |