CN104202625B - A kind of media file processing method and equipment - Google Patents
A kind of media file processing method and equipment Download PDFInfo
- Publication number
- CN104202625B CN104202625B CN201410424950.7A CN201410424950A CN104202625B CN 104202625 B CN104202625 B CN 104202625B CN 201410424950 A CN201410424950 A CN 201410424950A CN 104202625 B CN104202625 B CN 104202625B
- Authority
- CN
- China
- Prior art keywords
- application
- media file
- playback
- position information
- information
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 7
- 230000004044 response Effects 0.000 claims abstract description 23
- 238000000034 method Methods 0.000 claims description 43
- 230000005540 biological transmission Effects 0.000 claims description 15
- 238000004140 cleaning Methods 0.000 claims description 7
- 238000012217 deletion Methods 0.000 claims description 3
- 230000037430 deletion Effects 0.000 claims description 3
- 230000000875 corresponding effect Effects 0.000 description 118
- 230000002596 correlated effect Effects 0.000 description 16
- 230000008569 process Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 9
- 238000004590 computer program Methods 0.000 description 7
- 238000003860 storage Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 238000011084 recovery Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 235000013399 edible fruits Nutrition 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of media file processing method and equipment.Receive the playback of media files request that application is sent, the identification information for playing position information and application is included in the playback of media files request, according to the broadcasting position information and the identification information-enquiry playback of media files strategy of the application, media file is played in the broadcasting position asked to determine whether the application has permission;If have permission, it is then the application selection media file from media file corresponding to the broadcasting position information, and return to playback of media files response to the application, the information for the media file selected is included in the playback of media files response, so that the information for the media file that the application is selected according to plays corresponding media file.During to real currently requested media file, according to the broadcasting corresponding media file of position acquisition of information.
Description
Technical field
The present invention relates to technical field of data processing, more particularly relates to a kind of media file processing method and equipment.
Background technology
With becoming increasingly popular for cable television, the customer volume of DTV is also growing day by day.DTV media file master
If referring to DTV distinctive media file publicity pattern, due to the sponsored program that DTV provides be need to play it is specific
Media file, so DTV media file refer to DTV provide distinctive platform:As set-top-box opening plays
Media file advertisement, play in TV guide media file, play in program description media file, broadcast in VOD system
Media file put etc..
At present, when launching media file (such as advertisement) on the set-top box, a kind of mode is media file one way propagation, is led to
Cable of cable TV is crossed to set top box transmission media file, and the content that display plays is the matchmaker being currently received with set top box
Body file is foundation, i.e., existing mode is issue-transmission-broadcasting;Another way is media file two-way propagation, number
Each application of word television set can directly go to dock headend media running paper system, directly run system from front end media file
The media file for needing to play is got in system, both sides are propagated in two-way propagation can mutually exchange and share information, also may be used
To keep reciprocal influence and mutual effect.
In the prior art, the problem of one way propagation is present be:Set top box needs to download substantial amounts of matchmaker when start
Body file, serious have impact on starting up speed;The problem of two-way propagation is present be:When each in digital television apply from
, it is necessary to which the media file for going parsing to acquire, is had while media file being got in headend media file operation system
The media play position information of body and the broadcast strategy of media file, also each media are controlled according to the broadcast strategy of media file
The reproduction time of file.
The content of the invention
The embodiment of the present invention provides a kind of media file processing method and equipment, during to real currently requested media file,
According to the broadcasting corresponding media file of position acquisition of information.
The embodiment of the present invention provides a kind of media file processing method, including:
Receive the playback of media files request that application is sent, in playback of media files request comprising play position information with
And the identification information of application;
According to the broadcasting position information and the identification information-enquiry playback of media files strategy of the application, to determine
State to apply whether to have permission and play media file in the broadcasting position asked;
It is the application selection media file from media file corresponding to the broadcasting position information if had permission,
And playback of media files response is returned to the application, include the media file phase selected in the playback of media files response
Information is closed, so that the media file relevant information that the application is selected according to plays corresponding media file.
It is preferred that described is the application selection media file from media file corresponding to the broadcasting position information, wrap
Include:
Broadcast specified in playback of media files strategy corresponding to playing position information according to the broadcasting position information inquiry
Put mode;
If the broadcast mode regulation plays according to priority orders, according to the priority of media file, broadcast from described
It is the application selection media file to put in media file corresponding to an information;Or
It is described answer from media file corresponding to the broadcasting position information if the broadcast mode provides shuffle
With random selection media file.
It is preferred that before the playback of media files request for receiving application and sending, in addition to:
The media file registration request that the application is sent is received, broadcasting position letter is included in the media file registration request
Breath and request carry out the identification information of the application of media file registration;
According to the broadcasting position information and the identification information-enquiry registration database of the application, if according to Query Result
It is determined that the identification information for playing position information and the application is also unregistered, then the mark of position information and the application will be played
Information is registered, will be corresponding with the identification information of the broadcasting position information and the application in the registration database
Hour of log-on is updated to current time;
According to the broadcasting position information inquiry policy database, to determine whether to have downloaded corresponding playback of media files
Strategy, if it is not, playback of media files strategy corresponding to the broadcasting position information then is downloaded from front end system, if downloading successfully,
The more new state that playback of media files strategy corresponding to the information of position is played described in the policy database is arranged to update
Finish, if failed download, the renewal of playback of media files strategy corresponding to the information of position will be played described in the policy database
State is arranged to update.
It is preferred that methods described also includes:
If having been registered according to the identification information that Query Result determines to play position information and the application, according to
The identification information of position information and the application is played, the hour of log-on corresponding to inquiry from the registration database, according to institute
State play position information inquired about from policy database corresponding to playback of media files strategy more new state;
If the hour of log-on inquired exceedes given threshold, and the playback of media files to the time interval of current time
The more new state of strategy then downloads playback of media files plan corresponding to the broadcasting position information to update from front end system
Omit, and the playback of media files strategy that the playback of media files policy update obtained with currently downloading locally preserves, and by described in
The more new state of playback of media files strategy corresponding to broadcasting position information described in policy database is arranged to renewal and finished.
It is preferred that after the identification information by broadcasting position information and the application is registered, in addition to:
File download request is sent to the front end system, the broadcasting position information is included in the file download request;
Receive the media corresponding with the broadcasting position information that the front end system asks to return according to the file download
File.
It is preferred that after the playback of media files request for receiving application and sending, in addition to:
The media file de-registration request that the application is sent is received, the broadcasting is included in the media file de-registration request
Position information and request carry out the identification information of the application of media file cancellation;
According to the broadcasting position information and the identification information-enquiry registration database of the application, if being tied according to inquiry
Fruit determines that the identification information of the application and the broadcasting position information have been registered, then judges in the registration database except institute
State and whether also have the identification information of other application corresponding with the broadcasting position information beyond the identification information of application;
If so, then from list of application corresponding to the broadcasting position information in the registration database, described answer is deleted
Identification information;
If it is not, the identification information of the broadcasting position information and the application is then deleted from the registration database, and
Playback of media files strategy corresponding to the broadcasting position is deleted from the policy database.
It is preferred that methods described also includes:
Registration database is traveled through, if the time interval of renewal time and current time corresponding to traversing broadcasting position exceedes
Setting time length, the then mark for playing the application in list of application corresponding to the information of position that will currently be traversed in registration database
Know information deletion;
According to the broadcasting position information inquiry policy database currently traversed, the broadcasting currently traversed is obtained
The playback of media files policy update state of position, if the more new state that current queries arrive is exit state, deletes the strategy
Playback of media files strategy corresponding with the broadcasting position information currently traversed in database, and deleted from the registration database
Except the broadcasting position information currently traversed.
The embodiment of the present invention provides a kind of media file processing equipment, including:
Ask media file unit:The playback of media files request sent for receiving application, the playback of media files
The identification information for playing position information and application is included in request;
It is determined that play bit location:For the identification information-enquiry media text according to the broadcasting position information and the application
Part broadcast strategy, media file is played in the broadcasting position asked to determine whether the application has permission;
Send media information unit:If for having permission, it is from media file corresponding to the broadcasting position information
The application selects media file, and returns to playback of media files response to the application, in the playback of media files response
Comprising the media file relevant information selected, so that the media file relevant information that the application is selected according to plays
Corresponding media file.
It is preferred that the transmission media information unit includes determining broadcast mode subelement,
For being provided in the playback of media files strategy corresponding to broadcasting position information according to the broadcasting position information inquiry
Broadcast mode;
If the broadcast mode regulation plays according to priority orders, according to the priority of media file, broadcast from described
It is the application selection media file to put in media file corresponding to an information;Or
It is described answer from media file corresponding to the broadcasting position information if the broadcast mode provides shuffle
With random selection media file.
It is preferred that the request media file unit includes registration subelement,
For receiving the media file registration request of the application transmission, broadcasting is included in the media file registration request
Position information and request carry out the identification information of the application of media file registration;
According to the broadcasting position information and the identification information-enquiry registration database of the application, if according to Query Result
It is determined that the identification information for playing position information and the application is also unregistered, then the mark of position information and the application will be played
Information is registered, by note corresponding with the identification information of the broadcasting position information and the application in the registration database
The volume time is updated to current time;
According to the broadcasting position information inquiry policy database, to determine whether to have downloaded corresponding playback of media files
Strategy, if it is not, playback of media files strategy corresponding to the broadcasting position information then is downloaded from front end system, if downloading successfully,
The more new state that playback of media files strategy corresponding to the information of position is played described in the policy database is arranged to update
Finish, if failed download, the renewal of playback of media files strategy corresponding to the information of position will be played described in the policy database
State is arranged to update.
It is preferred that the equipment also includes updating block,
If registered for the identification information for determining to play position information and the application according to Query Result, basis
The identification information for playing position information and the application, hour of log-on, root corresponding to inquiry from the registration database
According to it is described broadcasting position information inquired about from policy database corresponding to playback of media files strategy more new state;
If the hour of log-on inquired exceedes given threshold, and the playback of media files to the time interval of current time
The more new state of strategy then downloads playback of media files plan corresponding to the broadcasting position information to update from front end system
Omit, and the playback of media files strategy that the playback of media files policy update obtained with currently downloading locally preserves, and by described in
The more new state of playback of media files strategy corresponding to broadcasting position information described in policy database is arranged to renewal and finished.
It is preferred that the equipment also includes download unit,
For sending file download request to the front end system, broadcasting position letter is included in the file download request
Breath;
Receive the media corresponding with the broadcasting position information that the front end system asks to return according to the file download
File.
It is preferred that the request media file unit also includes nullifying subelement,
For receiving the media file de-registration request of the application transmission, included in the media file de-registration request described
Play the identification information of the application of position information and request progress media file cancellation;
According to the broadcasting position information and the identification information-enquiry registration database of the application, if according to Query Result
The identification information and the broadcasting position information for determining the application have been registered, then are judged in the registration database except described
Whether there is the identification information of other application corresponding with the broadcasting position information beyond the identification information of application;
If so, then from list of application corresponding to the broadcasting position information in the registration database, described answer is deleted
Identification information;
If it is not, the identification information of the broadcasting position information and the application is then deleted from the registration database, and
Playback of media files strategy corresponding to the broadcasting position is deleted from the policy database.
It is preferred that the equipment also includes cleaning unit,
For traveling through registration database, the time interval of renewal time and current time corresponding to position is played if traversing
More than setting time length, then the application played in list of application corresponding to the information of position that will currently be traversed in registration database
Identification information delete;
According to the broadcasting position information inquiry policy database currently traversed, the broadcasting currently traversed is obtained
The playback of media files policy update state of position, if the more new state that current queries arrive is exit state, deletes the strategy
Playback of media files strategy corresponding with the broadcasting position information currently traversed in database, and deleted from the registration database
Except the broadcasting position information currently traversed.
In the embodiment of the present invention, comprising broadcasting position information and application in the playback of media files request sent due to application
Identification information, therefore can according to it is described broadcasting position information and the application identification information-enquiry playback of media files plan
Slightly, media file is played in the play position asked to determine whether the application has permission, and in the case where having permission,
It is the application selection media file from media file corresponding to the broadcasting position information, and media text is returned to the application
Part plays response, comprising the media file relevant information selected in the playback of media files response, so that described apply root
Corresponding media file is played according to the media file relevant information selected.The embodiment of the present invention is applied to set top box
When, on the one hand, it can be based on playing the corresponding media file of position acquisition of information, be received with prior art set top box when start
Substantial amounts of media file is compared, and can improve set-top-box opening response speed;On the other hand, due to needing according to broadcasting position letter
Breath and the identification information-enquiry playback of media files strategy of the application, asked with determining whether the application has permission
Play position play media file, the flexibility of system can be improved by setting different authorities.
Brief description of the drawings
Fig. 1 is the method flow diagram that registration provided in an embodiment of the present invention plays position information;
Fig. 2 is the method flow diagram provided in an embodiment of the present invention nullified and play position information;
Fig. 3 is the flow chart provided in an embodiment of the present invention for obtaining, parsing playback of media files strategy;
Fig. 4 plays position information flow chart for provided in an embodiment of the present invention obtain;
Fig. 5 is the expired method flow diagram for playing position information of cleaning provided in an embodiment of the present invention;
Fig. 6 is resource downloading method flow chart provided in an embodiment of the present invention;
Fig. 7 is a kind of media file processing equipment schematic flow sheet that the present invention implements to provide.
Embodiment
In the embodiment of the present invention, the playback of media files request that application is sent is received, in the playback of media files request
Include the identification information for playing position information and application;According to the broadcasting position information and the identification information-enquiry of the application
Playback of media files strategy, media file is played in the play position asked to determine whether the application has permission;If
Have permission, then from being the application selection media file in media file corresponding to the broadcasting position information, and to the application
Playback of media files response is returned, the information for the media file selected is included in the playback of media files response, so that institute
State and play corresponding media file using the information for the media file selected according to.Asked using this method solve
During media file, it is impossible to the problem of according to position acquisition of information corresponding media file is played.
Front end system, terminal can be included in the network architecture used in the embodiment of the present invention.Wherein terminal includes broadcasting
Display and set top box are put, there can be an application in a broadcasting display, it is possibility to have multiple applications;And set top box and broadcast
Putting can be connected by wired mode or wireless mode between display, than being connected such as by WLAN, set top box
Can be that an Embedded system is embedded into broadcasting display.Wherein display can include television set, mobile terminal and
The electronic equipments such as computer.The television set can be intelligent TV set, and the mobile terminal can include mobile phone, PDA etc..
Below by taking the above-mentioned network architecture as an example, the embodiment of the present invention is described.
Registration database, policy database are preserved in the embodiment of the present invention, on set top box.Registration database includes should
With broadcasting position Registry and play position information table.Wherein, the reproduction time section that position information is used to indicate media file is played
And channel;Apply after the registration request for media play position is initiated, corresponding information is registered to by set top box according to the request
Above-mentioned registration database.Policy database includes playback of media files Policy Table.Apply and initiating for media play position
After registration request, set top box can download corresponding media play strategy from front end system and be stored in the policy database.
In addition, also preserving playlist in set top box, the relevant information of media file, such as media text are preserved in the playlist
The information such as the store path of part, the type of media file, the priority of media file.Set top box is literary from front end system downloads of media
After part, media file relevant information is stored in the playlist.
Table 1 shows a kind of structure for playing position Registry, and table 2 shows a kind of structure for playing position information table,
Table 3 shows a kind of structure of playback of media files Policy Table, and table 4 shows a kind of structure of playlist.
Table 1:
Table 2:
Table 3:
Table 4:
A kind of example is these are only, in actual applications, the information included in above-mentioned each table can be as needed above-mentioned
Increased and decreased on the basis of content.The information that above-mentioned each table is included can also use other data store organisations.
The preferred embodiments of the present invention are illustrated below in conjunction with Figure of description, it will be appreciated that described herein
Preferred embodiment is merely to illustrate and explain the present invention, and is not intended to limit the present invention.And in the case where not conflicting, this Shen
Please in embodiment and embodiment in feature can be mutually combined.
The present embodiments relate to register flow path, logout flow path, the expired media bit flow of cleaning, and media play stream
Journey, above-mentioned each flow is described in detail with reference to accompanying drawing separately below.
It is registration process provided in an embodiment of the present invention referring to Fig. 1, the process can be realized by set top box.The flow is main
Comprise the following steps:
In step 100, the media file registration request that the application is sent is received, in the playback of media files request
Include the identification information for playing position information and application.
In a step 101, according to the broadcasting position information and the identification information-enquiry registration database of the application, if
According to Query Result determine to play the identification information of position information and the application also it is unregistered (from step 102 to step 105),
Then in step 108, the identification information for playing position information and the application is registered, by the registration database with
The hour of log-on corresponding to identification information for playing position information and the application is updated to current time.
Suffered because broadcasting position information has already registered with the log-on message list of application plays position, so in the mark applied
When knowing information registering, it is only necessary to which the identification information of application is registered in the log-on message list of application plays position.
In step 107, according to the broadcasting position information inquiry policy database, corresponding to determining whether to have downloaded
Playback of media files strategy, if it is not, then in step 109, media text corresponding to the broadcasting position information is downloaded from front end system
Part broadcast strategy, if downloading successfully, in step 111, then it will be played described in the policy database corresponding to the information of position
The more new state of playback of media files strategy is arranged to renewal and finished, if failed download, in step 112, then by the plan
The more new state that playback of media files strategy corresponding to the information of position is slightly played described in database is arranged to update.
If in a step 102, determining whether to register according to Query Result, if so, then in step 103, being broadcast described
The identification information for putting an information and the application is registered in the log-on message list of application plays position.Wherein, position information will be played
, it is necessary to which request to be carried out to the identification information of the application of media file registration while the application plays position log-on message list of registration
It is registered in the log-on message list of application plays position, so ensures that the broadcasting position information of registration has at least corresponded to an application
Identification information.When set top box receives the playback of media files request that application is sent, the broadcasting position that will can be carried in request
The identification information for the application that playback of media files corresponding to information carries into request.It ensure that and play media corresponding to the information of position
The identification information of at least one application of file plays the media file.
If in step 105, judging that the identification information of application is registered in the information list of application plays position, then exist
In step 106, application plays position log-on message list is updated.
Because one plays the identification information that position information is possible to correspond to multiple applications, broadcast it is possible that occurring
Put an information to register in the log-on message list of application plays position, but multiple applications corresponding to playing position information may
Occur, some applications register in the log-on message list of application plays position, and application also not in application plays position
Registered in log-on message list.
In step 107, according to the broadcasting position information inquiry policy database, corresponding to determining whether to have downloaded
Playback of media files strategy, if so, then at step 104, set top box triggering downloads the broadcasting position information pair from front end system
The playback of media files strategy answered.
Wherein, playback of media files strategy corresponding to the set top box triggering front end system download broadcasting position information mainly wraps
Include:
End system sends the request for obtaining playback of media files strategy to set top box forward, and position is played wherein being carried in request
Information, front end system according to the broadcasting position information carried in the request and request received, by with play position information for media
File broadcast strategy is sent to set top box.Further, end system sends acquisition playback of media files strategy to set top box forward
Request is completed during registration.
Above-mentioned flow mainly describes the process that registration plays position information, wherein the process registered can applied to machine
Top box sends what is completed before playing media file request, and this register method ensure that to apply is playing matchmaker to set top box transmission
Body file request, set top box, which can not be spent, to be judged whether to need to update the playback of media files strategy played in the information list of position,
Directly go to inquire about playback of media files strategy, then according to playback of media files strategy and the authority of application, it is determined whether Xiang Ying
The media file information corresponding to the broadcasting position information carried in the broadcasting media file request of transmission is sent to application.
There is a method in which the process of registration is completed when being the First Contact Connections between application box set top box
's.In this way, apply when broadcasting media file request is sent to set top box, set top box can be sent out to application quickly
Go out response, but the response that set top box is sent may include two kinds of results:First, set top box is sent to application plays media text
Media file corresponding to the broadcasting position information carried in part request, another kind are that set top box sends Empty Medium file to application.
It is log off procedure provided in an embodiment of the present invention referring to Fig. 2, the process can be realized by set top box.The flow is main
Comprise the following steps:
In step 201, the media file de-registration request that the application is sent is received, in the media file de-registration request
The identification information of the application of media file cancellation is carried out comprising the broadcasting position information and request.
In step 202, according to the broadcasting position information and the identification information-enquiry registration database of the application;
In step 203, if determining that the identification information of the application and the broadcasting position information have been registered according to Query Result, in step
In rapid 204, judge whether there be the mark of other application in the registration database in addition to the identification information of the application
Information is corresponding with the broadcasting position information.
If so, then in step 209, from list of application corresponding to the broadcasting position information in the registration database
In, delete the identification information of the application.
Wherein, the identification information of application is only registered in the information registering information list of application plays position, so in deletion
When only delete the identification information of the application registered in the information registering information list of application plays position.
If in step 203, if determining the identification information of the application and the broadcasting position information according to Query Result
Do not register, then in step 211, terminate log off procedure.
If in step 204, if without other in addition to the identification information of the application in the registration database
The identification information of application is corresponding with the broadcasting position information, then in step 205, if the more new state in policy database is not
Exit state, then in step 211, terminate log off procedure.
Wherein, the identification information of multiple applications herein, the identification information of the application in step 203 can be included, also may be used
To be registered to the identification information of the application of application plays position log-on message list including other times.
For example the broadcasting position information of company A not only believes the broadcasting position of company A when register for the first time
Breath is registered in the log-on message list of application plays position, and needs to believe the mark for asking the application for carrying out media file registration
Breath is registered in the log-on message list of application plays position, and the identification information of the application of request progress media file registration here is false
Be set to 1 satellite TV, then company A broadcasting position information registering to while the log-on message list of application plays position, the frequency of 1 satellite TV
The identification information of road application is also registered in the log-on message list of application plays position.
But if sending media file registration request using to set top box, what is carried in the request is the broadcasting position of company A
Information and request carry out the identification information of the application of 2 satellite TVs of company A media file registration, due to the broadcasting position information of company A
Have already registered with the log-on message list of application plays position, and the identification information of the application of 2 satellite TVs is not registered to application plays
In the log-on message list of position, so, after set top box is received using the media file registration request sent, it is only necessary to by 2 satellite TVs
The identification information of application be registered in the log-on message list of application plays position.
If in step 205, if the more new state in policy database is exit state, in step 206, if plan
More new state slightly in database is not more new state, then in step 210, the more new state in policy database is note
Pin-shaped state.
Record has a UPDATESTATUS field in table 3, and the content of the display of UPDATESTATUS fields is 0,1,2
With 4, wherein, 0 represents not yet more new state;1 represents more new state;2 expression renewals finish;4 represent exit state.
If in step 206, if the more new state in policy database is more new state, in step 207,
More new state in registration database is set as exit state.
In a step 208, the mark letter of the broadcasting position information and the application is deleted from the registration database
Breath, and playback of media files strategy corresponding to the broadcasting position is deleted from the policy database.
Wherein, registration database includes application plays position information registering information list and plays position information list, if only
The identification information of one application is registered in the information registering information list of application plays position, when the identification information of the application is corresponding
The more new state played in the information list of position is exit state, then deletes full detail corresponding to the broadcasting position information, and is broadcast
Putting full detail corresponding to an information mainly includes the information in the information registering information list of application plays position and plays position information
Information in list.
Above-mentioned log off procedure, it can carry out when set-top-box opening or be received in set top box using transmission
Media file de-registration request after complete.If set top box powers off suddenly in log off procedure, then next time start when
Wait, set top box can complete cancellation action according to open state.When set top box is being unregistered, if application sends media
File playing request, and what is carried in asking is to nullify the request for playing position information, set top box can return to empty letter to application
Breath.
Referring to Fig. 3, for the process provided in an embodiment of the present invention for obtaining, parsing playback of media files strategy, the process can
Realized by set top box.The flow mainly comprises the following steps:
In step 301, playback of media files strategy corresponding to the information of position will be played described in the policy database
More new state is arranged to update;In step 302, position information will be played and is sent to front end system, receiving front-end system is returned
The playback of media files strategy returned;Wherein, first end system sends playback of media files strategy request to set top box forward, in the request
Carry and play position information, front end system according to the solicited message that receives and broadcasting position information, by with the broadcasting position information that receives
Corresponding playback of media files strategy is sent to set top box.
In step 303, if set top box receives playback of media files strategy from front end system;Then in step 304, solve
Analysis receives playback of media files strategy, obtains newly playing position information list.In step 305, if newly playing position information list has
Effect;Then within step 306, current media file broadcast strategy list is traveled through;
Wherein, playback of media files Policy List includes multiple playback of media files strategies.
In step 307, whether new media file broadcast strategy is compared with being in current media file broadcast strategy list
It is no to have same policy;If so, then in step 308, delete expired playback of media files strategy.
Wherein, by multiple playback of media files strategies in playback of media files Policy List and obtained new media file
Broadcast strategy compares one by one, if will have in playback of media files Policy List and new media file broadcast strategy identical media text
Part broadcast strategy, then it is assumed that the playback of media files strategy in playback of media files Policy List does not change, then will be above-mentioned
New media file broadcast strategy is deleted;If will be no identical with new media file broadcast strategy in playback of media files Policy List
Playback of media files strategy, then it is assumed that new media file broadcast strategy is newly-increased playback of media files strategy, it is necessary to will be new
Playback of media files strategy is added in playback of media files Policy List.
In a step 309, if current media file broadcast strategy list has been traveled through, if so, then in the step 310, sentencing
It is disconnected whether to have newly-increased playback of media files strategy;If so, then in step 311, renewal plays the media text in the information list of position
Part broadcast strategy.
As shown in table 3, there is a field SCHEDULEID in playback of media files Policy List, each media file is broadcast
Putting strategy has a unique SCHEDULEID, if a playback of media files strategy SCHEDULEID is in new media text
Exist in part broadcast strategy, be not present in current playback of media files strategy, then this is newly-increased playback of media files plan
Slightly;If playback of media files strategy SCHEDULEID is not present in new playback of media files strategy, in current media
Exist in file broadcast strategy, then this playback of media files strategy is expired playback of media files strategy;If media file
Broadcast strategy SCHEDULEID exists simultaneously in new playback of media files strategy and current playback of media files strategy, then
This playback of media files strategy does not update.
If in step 303, if set top box is not received by playback of media files strategy from front end system;Then in step
In 311, then the more new state that playback of media files strategy corresponding to the information of position is played described in the policy database is set
To update.
Because during the playback of media files strategy that set top box receiving front-end system is sent, if set top box is dashed forward
So power-off, or have other accidents, it is possible to the playback of media files plan for causing set top box not send front end system
Situation about slightly receiving completely.
If after front end system asks playback of media files strategy, front end system is returned as space-time to set top box, then protects
All information of the broadcasting position information are stayed, are then set to the more new status field in playback of media files Policy List more
Newly.
It is if in step 305, invalid if newly playing position information list;Then in step step 311, then by the strategy
The more new state that playback of media files strategy corresponding to the information of position is played described in database is arranged to update.
If in step 307, compare new media file broadcast strategy whether with current media file broadcast strategy list
In whether have same policy;If nothing, in step 312, it is believed that playback of media files strategy is without change.Then in step 313,
New media file broadcast strategy is deleted.
If in a step 309, if current media file broadcast strategy list has been traveled through, if it is not, then in step 306
In, travel through current media file broadcast strategy table.
If in the step 310, determine whether newly-increased playback of media files strategy;If nothing, in a step 314,
The newly-increased playback of media files strategy of playback of media files Policy List addition, newly-increased playback of media files plan is downloaded from front end system
Media file slightly.
In step 315, then playback of media files strategy corresponding to the information of position will be played described in the policy database
More new state be arranged to renewal and finish.
Renewal finishes only presentation medium file broadcast strategy and had added in policy data, but does not indicate that media file
Download and finished.
So after playback of media files Policy List with the addition of newly-increased playback of media files strategy, the newly-increased media text
Media file does not obtain also from front end system corresponding to part broadcast strategy, so set top box needs end system transmission media forward
File request, carry play position information in the request, front end system, will be with according to the solicited message that receives and broadcasting position information
Media file corresponding to the broadcasting position information received is sent to set top box.
Above-mentioned acquisition, parse playback of media files strategy and finally determine whether to broadcast from front end system downloads of media file
Put media file corresponding to strategy, can be completed when registration or after the completion of registration, set top box is idle
Period complete, the embodiment of the present invention was not limited the specific period for obtaining, parsing playback of media files strategy.
It is playback of media files process provided in an embodiment of the present invention referring to Fig. 4, the process can be realized by set top box.Should
Flow mainly comprises the following steps:
In step 400, the playback of media files request that application is sent is received, is included in the playback of media files request
The identification information of the application of position information and request progress playback of media files is played, the broadcasting position information is used to indicate media
The reproduction time section and channel of file.
In step 401, position information table is played according to the broadcasting position information and the identification information-enquiry of the application.
In step 402, whether channel ID is in white list;If not existing, in step 403, according to current time time
Go through playback of media files Policy Table.
Channel ID is judged whether in white list, is that the information of WHITELISTINGFO fields in table 2 determines.
Such as:The request of 1 satellite TV plays the media file of company A, the information of the WHITELISTINGFO fields in table 2, sentences first
Disconnected 1 satellite TV wherein have recorded the channel list that can not play media file whether in white list list in white list list, if
1 satellite TV is present in white list list, then it represents that 1 satellite TV can not play media file, and set top box can send a nothing to 1 satellite TV
Effect response.If 1 satellite TV is not present in white list list, then it represents that 1 satellite TV can play the media file of company A.
In step 404, judge whether it is correlated resources;If so, then in step 405, whether channel ID is in correlated resources
In information list;If in a step 406, according to priority or random selection media file.If so, in step 407
In, media file is present;If so, in step 408, renewal application plays position Registry.
Channel ID whether in correlated resources information list be according to CORRELATIVEFLAG fields in table 3 and
CORRELATIVECHENNELINFO fields determine.Such as:The request of 1 satellite TV plays the media file of company A, first, really
The whether relevant resource identification of fixed 1 satellite TV, in table 3, if CORRELATIVEFLAG fields are shown as 0, then it represents that 1 satellite TV is not
It is correlated resources;If CORRELATIVEFLAG fields are shown as 1, then it represents that 1 satellite TV is correlated resources.Wherein, correlated resources are
It is set in advance, such as, correlated resources are set as local satellite TV, then if 1 satellite TV is certain satellite TV of the Northwest, then 1 satellite TV
It is exactly correlated resources.Need further exist for judging 1 satellite TV whether in correlated resources information list, correlated resources information list can
With the local satellite TV including audience ratings top 10, either including East China satellite TV or including satellite TV of the Northwest etc..If
What correlated resources information list included is East China satellite TV, then can determine 1 satellite TV not in correlated resources information list
In, so 1 satellite TV can not play the media file of company A;If what correlated resources information list included is satellite TV of the Northwest,
1 satellite TV can so be determined in correlated resources information list, so 1 satellite TV can play the media file of company A.
Further, if broadcast mode regulation plays according to priority orders, according to the broadcasting position information pair
The priority for the media file answered, it is the application selection media file from media file corresponding to the broadcasting position information;
Or
It is described answer from media file corresponding to the broadcasting position information if the broadcast mode provides shuffle
With random selection media file.
There is a PLAYMOD field in table 3, if the field is shown 0, then it represents that the mode of playback of media files is
Played in order;If the field is shown 1, then it represents that the mode of playback of media files is shuffle.
For example the request of 1 satellite TV plays the media file of company A, wherein, the media file of company A can include A1 media
File, A2 media files, A3 media files or A4 media files etc..If PLAYMOD fields are shown 0 in table 3, from A
At will one media file of selection allows 1 satellite TV to play in the media file of company;If PLAYMOD fields are shown 1 in table 3,
Then need to play media file according to the order of priority.
There is an ADINDX field in table 4, the numerical value shown in the field is smaller, then it represents that corresponding media file
Priority is higher.For example the numerical value that A1 media files are shown is that the numerical value that 3, A2 media files are shown is that 5, A3 media files are shown
Numerical value be that the numerical value that 2, A4 media files are shown is 1, then it is A4 media that can determine that 1 satellite TV needs the media file that plays
File.
Further, can be from being all shown as 0 if the numerical value all 0 shown in ADINDX fields in table 4
It is application one media file of random selection in media file.
In step 409, judge whether playback of media files strategy needs to update;If desired, in step 413, in the past
End system downloads of media file broadcast strategy.
If in step 402, whether channel ID is in white list;If in step 415, terminating playing request
Process.
If it is correlated resources in step 404, to judge whether;If it is not, then in a step 406, according to priority or
Randomly choose media file.
If in step 405, whether channel ID is in correlated resources information list;If not existing, in step 403,
Playback of media files Policy Table is traveled through according to current time.
If in a step 406, according to priority or random selection media file;If it is not, then in step 414, time
End is gone through, selects default media file.If in step 407, media file is present;If nothing, in step 412, in the past
End system downloads of media file.
Wherein, media file whether there is what is mainly judged according to following method, such as, the request of 1 satellite TV plays company A
Media file, wherein, the ADINDX fields of the media file of company A in table 4 are shown, are respectively:A1 media files are shown
Numerical value be that the numerical value that 3, A2 files are shown is that the numerical value that 5, A3 media files are shown is that the numerical value that 2, A4 media files are shown is
1。
The media file that 1 satellite TV, which can be determined, to be needed to play is A4 media files, but because media file is machine top
For box forward after end system hair media file download request, front end system will be with playing position according to the broadcasting position information carried in request
Media file corresponding to information is sent to set top box, and set top box is when from front end system downloads of media file, may
It is de-energized suddenly.For example have multiple files in media file corresponding to the broadcasting position information of company A, it is possible that A1 can have been downloaded
Media file, A2 media files and A3 media files, A4 media files are not downloaded only and completed, set top box is just de-energized
.So, it is necessary to judge whether A4 media files are deposited after the media file for determining that 1 satellite TV needs play is A4 media files
.
If in step 409, judging whether playback of media files strategy needs to update;If need not, in step 410
In, media file information is sent to application.
Include multiple fields such as ADMEDIACLASS, PLAYDUR, PLAYVIDEOOFFSET and ADURL in table 4, wherein
ADMEDIACLASS field records are the specific classifications for playing media, mainly including video media file, picture media text
Part, print media's file and binary media file;PLAYDUR field records be media file playing duration;
PLAYVIDEOOFFSET field records are offsets when media file commences play out;ADURL field records are media texts
Store path of the part in set top box.
The media file information that set top box is sent to application can be store path of the media file in set top box, specific
The information such as offset when commencing play out of classification information and media file of broadcasting media.
The media file information that set top box is sent to application can also be the full content of media file, specifically play matchmaker
The information such as the offset when classification information and media file of body commence play out.
Referring to Fig. 5, for the expired broadcasting position information process of cleaning provided in an embodiment of the present invention, the process can be real by set top box
It is existing.The flow mainly comprises the following steps:
In step 501, registration database is traveled through;In step 502, traversed play position corresponding to renewal time with
The time interval of current time exceedes setting time length;Then in step 506, then will currently traverse in registration database
The identification information for playing the application in list of application corresponding to the information of position is deleted.
In step 508, according to the broadcasting position information inquiry policy database currently traversed, obtain described current
The playback of media files policy update state of the broadcasting position traversed, if the more new state that current queries arrive is exit state;
In step 510, then playback of media files plan corresponding with the broadcasting position information currently traversed in the policy database is deleted
Slightly, and the broadcasting position information currently traversed is deleted from the registration database.
In step 503, the identification information that how many is applied according to broadcasting position information inquiry is registered to application plays position
In log-on message list.
If in step 504, if an only application registration;If so, then in step 505, by registration database
In be already registered for play position information corresponding to full detail delete.Wherein, the mark of only one application is mainly judged whether
Information registering is known into the log-on message list of application plays position.
If in step 507, registration database has been traveled through;If it is not, then in step 502, it is right broadcasting position is traversed
The renewal time answered and the time interval of current time exceed setting time length.
If in step 507, registration database has been traveled through;If so, then in step 508, according to the current traversal
The broadcasting position information inquiry policy database arrived, obtain the playback of media files policy update of the broadcasting position currently traversed
State, if the more new state that current queries arrive is exit state.
In step 509, registration database is traveled through.
If in step 511, registration database has been traveled through;If so, then in step 512, delete all temporary medias
File.
If in step 511, registration database has been traveled through;If it is not, then in step 509, travel through registration database.
In step 513, it is that the state updated is set that all more new states in state table will be updated in registration database
It is set to and not yet updates.
Set top box clear up it is expired broadcasting position information when, not only delete the expired broadcasting position in registration database
Information and expired application plays position log-on message, and the media file strategy in policy database is deleted, while will be
Temporary media file in system is all deleted.Playback of media files strategy corresponding to the information of position will be played described in policy database
Revert to more new state.
Referring to Fig. 6, process is managed for resource downloading provided in an embodiment of the present invention, the process can be realized by set top box.Should
Flow mainly comprises the following steps:
In step 601, start to download.
The resource file that set top box is downloaded from front end system mainly has playback of media files strategy and media file.
Wherein, set top box need from front end system downloads of media file broadcast strategy when, first forward end system send media
File broadcast strategy download request, broadcasting position information corresponding with playback of media files strategy, front end system are carried in the request
System is according to the download request received and plays position information, and playback of media files strategy corresponding with playing position information is sent to
Set top box.
Wherein, set top box need from front end system downloads of media file when, first forward end system send media file download
Request, carries broadcasting position information corresponding with media file in the request, front end system according to the download request that receives with
Position information is played, media file corresponding with playing position information is sent to set top box.
In step 602, calculate and taken storage size.
In step 603, wait for downloads message.
In step 604, resource download request message;If so, then in step 605, judge whether memory space is full;
If it is not, then in step 606, resource downloading task list has identical request;If so, then in step 603, wait for downloads and disappear
Breath.
Wherein, when set top box is from front end system downloads of media file broadcast strategy or media file, set top box
It may be powered off suddenly, so corresponding download may have not been completed., can then when set top box start next time
The resource file do not downloaded when the last time is shut down from front end system has been downloaded.
In step 607, establishing resource downloading task, during addition resource downloading task is lined up.
In step 608, available free download thread;If so, then in step 609, judge whether memory space reaches
Limit.
In step 610, if recovery memory space;If so, then in step 611, reclaim memory space.
In step 612, memory space reaches the upper limit;If so, then in step 617, memory space is reclaimed.
If in step 604, resource download request message;If it is not, then in step 613, if download end notification
Message;If so, then in step 614, renewal has accounted for storage size.
If in step 605, judge whether memory space is full, if so, then in step 603, wait for downloads message.
If in step 606, resource downloading task list has identical request;If nothing, in step 607, create
Resource downloading task, during addition resource downloading task is lined up.
If in step 608, available free download thread;If nothing, in step 603, wait for downloads message.
If in step 609, judge whether memory space reaches the upper limit;If so, then in step 610, if recovery
Memory space;If so, then in step 611, reclaim memory space.
If in step 610, if recovery memory space;If it is not, then in step 603, wait for downloads message.
If in step 612, memory space reaches the upper limit;If it is not, then in step 616, from resource downloading task team
Row head takes out a downloading task, starts resource downloading thread.
If in step 613, if download end notification message;If it is not, then in step 617, memory space is reclaimed.
In step 615, resource downloading task queue is not sky;If so, then in step 609, judge that memory space is
It is no to reach the upper limit.
If in step 615, resource downloading task queue is not sky;If it is not, then in step 603, wait for downloads and disappear
Breath.
Set top box is during resource downloading is carried out, including establishing resource download thread, control resource downloading Thread Count
Amount, recovery memory space etc..Wherein, resource file includes playback of media files strategy and media file, if playback of media files
Strategy or media file have been downloaded without whole, the playback of media files strategy or media file storage that will only download
In set top box.
In the embodiment of the present invention, comprising broadcasting position information and application in the playback of media files request sent due to application
Identification information, wherein, the position information that plays is used to indicate the reproduction time section and channel of media file, therefore can be according to institute
The identification information-enquiry playback of media files strategy for playing position information and the application is stated, to determine whether the application has the right
Limit and play media file in the play position asked, in the case where having permission, from media corresponding to the broadcasting position information
It is the application selection media file in file, and playback of media files response is returned to the application, the media file is broadcast
The information that the media file selected is included in response is put, so that the information for the media file that the application is selected according to
Play corresponding media file.
When the embodiment of the present invention is applied into set top box, on the one hand, can be based on playing the corresponding media text of position acquisition of information
Part, compared with receiving substantial amounts of media file when prior art set top box is in start, set-top-box opening response speed can be improved
Degree;On the other hand, due to needing the identification information-enquiry playback of media files according to the broadcasting position information and the application
Strategy, media file is played in the play position asked to determine whether the application has permission, can be different by setting
Authority improves the flexibility of system.
For above method flow, the embodiment of the present invention also provides a kind of user equipment, and the particular content of these equipment can
To implement with reference to the above method, will not be repeated here.
The embodiments of the invention provide a kind of equipment for managing advertisement and playing, as shown in fig. 7, management advertisement broadcasting is set
It is standby to include:Media file unit 71 is asked, determines to play bit location 72 and sends media information unit 73.
Ask media file unit 71:The playback of media files request sent for receiving application, the media file are broadcast
Put in request comprising the identification information for playing position information and application;
It is determined that play bit location 72:For the identification information-enquiry media according to the broadcasting position information and the application
File broadcast strategy, media file is played in the broadcasting position asked to determine whether the application has permission;
Send media information unit 73:If for having permission, from media file corresponding to the broadcasting position information
Media file is selected for the application, and playback of media files response, the playback of media files response are returned to the application
In comprising the media file relevant information selected so that the media file relevant information that the application is selected according to is broadcast
Put corresponding media file.
Further, the transmission media information unit 73 includes determining broadcast mode subelement 731,
For being provided in the playback of media files strategy corresponding to broadcasting position information according to the broadcasting position information inquiry
Broadcast mode;
If the broadcast mode regulation plays according to priority orders, according to the priority of media file, broadcast from described
It is the application selection media file to put in media file corresponding to an information;Or
It is described answer from media file corresponding to the broadcasting position information if the broadcast mode provides shuffle
With random selection media file.
Further, the request media file unit 71 includes registration subelement 711,
For receiving the media file registration request of the application transmission, broadcasting is included in the media file registration request
Position information and request carry out the identification information of the application of media file registration;
According to the broadcasting position information and the identification information-enquiry registration database of the application, if being tied according to inquiry
Fruit determines to play position information and the identification information of the application is also unregistered, then will play the mark of position information and the application
Know information to be registered, will be corresponding with the identification information of the broadcasting position information and the application in the registration database
Hour of log-on is updated to current time;
According to the broadcasting position information inquiry policy database, to determine whether to have downloaded corresponding playback of media files
Strategy, if it is not, playback of media files strategy corresponding to the broadcasting position information then is downloaded from front end system, if downloading successfully,
The more new state that playback of media files strategy corresponding to the information of position is played described in the policy database is arranged to update
Finish, if failed download, the renewal of playback of media files strategy corresponding to the information of position will be played described in the policy database
State is arranged to update.
Further, the equipment also includes updating block 74,
If registered for the identification information for determining to play position information and the application according to Query Result, basis
The identification information for playing position information and the application, hour of log-on, root corresponding to inquiry from the registration database
According to it is described broadcasting position information inquired about from policy database corresponding to playback of media files strategy more new state;
If the hour of log-on inquired exceedes given threshold, and the playback of media files to the time interval of current time
The more new state of strategy then downloads playback of media files plan corresponding to the broadcasting position information to update from front end system
Omit, and the playback of media files strategy that the playback of media files policy update obtained with currently downloading locally preserves, and by described in
The more new state of playback of media files strategy corresponding to broadcasting position information described in policy database is arranged to renewal and finished.
Further, the equipment also includes download unit 75,
For sending file download request to the front end system, broadcasting position letter is included in the file download request
Breath;
Receive the media corresponding with the broadcasting position information that the front end system asks to return according to the file download
File.
Further, the request media file unit 71 also includes nullifying subelement 712,
For receiving the media file de-registration request of the application transmission, included in the media file de-registration request described
Play the identification information of the application of position information and request progress media file cancellation;
According to the broadcasting position information and the identification information-enquiry registration database of the application, if according to Query Result
The identification information and the broadcasting position information for determining the application have been registered, then are judged in the registration database except described
Whether there is the identification information of other application corresponding with the broadcasting position information beyond the identification information of application;
If so, then from list of application corresponding to the broadcasting position information in the registration database, described answer is deleted
Identification information;
If it is not, the identification information of the broadcasting position information and the application is then deleted from the registration database, and
Playback of media files strategy corresponding to the broadcasting position is deleted from the policy database.
Further, the equipment includes cleaning unit 76,
For traveling through registration database, the time interval of renewal time and current time corresponding to position is played if traversing
More than setting time length, then the application played in list of application corresponding to the information of position that will currently be traversed in registration database
Identification information delete;
According to the broadcasting position information inquiry policy database currently traversed, the broadcasting currently traversed is obtained
The playback of media files policy update state of position, if the more new state that current queries arrive is exit state, deletes the strategy
Playback of media files strategy corresponding with the broadcasting position information currently traversed in database, and deleted from the registration database
Except the broadcasting position information currently traversed.
For a kind of media file processing equipment of the present embodiment, including request media file unit, determine play position
Unit, media information unit, updating block, download unit and cleaning unit are sent, wherein, request media file unit also includes
Register subelement and nullify subelement, sending media information unit also includes determining broadcast mode subelement.Said units and/or
Subelement can be arranged in same entity apparatus or multiple entity devices being independently arranged, the embodiment of the present invention
Specific restriction is not done.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the application to the application
God and scope.So, if these modifications and variations of the application belong to the scope of the application claim and its equivalent technologies
Within, then the application is also intended to comprising including these changes and modification.
Claims (14)
- A kind of 1. media file processing method, it is characterised in that including:The playback of media files request of reception application transmission, included in the playback of media files request and play position information and answer Identification information;According to the broadcasting position information and the identification information-enquiry playback of media files strategy of the application, to determine described answer With whether having permission and play media file in the broadcasting position asked;It is the application selection media file from media file corresponding to the broadcasting position information if had permission, and to The application returns to playback of media files response, and the letter for the media file selected is included in the playback of media files response Breath, so that the information for the media file that the application is selected according to plays corresponding media file.
- 2. method as claimed in claim 1, it is characterised in that described is institute from media file corresponding to the broadcasting position information State using selection media file, including:Broadcasting side specified in playback of media files strategy corresponding to playing position information according to the broadcasting position information inquiry Formula;If the broadcast mode regulation plays according to priority orders, according to the priority of media file, from the broadcasting position It is the application selection media file in media file corresponding to information;OrIf broadcast mode regulation shuffle, be the application from media file corresponding to the broadcasting position information with Machine selects media file.
- 3. method as claimed in claim 1, it is characterised in that before the playback of media files request for receiving application and sending, Also include:Receive the media file registration request that the application is sent, in the media file registration request comprising play position information with And request carries out the identification information of the application of media file registration;According to the broadcasting position information and the identification information-enquiry registration database of the application, if being determined according to Query Result Broadcasting position information and the identification information of the application are also unregistered, then will play the identification information of position information and the application Registered, during by the registration database with registration corresponding to identification information of the broadcasting position information and the application Between be updated to current time;According to the broadcasting position information inquiry policy database, to determine whether to have downloaded corresponding playback of media files plan Slightly,, will if downloading successfully if it is not, then downloading playback of media files strategy corresponding to the broadcasting position information from front end system The more new state of playback of media files strategy corresponding to broadcasting position information described in the policy database is arranged to renewal and finished, If failed download, the more new state of playback of media files strategy corresponding to the information of position will be played described in the policy database It is arranged to update.
- 4. method as claimed in claim 3, it is characterised in that methods described also includes:If registered according to the identification information that Query Result determines to play position information and the application, according to the broadcasting Position information and the identification information of the application, hour of log-on corresponding to inquiry, broadcasts according to described from the registration database Put an information inquired about from policy database corresponding to playback of media files strategy more new state;If the hour of log-on inquired exceedes given threshold, and the playback of media files strategy to the time interval of current time More new state to update, then download playback of media files strategy corresponding to the broadcasting position information from front end system, and The playback of media files strategy that the playback of media files policy update obtained with currently downloading locally preserves, and by the strategy number Renewal is arranged to according to the more new state for playing playback of media files strategy corresponding to the information of position described in storehouse to finish.
- 5. such as the methods described of claim 3 or 4, it is characterised in that described to believe the mark for playing position information and the application After breath is registered, in addition to:File download request is sent to the front end system, the broadcasting position information is included in the file download request;Receive the media file corresponding with the broadcasting position information that the front end system asks to return according to the file download.
- 6. method as claimed in claim 1, it is characterised in that after the playback of media files request for receiving application and sending, Also include:The media file de-registration request that the application is sent is received, broadcasting position letter is included in the media file de-registration request Breath and request carry out the identification information of the application of media file cancellation;The identification information-enquiry that the application of media file cancellation is carried out according to the broadcasting position information and request registers number According to storehouse, if determining that request carries out the identification information and broadcasting position letter of the application of media file cancellation according to Query Result Breath has been registered, then is judged in the registration database except request carries out the identification information of the application of media file cancellation Whether there is the identification information of other application corresponding with the broadcasting position information in addition;If so, then from list of application corresponding to the broadcasting position information in the registration database, removal request carries out matchmaker The identification information for the application that body file is nullified;If it is not, then deleted from the registration database described in the broadcasting position information and request progress media file cancellation The identification information of application, and playback of media files strategy corresponding to the broadcasting position is deleted from the policy database.
- 7. method as claimed in claim 1, it is characterised in that methods described also includes:Registration database is traveled through, exceedes setting if traversing and playing the time interval of renewal time and current time corresponding to position Time span, then the mark for playing the application in list of application corresponding to the information of position currently traversed in registration database is believed Breath is deleted;According to the broadcasting position information inquiry policy database currently traversed, the broadcasting position currently traversed is obtained Playback of media files policy update state, if the more new state that current queries arrive is exit state, delete the policy data Playback of media files strategy corresponding with the broadcasting position information currently traversed in storehouse, and institute is deleted from the registration database State the broadcasting position information currently traversed.
- A kind of 8. media file processing equipment, it is characterised in that including:Ask media file unit:The playback of media files request sent for receiving application, the playback of media files request In include the identification information for playing position information and application;It is determined that play bit location:For being broadcast according to the identification information-enquiry media file of the broadcasting position information and the application Strategy is put, media file is played in the broadcasting position asked to determine whether the application has permission;Send media information unit:If it is described from media file corresponding to the broadcasting position information for having permission Playback of media files response is returned using selection media file, and to the application, is included in the playback of media files response The media file relevant information selected, so that the media file relevant information that the application is selected according to plays accordingly Media file.
- 9. equipment as claimed in claim 8, it is characterised in that the transmission media information unit includes determining that broadcast mode is single Member,For being broadcast specified in the playback of media files strategy corresponding to broadcasting position information according to the broadcasting position information inquiry Put mode;If the broadcast mode regulation plays according to priority orders, according to the priority of media file, from the broadcasting position It is the application selection media file in media file corresponding to information;OrIf broadcast mode regulation shuffle, be the application from media file corresponding to the broadcasting position information with Machine selects media file.
- 10. equipment as claimed in claim 8, it is characterised in that the request media file unit includes registration subelement,For receiving the media file registration request of the application transmission, broadcasting position letter is included in the media file registration request Breath and request carry out the identification information of the application of media file registration;According to the broadcasting position information and the identification information-enquiry registration database of the application, if being determined according to Query Result Broadcasting position information and the identification information of the application are also unregistered, then will play the identification information of position information and the application Registered, during by the registration database with registration corresponding to identification information of the broadcasting position information and the application Between be updated to current time;According to the broadcasting position information inquiry policy database, to determine whether to have downloaded corresponding playback of media files plan Slightly,, will if downloading successfully if it is not, then downloading playback of media files strategy corresponding to the broadcasting position information from front end system The more new state of playback of media files strategy corresponding to broadcasting position information described in the policy database is arranged to renewal and finished, If failed download, the more new state of playback of media files strategy corresponding to the information of position will be played described in the policy database It is arranged to update.
- 11. equipment as claimed in claim 10, it is characterised in that the equipment also includes updating block,If having been registered for the identification information for determining to play position information and the application according to Query Result, according to The identification information of position information and the application is played, the hour of log-on corresponding to inquiry from the registration database, according to institute State play position information inquired about from policy database corresponding to playback of media files strategy more new state;If the hour of log-on inquired exceedes given threshold, and the playback of media files strategy to the time interval of current time More new state to update, then download playback of media files strategy corresponding to the broadcasting position information from front end system, and The playback of media files strategy that the playback of media files policy update obtained with currently downloading locally preserves, and by the strategy number Renewal is arranged to according to the more new state for playing playback of media files strategy corresponding to the information of position described in storehouse to finish.
- 12. the equipment as described in claim 10 or 11, it is characterised in that the equipment also includes download unit,For sending file download request to the front end system, the broadcasting position information is included in the file download request;Receive the media file corresponding with the broadcasting position information that the front end system asks to return according to the file download.
- 13. equipment as claimed in claim 8, it is characterised in that the request media file unit also includes nullifying subelement,For receiving the media file de-registration request of the application transmission, the broadcasting is included in the media file de-registration request Position information and request carry out the identification information of the application of media file cancellation;The identification information-enquiry that the application of media file cancellation is carried out according to the broadcasting position information and request registers number According to storehouse, if determining that request carries out the identification information and broadcasting position letter of the application of media file cancellation according to Query Result Breath has been registered, then is judged in the registration database except request carries out the identification information of the application of media file cancellation Whether there is the identification information of other application corresponding with the broadcasting position information in addition;If so, then from list of application corresponding to the broadcasting position information in the registration database, removal request carries out matchmaker The identification information for the application that body file is nullified;If it is not, then deleted from the registration database described in the broadcasting position information and request progress media file cancellation The identification information of application, and playback of media files strategy corresponding to the broadcasting position is deleted from the policy database.
- 14. equipment as claimed in claim 8, it is characterised in that the equipment also includes cleaning unit,For traveling through registration database, if the time interval of renewal time and current time corresponding to traversing broadcasting position exceedes Setting time length, the then mark for playing the application in list of application corresponding to the information of position that will currently be traversed in registration database Know information deletion;According to the broadcasting position information inquiry policy database currently traversed, the broadcasting position currently traversed is obtained Playback of media files policy update state, if the more new state that current queries arrive is exit state, delete the policy data Playback of media files strategy corresponding with the broadcasting position information currently traversed in storehouse, and institute is deleted from the registration database State the broadcasting position information currently traversed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410424950.7A CN104202625B (en) | 2014-08-26 | 2014-08-26 | A kind of media file processing method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410424950.7A CN104202625B (en) | 2014-08-26 | 2014-08-26 | A kind of media file processing method and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104202625A CN104202625A (en) | 2014-12-10 |
CN104202625B true CN104202625B (en) | 2018-01-02 |
Family
ID=52087840
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410424950.7A Active CN104202625B (en) | 2014-08-26 | 2014-08-26 | A kind of media file processing method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104202625B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106293681B (en) * | 2015-06-13 | 2020-04-10 | 福建出彩教育科技有限公司 | Broadcasting device capable of automatically updating music |
WO2019134171A1 (en) * | 2018-01-08 | 2019-07-11 | 青岛海信电器股份有限公司 | Program playback control method and terminal |
CN111669667B (en) * | 2019-03-06 | 2021-08-03 | 中兴通讯股份有限公司 | Content display control method and device, server and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101022353A (en) * | 2006-10-10 | 2007-08-22 | 鲍东山 | Directional stream media advertisement insert-cut system |
CN101325704A (en) * | 2008-07-16 | 2008-12-17 | 中兴通讯股份有限公司 | Method for inter cut medium in handset television |
CN101778120A (en) * | 2009-01-12 | 2010-07-14 | 华为终端有限公司 | Mobile advertisement processing method, device and terminal equipment thereof |
CN102509234A (en) * | 2011-12-28 | 2012-06-20 | 乐享(北京)文化传媒有限公司 | Method and system for advertisement display based on intelligent mobile terminal based |
CN102542477A (en) * | 2010-12-31 | 2012-07-04 | 上海恺达广告有限公司 | Media information scheduling method and device in mobile equipment |
CN103593791A (en) * | 2013-11-07 | 2014-02-19 | 广州优蜜信息科技有限公司 | Mobile advertisement putting method and system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100505630C (en) * | 2007-03-13 | 2009-06-24 | 腾讯科技(深圳)有限公司 | A method and system for broadcasting buffered advertisement in polling mode under the network living broadcast environment |
CN101159840A (en) * | 2007-11-30 | 2008-04-09 | 深圳市茁壮网络技术有限公司 | Method and device of adding advertisement data to digital television data |
-
2014
- 2014-08-26 CN CN201410424950.7A patent/CN104202625B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101022353A (en) * | 2006-10-10 | 2007-08-22 | 鲍东山 | Directional stream media advertisement insert-cut system |
CN101325704A (en) * | 2008-07-16 | 2008-12-17 | 中兴通讯股份有限公司 | Method for inter cut medium in handset television |
CN101778120A (en) * | 2009-01-12 | 2010-07-14 | 华为终端有限公司 | Mobile advertisement processing method, device and terminal equipment thereof |
CN102542477A (en) * | 2010-12-31 | 2012-07-04 | 上海恺达广告有限公司 | Media information scheduling method and device in mobile equipment |
CN102509234A (en) * | 2011-12-28 | 2012-06-20 | 乐享(北京)文化传媒有限公司 | Method and system for advertisement display based on intelligent mobile terminal based |
CN103593791A (en) * | 2013-11-07 | 2014-02-19 | 广州优蜜信息科技有限公司 | Mobile advertisement putting method and system |
Also Published As
Publication number | Publication date |
---|---|
CN104202625A (en) | 2014-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106101851B (en) | A kind of whole realization method and system of barrage service | |
CN106454493A (en) | Method for inquiring currently played television program information and smart TV | |
US10397641B2 (en) | Methods and systems for content management | |
CN106717012A (en) | Cloud-based media content management | |
WO2015050651A1 (en) | Downloading media objects | |
CN101882289A (en) | Advertisement playing control system and method thereof | |
CN104202625B (en) | A kind of media file processing method and equipment | |
US20140297810A1 (en) | Method For Processing Information And Server | |
KR20150097547A (en) | Intelligent prefetching of recommended-media content | |
CN107071549A (en) | Many player fast switch over method, device and storage medium under single decoder | |
CN102789804B (en) | Video broadcasting method, player, monitor supervision platform and audio/video player system | |
US20240292042A1 (en) | Intelligent download of content | |
CN110062274A (en) | A kind of video file caching method, device, equipment and readable storage medium storing program for executing | |
CN103908779A (en) | Content providing system, content providing device, client device and control method | |
CN108174227A (en) | Display methods, device and the storage medium of virtual objects | |
US9332421B2 (en) | Method and apparatus for random access to multimedia content in wireless communication system | |
CN106162231A (en) | The method and device that a kind of net cast turning point is broadcast | |
CN106937180A (en) | A kind of player method and device of virtual reality video | |
CN104837030A (en) | Method and system for realizing fast-forward/fast-backward playing via HTTP streaming media | |
CN104902297B (en) | The method and device that a kind of program plays | |
CN104967879B (en) | Video broadcasting method and device | |
WO2017080152A1 (en) | Data synchronization method and device | |
CN103369378B (en) | For the method and apparatus using content channels | |
CN105828110A (en) | Business object putting method and device and server | |
US20150289010A1 (en) | Persistent review buffer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No. Patentee after: Hisense Visual Technology Co., Ltd. Address before: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No. Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |