CN104202625A - Method and device for processing media file - Google Patents

Method and device for processing media file Download PDF

Info

Publication number
CN104202625A
CN104202625A CN201410424950.7A CN201410424950A CN104202625A CN 104202625 A CN104202625 A CN 104202625A CN 201410424950 A CN201410424950 A CN 201410424950A CN 104202625 A CN104202625 A CN 104202625A
Authority
CN
China
Prior art keywords
position information
media file
application
playback
media
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410424950.7A
Other languages
Chinese (zh)
Other versions
CN104202625B (en
Inventor
赵彬
于松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Qingdao Hisense Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201410424950.7A priority Critical patent/CN104202625B/en
Publication of CN104202625A publication Critical patent/CN104202625A/en
Application granted granted Critical
Publication of CN104202625B publication Critical patent/CN104202625B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method and a device for processing a media file. According to the method and the device, a media file play request sent by an application is received, play position information and the identification information of the application are contained in the media file play request, a media file play strategy is queried according to the play position information and the identification information of the application, so as to determine whether the application has an authority to play the media file at the requested play position; if so, then the media file is selected for the application from the media file corresponding to the play position information, a media file play response is returned to the application, the information of the selected media file is contained in the media file play response, so that the application plays the corresponding media file according to the information of the selected media file. The method and the device are used for realizing acquisition for the corresponding media file according to the play position information when the media file is requested.

Description

A kind of media file processing method and equipment
Technical field
The present invention relates to technical field of data processing, relate to more specifically a kind of media file processing method and equipment.
Background technology
Day by day universal along with cable TV, the customer volume of Digital Television also grows with each passing day.Digital Television media file mainly refers to the distinctive media file publicity of Digital Television pattern, the sponsored program providing due to Digital Television is to play specific media file, so Digital Television media file refers to the distinctive platform that Digital Television provides: the media file of playing in the media file of playing in the media file of playing in the media file advertisement of playing as set-top-box opening, TV guide, program introduction, VOD system etc.
At present, while throwing in media file (such as advertisement) in Set Top Box, a kind of mode is media file one way propagation, by cable of cable TV to Set Top Box transmission medium file, and the content that display is play is to take that the current media file receiving of Set Top Box is foundation, the mode existing is issue-transmission-play; Another kind of mode is media file two-way propagation, each application of digital television can directly go to dock front end media file operational system, directly from front end media file operational system, get the media file that needs broadcasting, in two-way propagation, propagate both sides and can mutually exchange and shared information, also can keep reciprocal influence and mutual effect.
In the prior art, the problem that one way propagation exists is: Set Top Box need to be downloaded a large amount of media files in start, serious impact starting up speed; The problem that two-way propagation exists is: each in digital television is applied in when getting media file from front end media file operation system, need to remove to resolve the media file acquiring, obtain concrete media play position information and the broadcast strategy of media file, also will control according to the broadcast strategy of media file the reproduction time of each media file.
Summary of the invention
The embodiment of the present invention provides a kind of media file processing method and equipment, in order to realize when asking media file, according to playing the corresponding media file of position acquisition of information.
The embodiment of the present invention provides a kind of media file processing method, comprising:
Receive the playback of media files request that application sends, in described playback of media files request, comprise the identification information of playing position information and application;
According to the described identification information inquiry playback of media files strategy of playing position information and described application, to determine whether described application has authority to play media file in the broadcasting position of being asked;
If there is authority, from media file corresponding to described broadcasting position information, be described application choice media file, and return to playback of media files response to described application, in described playback of media files response, comprise the media file relevant information of selecting, so that the media file relevant information of selecting described in described application basis is play corresponding media file.
Preferably, described is described application choice media file from media file corresponding to described broadcasting position information, comprising:
According to described in described broadcasting position information inquiry, play the broadcast mode of stipulating in playback of media files strategy corresponding to position information;
If described broadcast mode regulation is play according to priority orders, according to the priority of media file, from media file corresponding to described broadcasting position information, be described application choice media file; Or
If described broadcast mode regulation shuffle, selects media file from described broadcasting media file corresponding to position information for described application at random.
Preferably, before the playback of media files request that described reception application sends, also comprise:
Receive the media file registration request that described application sends, in described media file registration request, comprise the identification information that the application of media file registration is carried out in an information of playing and request;
According to the described identification information inquiry registration database of playing position information and described application, if determine according to Query Result, the identification information of broadcasting position information and described application is also unregistered, the identification information of playing position information and described application is registered, hour of log-on corresponding with the identification information of described broadcasting position information and described application in described registration database is updated to current time;
According to described broadcasting position information inquiry policy database, to determine whether to download corresponding playback of media files strategy, if not, from front end system, download playback of media files strategy corresponding to described broadcasting position information, if download successfully, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade complete, if failed download, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade.
Preferably, described method also comprises:
If determine the identification information of broadcasting position information and described application registers according to Query Result, according to the described identification information of playing position information and described application, from described registration database, inquire about corresponding hour of log-on, the more new state of inquiring about corresponding playback of media files strategy according to described broadcasting position information from policy database;
If the hour of log-on inquiring arrives the time interval of current time and surpasses setting threshold, and the more new state of described playback of media files strategy is for upgrading, from front end system, download playback of media files strategy corresponding to described broadcasting position information, and the local playback of media files strategy of preserving of the playback of media files policy update obtaining with current download, and the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade complete.
Preferably, the described identification information by broadcasting position information and described application also comprises after registering:
To described front end system Transmit message download request, in described file download request, comprise described broadcasting position information;
Receive the media file corresponding with described broadcasting position information that described front end system returns according to described file download request.
Preferably, after the playback of media files request that described reception application sends, also comprise:
Receive the media file de-registration request that described application sends, in described media file de-registration request, comprise the identification information that the described application of media file cancellation is carried out in described broadcasting position information and request;
According to the described identification information inquiry registration database of playing position information and described application, if determine that according to Query Result the identification information of described application and described broadcasting position information registers, judge that in described registration database, except the identification information of described application, whether to also have the identification information of other application corresponding with a described broadcasting information;
If so, described the broadcasting in list of application corresponding to position information from described registration database, deletes the identification information of described application;
If not, from described registration database, delete the described identification information of playing position information and described application, and from described policy database, delete described playback of media files strategy corresponding to position of playing.
Preferably, described method also comprises:
Traversal registration database, the time interval of playing update time corresponding to position and current time if traverse surpasses setting-up time length, the identification information of the application in list of application corresponding to the current broadcasting position information traversing in registration database is deleted;
According to the described current broadcasting position information inquiry policy database traversing, obtain the playback of media files policy update state of the described current broadcasting position traversing, if the more new state inquiring current is exit state, delete playback of media files strategy corresponding with the current broadcasting position information traversing in described policy database, and from described registration database, delete the described current broadcasting position information traversing.
The embodiment of the present invention provides a kind of media file treatment facility, comprising:
Request media file unit: the playback of media files request sending for receiving application, comprises the identification information of playing position information and application in described playback of media files request;
Determine and play bit location: for inquiring about playback of media files strategy according to the described identification information of playing position information and described application, to determine whether described application has authority to play media file in the broadcasting position of being asked;
Send media information unit: if for there being authority, from media file corresponding to described broadcasting position information, be described application choice media file, and return to playback of media files response to described application, in described playback of media files response, comprise the media file relevant information of selecting, so that the media file relevant information of selecting described in described application basis is play corresponding media file.
Preferably, described transmission media information unit comprises determines broadcast mode subelement,
For play the broadcast mode that playback of media files strategy corresponding to position information stipulated described in described broadcasting position information inquiry;
If described broadcast mode regulation is play according to priority orders, according to the priority of media file, from media file corresponding to described broadcasting position information, be described application choice media file; Or
If described broadcast mode regulation shuffle, selects media file from described broadcasting media file corresponding to position information for described application at random.
Preferably, described request media file unit comprises registration subelement,
The media file registration request sending for receiving described application, comprises the identification information that the application of media file registration is carried out in an information of playing and request in described media file registration request;
According to the described identification information inquiry registration database of playing position information and described application, if determine according to Query Result, the identification information of broadcasting position information and described application is also unregistered, the identification information of playing position information and described application is registered, hour of log-on corresponding with the identification information of described broadcasting position information and described application in described registration database is updated to current time;
According to described broadcasting position information inquiry policy database, to determine whether to download corresponding playback of media files strategy, if not, from front end system, download playback of media files strategy corresponding to described broadcasting position information, if download successfully, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade complete, if failed download, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade.
Preferably, described equipment also comprises updating block,
If register for determine the identification information of playing position information and described application according to Query Result, according to the described identification information of playing position information and described application, from described registration database, inquire about corresponding hour of log-on, the more new state of inquiring about corresponding playback of media files strategy according to described broadcasting position information from policy database;
If the hour of log-on inquiring arrives the time interval of current time and surpasses setting threshold, and the more new state of described playback of media files strategy is for upgrading, from front end system, download playback of media files strategy corresponding to described broadcasting position information, and the local playback of media files strategy of preserving of the playback of media files policy update obtaining with current download, and the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade complete.
Preferably, described equipment also comprises download unit,
For to described front end system Transmit message download request, in described file download request, comprise described broadcasting position information;
Receive the media file corresponding with described broadcasting position information that described front end system returns according to described file download request.
Preferably, described request media file unit also comprises cancellation subelement,
The media file de-registration request sending for receiving described application, comprises the identification information that the described application of media file cancellation is carried out in described broadcasting position information and request in described media file de-registration request;
According to the described identification information inquiry registration database of playing position information and described application, if determine that according to Query Result the identification information of described application and described broadcasting position information registers, judge that in described registration database, except the identification information of described application, whether to also have the identification information of other application corresponding with a described broadcasting information;
If so, described the broadcasting in list of application corresponding to position information from described registration database, deletes the identification information of described application;
If not, from described registration database, delete the described identification information of playing position information and described application, and from described policy database, delete described playback of media files strategy corresponding to position of playing.
Preferably, described equipment also comprises cleaning unit,
Be used for traveling through registration database, the time interval of playing update time corresponding to position and current time if traverse surpasses setting-up time length, the identification information of the application in list of application corresponding to the current broadcasting position information traversing in registration database is deleted;
According to the described current broadcasting position information inquiry policy database traversing, obtain the playback of media files policy update state of the described current broadcasting position traversing, if the more new state inquiring current is exit state, delete playback of media files strategy corresponding with the current broadcasting position information traversing in described policy database, and from described registration database, delete the described current broadcasting position information traversing.
In the embodiment of the present invention, in playback of media files request due to application transmission, comprise the identification information of playing position information and application, therefore can be according to the described identification information inquiry playback of media files strategy of playing position information and described application, to determine whether described application has authority to play media file in the play position of being asked, and in the situation that having authority, from media file corresponding to described broadcasting position information, it is described application choice media file, and return to playback of media files response to described application, in described playback of media files response, comprise the media file relevant information of selecting, so that the media file relevant information of selecting described in described application basis is play corresponding media file.When the embodiment of the present invention is applied to Set Top Box, on the one hand, can in start, receive a large amount of media files with prior art Set Top Box and compare based on playing the corresponding media file of position acquisition of information, can improve set-top-box opening response speed; On the other hand, owing to inquiring about playback of media files strategy according to the described identification information of playing position information and described application, to determine that whether described application has authority to play media file in the play position of being asked, and can improve by different authorities is set the flexibility of system.
Accompanying drawing explanation
The method flow diagram of position information is play in the registration that Fig. 1 provides for the embodiment of the present invention;
The method flow diagram of position information is play in the cancellation that Fig. 2 provides for the embodiment of the present invention;
The flow chart that obtains, resolves playback of media files strategy that Fig. 3 provides for the embodiment of the present invention;
Fig. 4 plays a position information flow chart for obtaining of providing of the embodiment of the present invention;
The expired method flow diagram of playing position information of cleaning that Fig. 5 provides for the embodiment of the present invention;
The resource downloading method flow chart that Fig. 6 provides for the embodiment of the present invention;
A kind of media file treatment facility schematic flow sheet that Fig. 7 provides for the invention process.
Embodiment
In the embodiment of the present invention, receive the playback of media files request that application sends, in described playback of media files request, comprise the identification information of playing position information and application; According to the described identification information inquiry playback of media files strategy of playing position information and described application, to determine whether described application has authority to play media file in the play position of being asked; If there is authority, from media file corresponding to described broadcasting position information, be described application choice media file, and return to playback of media files response to described application, the information that comprises the media file of selecting in described playback of media files response, so that the information of the media file of selecting described in described application basis is play corresponding media file.Adopt the method to solve when request media file, can not be according to the problem of playing the corresponding media file of position acquisition of information.
In the network architecture of using in the embodiment of the present invention, can comprise front end system, terminal.Wherein terminal comprises broadcasting display and Set Top Box, plays in display for one and can have an application, also can have a plurality of application; And can connect by wired mode or wireless mode between Set Top Box and broadcasting display, such as connecting by WLAN (wireless local area network), Set Top Box can be also that an Embedded system is embedded in broadcasting display.Wherein display can comprise the electronic equipments such as television set, mobile terminal and computer.Described television set can be intelligent TV set, and described mobile terminal can comprise mobile phone, PDA etc.
The above-mentioned network architecture take below as example, the embodiment of the present invention is described.
In the embodiment of the present invention, in Set Top Box, preserve registration database, policy database.Registration database comprises application plays position Registry and plays position information table.Wherein, play reproduction time section and the channel that position information is used to indicate media file; Be applied in after the registration request of initiating for media play position, Set Top Box is registered to above-mentioned registration database according to this request by corresponding information.Policy database comprises playback of media files Policy Table.Be applied in after the registration request of initiating for media play position, Set Top Box can be downloaded corresponding media play strategy and be stored in described policy database from front end system.In addition, in Set Top Box, also preserve playlist, the relevant information of preserving media file in this playlist, such as the store path of media file, the information such as priority of the type of media file, media file.Set Top Box, from front end system downloads of media file, is stored in this playlist by media file relevant information.
Table 1 shows a kind of structure of playing a Registry, and table 2 shows a kind of structure of playing an information table, and table 3 shows a kind of playback of media files Policy Table's structure, and table 4 shows a kind of structure of playlist.
Table 1:
Table 2:
Table 3:
Table 4:
These are only a kind of example, in actual applications, the information comprising in above-mentioned each table can increase and decrease as required on the basis of foregoing.The information that above-mentioned each table comprises also can adopt other data store organisations.
Below in conjunction with Figure of description, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein, only for description and interpretation the present invention, is not intended to limit the present invention.And in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
The embodiment of the present invention relates to register flow path, logout flow path, the expired media bit flow process of cleaning, and media play flow process, by reference to the accompanying drawings above-mentioned each flow process is described in detail respectively below.
Referring to Fig. 1, be the registration process that the embodiment of the present invention provides, this process can be realized by Set Top Box.This flow process mainly comprises the following steps:
In step 100, receive the media file registration request that described application sends, in described playback of media files request, comprise the identification information of playing position information and application.
In step 101, according to the described identification information inquiry registration database of playing position information and described application, if identification information that determine to play position information and described application according to Query Result is unregistered (from step 102 to step 105) also, in step 108, the identification information of playing position information and described application is registered, hour of log-on corresponding with the identification information of described broadcasting position information and described application in described registration database is updated to current time.
Because being registered to the log-on message list of application plays position, broadcasting position information suffered, so in the identification information registration of applying, only the identification information of application need to be registered in the log-on message list of application plays position.
In step 107, according to described broadcasting position information inquiry policy database, to determine whether to download corresponding playback of media files strategy, if not, in step 109, from front end system, download playback of media files strategy corresponding to described broadcasting position information, if download successfully, in step 111, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade complete, if failed download, in step 112, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade.
If in step 102, according to Query Result, determine whether registration, if so, in step 103, the described identification information of playing position information and described application is registered in the log-on message list of application plays position.Wherein, when playing the application plays position log-on message list of position information registering, the identification information that request need to be carried out to the application of media file registration is registered in the log-on message list of application plays position, so just guaranteed the broadcasting position information of registration at least corresponding the identification information of an application.When Set Top Box receives the playback of media files request that application sends, can be by playback of media files corresponding to the broadcasting position information of carrying in request the identification information to the application of carrying in request.Having guaranteed to play media file corresponding to position information has at least the identification information of an application to play this media file.
If in step 105, the identification information of judgement application is registered in the information list of application plays position,, in step 106, upgrades the log-on message list of application plays position.
This is because the identification information playing position information likely can corresponding a plurality of application, so may occur playing position information registers in the log-on message list of application plays position, but playing a plurality of application corresponding to position information may occur, some application are registered in the log-on message list of application plays position, and application also in the log-on message list of application plays position, do not register.
In step 107, according to described broadcasting position information inquiry policy database, to determine whether to download corresponding playback of media files strategy, if,, in step 104, Set Top Box triggers from front end system and downloads playback of media files strategy corresponding to described broadcasting position information.
Wherein, a playback of media files strategy corresponding to the described broadcasting position information of Set Top Box triggering front end system download mainly comprises:
Set Top Box forward end system sends the request of obtaining playback of media files strategy, wherein in request, carry the position information of playing, front end system is according to the broadcasting position information of carrying in the request of receiving and request, by with play position information for playback of media files strategy send to Set Top Box.Further, to send the request obtain playback of media files strategy be to complete in the process of registration to Set Top Box forward end system.
Above-mentioned flow process article registration play the process of position information, wherein the process of registration completes before can sending to Set Top Box in application and playing media file request, this register method has guaranteed to be applied in to Set Top Box and has sent and play media file request, Set Top Box can not spend and judge whether to need to upgrade the playback of media files strategy of playing in the information list of position, directly remove to inquire about playback of media files strategy, then according to the authority of playback of media files strategy and application, the media file information corresponding to broadcasting position information of carrying in the broadcasting media file request that determines whether to send to application sends to application.
Also have a kind of method, the process of registration can be in First Contact Connections, to complete between application box Set Top Box.Adopt in this way, be applied in when sending broadcasting media file request to Set Top Box, Set Top Box can be sent response to application very soon, but the response that Set Top Box is sent may comprise two kinds of results: the one, and Set Top Box sends and plays media file corresponding to broadcasting position information carrying in media file request to application, another kind is that Set Top Box sends Empty Medium file to application.
Referring to Fig. 2, be the log off procedure that the embodiment of the present invention provides, this process can be realized by Set Top Box.This flow process mainly comprises the following steps:
In step 201, receive the media file de-registration request that described application sends, in described media file de-registration request, comprise the identification information that the described application of media file cancellation is carried out in described broadcasting position information and request.
In step 202, according to the described identification information inquiry registration database of playing position information and described application; In step 203, if determine that according to Query Result the identification information of described application and described broadcasting position information registers,, in step 204, judge in described registration database, whether in addition the identification information of other application is corresponding with described broadcasting position information except the identification information of described application.
If so, in step 209, the described broadcasting in list of application corresponding to position information from described registration database, deletes the identification information of described application.
Wherein, the identification information of application is only registered in the information registering information list of application plays position, so the identification information of the application of registering only delete application plays position information registering information list when deleting in.
If in step 203, if determine identification information and the not registration of described broadcasting position information of described application according to Query Result,, in step 211, finish log off procedure.
If in step 204, if do not have the identification information of other application corresponding with described broadcasting position information in described registration database except the identification information of described application, in step 205, if the more new state in policy database is not exit state,, in step 211, finish log off procedure.
Wherein, the identification information of a plurality of application herein, can comprise and the identification information of the application in step 203 also can comprise that other times are registered to the identification information of the application of application plays position log-on message list.
Such as, the broadcasting position information of A company is when registering for the first time, not only the broadcasting position information registering of Yao Jiang A company is in the log-on message list of application plays position, and the identification information that request need to be carried out to the application of media file registration is registered in the log-on message list of application plays position, the identification information that the application of media file registration is carried out in the request is here assumed to be 1 satellite TV, so when the broadcasting position of A company information registering arrives the log-on message list of application plays position, the identification information of the channel application of 1 satellite TV is also registered in the log-on message list of application plays position.
But, if application sends media file registration request to Set Top Box, what in request, carry is the identification information of the broadcasting position information of A company and the application of 2 satellite TVs that the media file registration of A company is carried out in request, because the broadcasting position information of A company has been registered in the log-on message list of application plays position, and the identification information of the application of 2 satellite TVs is not registered in the log-on message list of application plays position, so, when Set Top Box is received after the media file registration request of application transmission, only the identification information of the application of 2 satellite TVs need to 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 the more new state in policy database is not new state more,, in step 210, the more new state in policy database is exit state.
In table 3, record a UPDATESTATUS field, the content of the demonstration of UPDATESTATUS field is 0,1,2 and 4, and wherein, 0 represents not yet more new state; 1 is representing more new state; 2 represent that renewal is complete; 4 represent exit state.
If in step 206, if the more new state in policy database is new state more,, in step 207, the more new state in registration database is set as to exit state.
In step 208, from described registration database, delete the described identification information of playing position information and described application, and from described policy database, delete described playback of media files strategy corresponding to position of playing.
Wherein, registration database comprises application plays position information registering information list and plays position information list, if only have the identification information of an application to be registered in the information registering information list of application plays position, more new state in broadcasting position information list corresponding to the identification information of this application is exit state, this is play to full detail corresponding to position information and delete, and play full detail corresponding to position information, mainly comprise the information in the information registering information list of application plays position and play the information in the information list of position.
Above-mentioned log off procedure can carry out in set-top-box opening, can be also to complete after Set Top Box is received the media file de-registration request of application transmission.If Set Top Box is power-off suddenly in log off procedure, in start next time, Set Top Box can, according to open state, complete and nullify action so.When Set Top Box is when nullifying, if application sends playback of media files request, and what in request, carry is to nullify the request of playing position information, and Set Top Box can be returned to sky information to application.
Referring to Fig. 3, be the process of obtaining, resolve playback of media files strategy that the embodiment of the present invention provides, this process can be realized by Set Top Box.This flow process mainly comprises the following steps:
In step 301, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade; In step 302, broadcasting position information is sent to front end system, the playback of media files strategy that receiving front-end system is returned; Wherein, the first forward end system of Set Top Box sends playback of media files strategy request, in request, carried the position information of playing, front end system is according to the solicited message of receiving and play position information, and playback of media files strategy corresponding to broadcasting position information with receiving sent to Set Top Box.
In step 303, if Set Top Box receives playback of media files strategy from front end system; , in step 304, resolve and receive playback of media files strategy, obtain the new position information list of playing.In step 305, if new, play position information list effective; , in step 306, travel through the list of current media file broadcast strategy;
Wherein, playback of media files Policy List comprises a plurality of playback of media files strategies.
In step 307, relatively whether with the list of current media file broadcast strategy whether new media file broadcast strategy have same policy; If have, in step 308, Delete Expired playback of media files strategy.
Wherein, a plurality of playback of media files strategies in playback of media files Policy List and the new media file broadcast strategy obtaining are compared one by one, if will have the playback of media files strategy identical with new media file broadcast strategy in playback of media files Policy List, think that the playback of media files strategy in playback of media files Policy List does not change, and deletes above-mentioned new media file broadcast strategy so; If will there is no the playback of media files strategy identical with new media file broadcast strategy in playback of media files Policy List, think that new media file broadcast strategy is newly-increased playback of media files strategy, need to add new media file broadcast strategy in playback of media files Policy List to.
In step 309, whether traveled through the list of current media file broadcast strategy, if so, in step 310, judged whether newly-increased playback of media files strategy; If have,, in step 311, upgrade the playback of media files strategy of playing in the information list of position.
As shown in table 3, in playback of media files Policy List, there is a field SCHEDULEID, each playback of media files strategy has a unique SCHEDULEID, if a playback of media files strategy SCHEDULEID exists in new playback of media files strategy, in current playback of media files strategy, do not exist, this is newly-increased playback of media files strategy; If playback of media files strategy SCHEDULEID does not exist in new playback of media files strategy, in current playback of media files strategy, exist, this playback of media files strategy is expired playback of media files strategy; If playback of media files strategy SCHEDULEID exists in new playback of media files strategy and current playback of media files strategy simultaneously, this playback of media files strategy does not upgrade.
If in step 303, if Set Top Box does not receive playback of media files strategy from front end system; , in step 311, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade.
This is because in the process of the playback of media files strategy sending in Set Top Box receiving front-end system, if the unexpected power-off of Set Top Box, or there is other accident, the situation that the playback of media files strategy that likely causes Set Top Box front end system not to be sent receives completely.
If from front end system request playback of media files strategy, when front end system is returned as sky to Set Top Box, retain all information of this broadcasting position information, then the more new status field in playback of media files Policy List is made as and is upgraded.
If in step 305, if new, play position information list invalid; , in step step 311, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade.
If in step 307, relatively whether with the list of current media file broadcast strategy whether new media file broadcast strategy have same policy; If nothing,, in step 312, thinks that playback of media files strategy is without change., in step 313, new media file broadcast strategy is deleted.
If in step 309, whether traveled through the list of current media file broadcast strategy, if not,, in step 306, travel through current media file broadcast strategy table.
If in step 310, judged whether newly-increased playback of media files strategy; If nothing,, in step 314, adds newly-increased playback of media files strategy at playback of media files Policy List, from front end system, download the media file of newly-increased playback of media files strategy.
In step 315, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade complete.
Upgrade complete only presentation medium file broadcast strategy and added in policy data, but presentation medium file has not been downloaded complete.
So, when playback of media files Policy List has added after newly-increased playback of media files strategy, the media file that this newly-increased playback of media files strategy is corresponding does not also obtain from front end system, so Set Top Box needs forward end system to send media file request, in request, carried the position information of playing, front end system is according to the solicited message of receiving and play position information, and broadcasting position media file corresponding to information with receiving sent to Set Top Box.
Above-mentionedly obtain, resolve playback of media files strategy and finally determine whether from media file corresponding to front end system downloads of media file broadcast strategy, can be to complete in registration, also can be after registration completes, the time period of Set Top Box free time completes, and the embodiment of the present invention does not limit obtaining, resolve the concrete time period of playback of media files strategy.
Referring to Fig. 4, be the playback of media files process that the embodiment of the present invention provides, this process can be realized by Set Top Box.This flow process mainly comprises the following steps:
In step 400, receive the playback of media files request that application sends, in described playback of media files request, comprise the identification information that the application of playback of media files is carried out in an information of playing and request, described broadcasting position information is used to indicate reproduction time section and the channel of media file.
In step 401, according to described identification information inquiry of playing position information and described application, play position information table.
In step 402, whether channel ID is in white list; If do not exist, in step 403, according to current time traversal playback of media files Policy Table.
Judge that channel ID whether in white list, is to determine according to the information of the WHITELISTINGFO field in table 2.Such as: the media file of A company is play in the request of 1 satellite TV, according to the information of the WHITELISTINGFO field in table 2, first judge that 1 satellite TV is whether in white list list, wherein in white list list, recorded the channel list that can not play media file, if 1 satellite TV is present in white list list, represent that 1 satellite TV can not play media file, Set Top Box Hui Xiang 1 satellite TV sends a null response.If 1 satellite TV is not present in white list list, represent that 1 satellite TV can play the media file of A company.
In step 404, judge whether it is correlated resources; If so, in step 405, whether channel ID is in correlated resources information list; If, in step 406, according to priority or select at random media file.If so, in step 407, media file exists; If have, at step 408, renewal application plays position Registry.
Whether channel ID determines according to CORRELATIVEFLAG field in table 3 and CORRELATIVECHENNELINFO field in correlated resources information list.Such as: the media file of A company is play in the request of 1 satellite TV, first, determines the whether relevant resource identification of 1 satellite TV, in table 3, if CORRELATIVEFLAG field is shown as 0, represents that 1 satellite TV is not correlated resources; If CORRELATIVEFLAG field is shown as 1, represent that 1 satellite TV is correlated resources.Wherein, correlated resources is predefined, such as, correlated resources is set as local satellite TV, if 1 Shi Mou of satellite TV the Northwest satellite TV so, 1 satellite TV is exactly correlated resources.Further need to judge that 1 satellite TV is whether in correlated resources information list, correlated resources information list can comprise the local satellite TV of audience ratings top 10, or comprises East China satellite TV, or comprises the Northwest satellite TV etc.If what correlated resources information list comprised is East China satellite TV, can determine that so 1 satellite TV is not in correlated resources information list, so 1 satellite TV can not play the media file of A company; If what correlated resources information list comprised is the Northwest satellite TV, can determine that so 1 satellite TV is in correlated resources information list, so 1 satellite TV can play the media file of A company.
Further, if described broadcast mode regulation is play according to priority orders, according to the described priority of playing media file corresponding to position information, from media file corresponding to described broadcasting position information, be described application choice media file; Or
If described broadcast mode regulation shuffle, selects media file from described broadcasting media file corresponding to position information for described application at random.
In table 3, have a PLAYMOD field, if this field demonstration is 0, the mode that presentation medium file is play is played in order; If what this field showed is 1, the mode that presentation medium file is play is shuffle.
Such as, the media file of A company is play in the request of 1 satellite TV, and wherein, the media file of A company can comprise A1 media file, A2 media file, A3 media file or A4 media file etc.If in table 3, PLAYMOD field shows, be at will to select a media file to allow 1 satellite TV play in the media file of 0, Ze Cong A company; If what in table 3, PLAYMOD field showed is 1, need to play media file according to the order of priority.
In table 4, have an ADINDX field, the numerical value showing in this field is less, represents that the priority of corresponding media file is higher.The numerical value showing such as A1 media file is that the numerical value that 3, A2 media file shows is that the numerical value that 5, A3 media file shows is that the numerical value that 2, A4 media file shows is 1, can determine that 1 satellite TV need to play media file be A4 media file.
Further, if the numerical value showing in the ADINDX field in table 4 is all 0, can from be all shown as 0 media file, for application is random, select a media file.
In step 409, judge whether playback of media files strategy needs to upgrade; If desired, in step 413, from front end system downloads of media file broadcast strategy.
If in step 402, whether channel ID is in white list; If,, in step 415, finish playing request process.
If in step 404, judge whether it is correlated resources; If not, in step 406, according to priority or select at random media file.
If in step 405, whether channel ID is in correlated resources information list; If do not exist, in step 403, according to current time traversal playback of media files Policy Table.
If in step 406, according to priority or select at random media file; If not,, in step 414, traversal finishes, and selects acquiescence media file.If in step 407, media file exists; If nothing, in step 412, from front end system downloads of media file.
Wherein, whether media file exists mainly according to following method judgement, such as, the media file of A company is play in the request of 1 satellite TV, and wherein, the ADINDX field of the media file of A company in table 4 shows, be respectively: the numerical value that A1 media file shows is 3, the numerical value that A2 file shows is that the numerical value that 5, A3 media file shows is that the numerical value that 2, A4 media file shows is 1.
Can determine that 1 satellite TV need to play media file be A4 media file, but because media file is that Set Top Box forward end system is sent out after media file download request, front end system sends to Set Top Box according to the broadcasting position information of carrying in request by the media file corresponding with playing position information, and Set Top Box is in front end system downloads of media file, may be de-energized suddenly.Such as having a plurality of files in media file corresponding to the broadcasting position information of A company, so may download A1 media file, A2 media file and A3 media file, only A4 media file download is not completed, Set Top Box has just been de-energized.So when determine that 1 satellite TV need to play media file be A4 media file after, need to judge whether A4 media file exists.
If in step 409, judge whether playback of media files strategy needs to upgrade; If do not need,, in step 410, media file information is sent to application.
Table 4 has comprised a plurality of fields such as ADMEDIACLASS, PLAYDUR, PLAYVIDEOOFFSET and ADURL, wherein ADMEDIACLASS field record is the classification of concrete broadcasting media, mainly comprises video media file, picture media file, print media's file and binary system media file; PLAYDUR field record be the playing duration of media file; PLAYVIDEOOFFSET field record be the side-play amount of media file while starting to play; ADURL field record be the store path of media file in Set Top Box.
The media file information that Set Top Box sends to application can be the classification information of the store path of media file in Set Top Box, concrete broadcasting media and the media file information such as side-play amount while starting to play.
The media file information that Set Top Box sends to application can also be the full content of media file, the classification information of concrete broadcasting media and the media file information such as side-play amount while starting to play.
Referring to Fig. 5, be the expired broadcasting of the cleaning position information process that the embodiment of the present invention provides, this process can be realized by Set Top Box.This flow process mainly comprises the following steps:
In step 501, traversal registration database; In step 502, the time interval that traverses update time corresponding to broadcasting position and current time surpasses setting-up time length; , in step 506, the identification information of the application in list of application corresponding to the current broadcasting position information traversing in registration database is deleted.
In step 508, according to the described current broadcasting position information inquiry policy database traversing, obtain the playback of media files policy update state of the described current broadcasting position traversing, the more new state inquiring if current is exit state; In step 510, delete playback of media files strategy corresponding with the current broadcasting position information traversing in described policy database, and from described registration database, delete the described current broadcasting position information traversing.
In step 503, according to playing position information inquiry, there is the identification information of how many application to be registered in the log-on message list of application plays position.
If in step 504, whether only has an application registration; If so, in step 505, will in registration database, register and play full detail corresponding to position information and delete.Wherein, be mainly to judge whether to only have the identification information of an application to be registered in the log-on message list of application plays position.
If in step 507, traveled through registration database; If not,, in step 502, the time interval that traverses update time corresponding to broadcasting position and current time surpasses setting-up time length.
If in step 507, traveled through registration database; If so, in step 508, according to the described current broadcasting position information inquiry policy database traversing, obtain the playback of media files policy update state of the described current broadcasting position traversing, the more new state inquiring if current is exit state.
In step 509, traversal registration database.
If in step 511, traveled through registration database; If so, in step 512, delete all interim media files.
If in step 511, traveled through registration database; If not,, in step 509, travel through registration database.
In step 513, by upgrading all more new states in state table in registration database, be that the state upgrading is set as not yet upgrading.
Set Top Box in expired broadcastings of a cleaning information, not only deleted expired broadcasting position information and the expired application plays position log-on message in registration database, and deleted the media file strategy in policy database, the interim media file in system is all deleted simultaneously.By playing playback of media files strategy corresponding to position information described in policy database, revert to more new state.
Referring to Fig. 6, be the resource downloading management process that the embodiment of the present invention provides, this process can be realized by Set Top Box.This flow process 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 contains playback of media files strategy and media file.
Wherein, when Set Top Box need to be from front end system downloads of media file broadcast strategy, first forward end system sends the request of playback of media files policy download, in request, carried the broadcasting position information corresponding with playback of media files strategy, front end system is according to the download request receiving and play position information, and the playback of media files strategy corresponding with playing position information sent to Set Top Box.
Wherein, when Set Top Box need to be from front end system downloads of media file, first forward end system sends media file download request, in request, carried the broadcasting position information corresponding with media file, front end system is according to the download request receiving and play position information, and the media file corresponding with playing position information sent to Set Top Box.
In step 602, calculate and taken storage size.
In step 603, message waits for downloads.
In step 604, resource downloading request message; If so, in step 605, judge that whether memory space is full; If not,, in step 606, resource downloading task list has identical request; If have,, in step 603, message waits for downloads.
Wherein, in Set Top Box, from front end system downloads of media file broadcast strategy or media file, Set Top Box may be by unexpected power-off, so corresponding download may also not complete.By the time, in the time of Set Top Box start next time, the resource file of not downloaded when can then the last time be shut down from front end system has been downloaded.
In step 607, establishing resource downloading task, adds during resource downloading task lines up.
In step 608, available free download thread; If have,, in step 609, judge whether memory space reaches the upper limit.
In step 610, whether reclaim memory space; If so, in step 611, reclaim memory space.
In step 612, memory space reaches the upper limit; If so, in step 617, reclaim memory space.
If in step 604, resource downloading request message; If not,, in step 613, whether download end notification message; If so, in step 614, upgrade and accounted for storage size.
If in step 605, judge that whether memory space is full, if so, in step 603, message waits for downloads.
If in step 606, resource downloading task list has identical request; If nothing, in step 607, establishing resource downloading task, adds during resource downloading task lines up.
If in step 608, available free download thread; If nothing,, in step 603, message waits for downloads.
If in step 609, judge whether memory space reaches the upper limit; If so, in step 610, whether reclaim memory space; If so, in step 611, reclaim memory space.
If in step 610, whether reclaim memory space; If not,, in step 603, message waits for downloads.
If in step 612, memory space reaches the upper limit; If not,, in step 616, from resource downloading task queue head, take out a downloading task, start resource downloading thread.
If in step 613, whether download end notification message; If not,, in step 617, reclaim memory space.
In step 615, resource downloading task queue is not empty; If so, in step 609, judge whether memory space reaches the upper limit.
If in step 615, resource downloading task queue is not empty; If not,, in step 603, message waits for downloads.
Set Top Box, in carrying out the process of resource downloading, comprises establishing resource download thread, controls resource downloading number of threads, reclaims memory space etc.Wherein, resource file comprises playback of media files strategy and media file, if playback of media files strategy or media file all do not downloaded, only by the playback of media files strategy of having downloaded or media file storage in Set Top Box.
In the embodiment of the present invention, in playback of media files request due to application transmission, comprise the identification information of playing position information and application, wherein, described broadcasting position information is used to indicate reproduction time section and the channel of media file, therefore can be according to the described identification information inquiry playback of media files strategy of playing position information and described application, to determine whether described application has authority to play media file in the play position of being asked, in the situation that having authority, from media file corresponding to described broadcasting position information, it is described application choice media file, and return to playback of media files response to described application, the information that comprises the media file of selecting in described playback of media files response, so that the information of the media file of selecting described in described application basis is play corresponding media file.
When the embodiment of the present invention is applied to Set Top Box, on the one hand, can in start, receive a large amount of media files with prior art Set Top Box and compare based on playing the corresponding media file of position acquisition of information, can improve set-top-box opening response speed; On the other hand, owing to inquiring about playback of media files strategy according to the described identification information of playing position information and described application, to determine that whether described application has authority to play media file in the play position of being asked, and can improve by different authorities is set the flexibility of system.
For said method flow process, the embodiment of the present invention also provides a kind of subscriber equipment, and the particular content of these equipment can be implemented with reference to said method, does not repeat them here.
The equipment that the embodiment of the present invention provides a kind of managing advertisement to play, as shown in Figure 7, the equipment that this managing advertisement is play comprises: ask media file unit 71, determine and play bit location 72 and send media information unit 73.
Request media file unit 71: the playback of media files request sending for receiving application, comprises the identification information of playing position information and application in described playback of media files request;
Determine and play bit location 72: for inquiring about playback of media files strategy according to the described identification information of playing position information and described application, to determine whether described application has authority to play media file in the broadcasting position of being asked;
Send media information unit 73: if for there being authority, from media file corresponding to described broadcasting position information, be described application choice media file, and return to playback of media files response to described application, in described playback of media files response, comprise the media file relevant information of selecting, so that the media file relevant information of selecting described in described application basis is play corresponding media file.
Further, described transmission media information unit 73 comprises determines broadcast mode subelement 731,
For play the broadcast mode that playback of media files strategy corresponding to position information stipulated described in described broadcasting position information inquiry;
If described broadcast mode regulation is play according to priority orders, according to the priority of media file, from media file corresponding to described broadcasting position information, be described application choice media file; Or
If described broadcast mode regulation shuffle, selects media file from described broadcasting media file corresponding to position information for described application at random.
Further, described request media file unit 71 comprises registration subelement 711,
The media file registration request sending for receiving described application, comprises the identification information that the application of media file registration is carried out in an information of playing and request in described media file registration request;
According to the described identification information inquiry registration database of playing position information and described application, if determine according to Query Result, the identification information of broadcasting position information and described application is also unregistered, the identification information of playing position information and described application is registered, hour of log-on corresponding with the identification information of described broadcasting position information and described application in described registration database is updated to current time;
According to described broadcasting position information inquiry policy database, to determine whether to download corresponding playback of media files strategy, if not, from front end system, download playback of media files strategy corresponding to described broadcasting position information, if download successfully, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade complete, if failed download, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade.
Further, described equipment also comprises updating block 74,
If register for determine the identification information of playing position information and described application according to Query Result, according to the described identification information of playing position information and described application, from described registration database, inquire about corresponding hour of log-on, the more new state of inquiring about corresponding playback of media files strategy according to described broadcasting position information from policy database;
If the hour of log-on inquiring arrives the time interval of current time and surpasses setting threshold, and the more new state of described playback of media files strategy is for upgrading, from front end system, download playback of media files strategy corresponding to described broadcasting position information, and the local playback of media files strategy of preserving of the playback of media files policy update obtaining with current download, and the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade complete.
Further, described equipment also comprises download unit 75,
For to described front end system Transmit message download request, in described file download request, comprise described broadcasting position information;
Receive the media file corresponding with described broadcasting position information that described front end system returns according to described file download request.
Further, described request media file unit 71 also comprises nullifies subelement 712,
The media file de-registration request sending for receiving described application, comprises the identification information that the described application of media file cancellation is carried out in described broadcasting position information and request in described media file de-registration request;
According to the described identification information inquiry registration database of playing position information and described application, if determine that according to Query Result the identification information of described application and described broadcasting position information registers, judge that in described registration database, except the identification information of described application, whether to also have the identification information of other application corresponding with a described broadcasting information;
If so, described the broadcasting in list of application corresponding to position information from described registration database, deletes the identification information of described application;
If not, from described registration database, delete the described identification information of playing position information and described application, and from described policy database, delete described playback of media files strategy corresponding to position of playing.
Further, described equipment comprises cleaning unit 76,
Be used for traveling through registration database, the time interval of playing update time corresponding to position and current time if traverse surpasses setting-up time length, the identification information of the application in list of application corresponding to the current broadcasting position information traversing in registration database is deleted;
According to the described current broadcasting position information inquiry policy database traversing, obtain the playback of media files policy update state of the described current broadcasting position traversing, if the more new state inquiring current is exit state, delete playback of media files strategy corresponding with the current broadcasting position information traversing in described policy database, and from described registration database, delete the described current broadcasting position information traversing.
A kind of media file treatment facility for the present embodiment, the request media file unit comprising, definite bit location, transmission media information unit, updating block, download unit and cleaning unit play, wherein, request media file unit also comprises registration subelement and cancellation subelement, and transmission media information unit also comprises determines broadcast mode subelement.Said units and/or subelement can be arranged in same entity apparatus, can be also a plurality of independent entity devices that arrange, and the embodiment of the present invention is not done concrete restriction.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computer or other programmable data processing device is produced for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable devices.
Although described the preferred embodiments of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and the spirit and scope that do not depart from the application to the application.Like this, if within these of the application are revised and modification belongs to the scope of the application's claim and equivalent technologies thereof, the application is also intended to comprise these changes and modification interior.

Claims (14)

1. a media file processing method, is characterized in that, comprising:
Receive the playback of media files request that application sends, in described playback of media files request, comprise the identification information of playing position information and application;
According to the described identification information inquiry playback of media files strategy of playing position information and described application, to determine whether described application has authority to play media file in the broadcasting position of being asked;
If there is authority, from media file corresponding to described broadcasting position information, be described application choice media file, and return to playback of media files response to described application, the information that comprises the media file of selecting in described playback of media files response, so that the information of the media file of selecting described in described application basis is play corresponding media file.
2. method as claimed in claim 1, is characterized in that, describedly from described, plays media file corresponding to position information to be described application choice media file, to comprise:
According to described in described broadcasting position information inquiry, play the broadcast mode of stipulating in playback of media files strategy corresponding to position information;
If described broadcast mode regulation is play according to priority orders, according to the priority of media file, from media file corresponding to described broadcasting position information, be described application choice media file; Or
If described broadcast mode regulation shuffle, selects media file from described broadcasting media file corresponding to position information for described application at random.
3. method as claimed in claim 1, is characterized in that, before the playback of media files request that described reception application sends, also comprises:
Receive the media file registration request that described application sends, in described media file registration request, comprise the identification information that the application of media file registration is carried out in an information of playing and request;
According to the described identification information inquiry registration database of playing position information and described application, if determine according to Query Result, the identification information of broadcasting position information and described application is also unregistered, the identification information of playing position information and described application is registered, hour of log-on corresponding with the identification information of described broadcasting position information and described application in described registration database is updated to current time;
According to described broadcasting position information inquiry policy database, to determine whether to download corresponding playback of media files strategy, if not, from front end system, download playback of media files strategy corresponding to described broadcasting position information, if download successfully, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade complete, if failed download, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade.
4. method as claimed in claim 3, is characterized in that, described method also comprises:
If determine the identification information of broadcasting position information and described application registers according to Query Result, according to the described identification information of playing position information and described application, from described registration database, inquire about corresponding hour of log-on, the more new state of inquiring about corresponding playback of media files strategy according to described broadcasting position information from policy database;
If the hour of log-on inquiring arrives the time interval of current time and surpasses setting threshold, and the more new state of described playback of media files strategy is for upgrading, from front end system, download playback of media files strategy corresponding to described broadcasting position information, and the local playback of media files strategy of preserving of the playback of media files policy update obtaining with current download, and the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade complete.
5. method as described in claim 3 or 4, is characterized in that, the described identification information by broadcasting position information and described application also comprises after registering:
To described front end system Transmit message download request, in described file download request, comprise described broadcasting position information;
Receive the media file corresponding with described broadcasting position information that described front end system returns according to described file download request.
6. method as claimed in claim 1, is characterized in that, after the playback of media files request that described reception application sends, also comprises:
Receive the media file de-registration request that described application sends, in described media file de-registration request, comprise the identification information that the described application of media file cancellation is carried out in described broadcasting position information and request;
According to the described identification information inquiry registration database of playing position information and described application, if determine that according to Query Result the identification information of described application and described broadcasting position information registers, judge that in described registration database, except the identification information of described application, whether to also have the identification information of other application corresponding with a described broadcasting information;
If so, described the broadcasting in list of application corresponding to position information from described registration database, deletes the identification information of described application;
If not, from described registration database, delete the described identification information of playing position information and described application, and from described policy database, delete described playback of media files strategy corresponding to position of playing.
7. method as claimed in claim 1, is characterized in that, described method also comprises:
Traversal registration database, the time interval of playing update time corresponding to position and current time if traverse surpasses setting-up time length, the identification information of the application in list of application corresponding to the current broadcasting position information traversing in registration database is deleted;
According to the described current broadcasting position information inquiry policy database traversing, obtain the playback of media files policy update state of the described current broadcasting position traversing, if the more new state inquiring current is exit state, delete playback of media files strategy corresponding with the current broadcasting position information traversing in described policy database, and from described registration database, delete the described current broadcasting position information traversing.
8. a media file treatment facility, is characterized in that, comprising:
Request media file unit: the playback of media files request sending for receiving application, comprises the identification information of playing position information and application in described playback of media files request;
Determine and play bit location: for inquiring about playback of media files strategy according to the described identification information of playing position information and described application, to determine whether described application has authority to play media file in the broadcasting position of being asked;
Send media information unit: if for there being authority, from media file corresponding to described broadcasting position information, be described application choice media file, and return to playback of media files response to described application, in described playback of media files response, comprise the media file relevant information of selecting, so that the media file relevant information of selecting described in described application basis is play corresponding media file.
9. equipment as claimed in claim 8, is characterized in that, described transmission media information unit comprises determines broadcast mode subelement,
For play the broadcast mode that playback of media files strategy corresponding to position information stipulated described in described broadcasting position information inquiry;
If described broadcast mode regulation is play according to priority orders, according to the priority of media file, from media file corresponding to described broadcasting position information, be described application choice media file; Or
If described broadcast mode regulation shuffle, selects media file from described broadcasting media file corresponding to position information for described application at random.
10. equipment as claimed in claim 8, is characterized in that, described request media file unit comprises registration subelement,
The media file registration request sending for receiving described application, comprises the identification information that the application of media file registration is carried out in an information of playing and request in described media file registration request;
According to the described identification information inquiry registration database of playing position information and described application, if determine according to Query Result, the identification information of broadcasting position information and described application is also unregistered, the identification information of playing position information and described application is registered, hour of log-on corresponding with the identification information of described broadcasting position information and described application in described registration database is updated to current time;
According to described broadcasting position information inquiry policy database, to determine whether to download corresponding playback of media files strategy, if not, from front end system, download playback of media files strategy corresponding to described broadcasting position information, if download successfully, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade complete, if failed download, the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade.
11. equipment as claimed in claim 10, is characterized in that, described equipment also comprises updating block,
If register for determine the identification information of playing position information and described application according to Query Result, according to the described identification information of playing position information and described application, from described registration database, inquire about corresponding hour of log-on, the more new state of inquiring about corresponding playback of media files strategy according to described broadcasting position information from policy database;
If the hour of log-on inquiring arrives the time interval of current time and surpasses setting threshold, and the more new state of described playback of media files strategy is for upgrading, from front end system, download playback of media files strategy corresponding to described broadcasting position information, and the local playback of media files strategy of preserving of the playback of media files policy update obtaining with current download, and the more new state of playing playback of media files strategy corresponding to position information described in described policy database is set to upgrade complete.
12. as described in claim 10 or 11 equipment, it is characterized in that, described equipment also comprises download unit,
For to described front end system Transmit message download request, in described file download request, comprise described broadcasting position information;
Receive the media file corresponding with described broadcasting position information that described front end system returns according to described file download request.
13. equipment as claimed in claim 8, is characterized in that, described request media file unit also comprises cancellation subelement,
The media file de-registration request sending for receiving described application, comprises the identification information that the described application of media file cancellation is carried out in described broadcasting position information and request in described media file de-registration request;
According to the described identification information inquiry registration database of playing position information and described application, if determine that according to Query Result the identification information of described application and described broadcasting position information registers, judge that in described registration database, except the identification information of described application, whether to also have the identification information of other application corresponding with a described broadcasting information;
If so, described the broadcasting in list of application corresponding to position information from described registration database, deletes the identification information of described application;
If not, from described registration database, delete the described identification information of playing position information and described application, and from described policy database, delete described playback of media files strategy corresponding to position of playing.
14. equipment as claimed in claim 8, is characterized in that, described equipment also comprises cleaning unit,
Be used for traveling through registration database, the time interval of playing update time corresponding to position and current time if traverse surpasses setting-up time length, the identification information of the application in list of application corresponding to the current broadcasting position information traversing in registration database is deleted;
According to the described current broadcasting position information inquiry policy database traversing, obtain the playback of media files policy update state of the described current broadcasting position traversing, if the more new state inquiring current is exit state, delete playback of media files strategy corresponding with the current broadcasting position information traversing in described policy database, and from described registration database, delete the described current broadcasting position information traversing.
CN201410424950.7A 2014-08-26 2014-08-26 A kind of media file processing method and equipment Active CN104202625B (en)

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 true CN104202625A (en) 2014-12-10
CN104202625B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293681A (en) * 2015-06-13 2017-01-04 龙岩市新罗区智电电子厂 Automatically update the public address system of music
WO2019134171A1 (en) * 2018-01-08 2019-07-11 青岛海信电器股份有限公司 Program playback control method and terminal
WO2020177468A1 (en) * 2019-03-06 2020-09-10 中兴通讯股份有限公司 Method and apparatus for controlling content presentation, and server and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022353A (en) * 2006-10-10 2007-08-22 鲍东山 Directional stream media advertisement insert-cut system
CN101079721A (en) * 2007-03-13 2007-11-28 腾讯科技(深圳)有限公司 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
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022353A (en) * 2006-10-10 2007-08-22 鲍东山 Directional stream media advertisement insert-cut system
CN101079721A (en) * 2007-03-13 2007-11-28 腾讯科技(深圳)有限公司 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
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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293681A (en) * 2015-06-13 2017-01-04 龙岩市新罗区智电电子厂 Automatically update the public address system of music
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
WO2020177468A1 (en) * 2019-03-06 2020-09-10 中兴通讯股份有限公司 Method and apparatus for controlling content presentation, and server and storage medium

Also Published As

Publication number Publication date
CN104202625B (en) 2018-01-02

Similar Documents

Publication Publication Date Title
US20150095460A1 (en) Downloading Media Objects
CN103647991A (en) Method and system for sharing video in intelligent television
CN104104971A (en) Video file processing method and system
CN102523295B (en) Plug-in registration method and system thereof
CN103701914B (en) Off-line downloading method and device for serial resources
CN105847956A (en) Advertisement putting method and device
CN110017847B (en) Self-adaptive navigation voice broadcasting method, device and system
CN103065662A (en) Method and system for continuous broadcasting of media resources in device
CN104202625A (en) Method and device for processing media file
CN103647756A (en) Advertisement broadcasting method, server, client and system
CN106331089A (en) Video play control method and system
CN103959801A (en) Reproduction device, reproduction method, control program, and recording medium
CN101686341A (en) Method for realizing program sharing among television, set top box and mobile equipment
CN100571380C (en) The scatter storage technique and this system that are used for distributed network TV system
CN100518331C (en) Method for inserting and relaying IP service data based on cable television network
CN104365111A (en) Method for providing interlocking application in Android platform-based receiver
CN106358060B (en) Time shifting operation method and device for live video
CN105933778A (en) Live broadcast method and device based on screen contents of terminal
CN106454550B (en) Content reception apparatus
CN103402137A (en) Application push method, mobile terminal and digital television (TV) receiving end
CN104296771A (en) Method and system for announcing prompt information at vehicle-mounted navigation client
JP6278529B2 (en) System, method, and computer-readable medium for local content storage in a media network
CN108156524A (en) Control method for playing back, device and the computer readable storage medium of multimedia resource
CN103297516A (en) Multi-type providing method, multi-type providing system and multi-type providing device of applications
CN104243469A (en) Playing control method, device and system

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
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.