The system of automatic media content download, method and portable terminal
Technical field
The present invention relates to the mobile media field, more particularly, relate to a kind of system, method and portable terminal of automatic media content download.
Background technology
Traditional media format mainly contains four types: one, paper media, and its circulation way is on paper, to propagate literal and picture, comprises newspaper, magazine and book etc.; Two, broadcasting is propagated sound through the form of electric wave; Three, TV can be propagated figure, literary composition, sound and image; Four, the Internet is used for propagating literary composition, figure, sound and image etc.
Along with the development of wireless network, wireless network speed constantly speeds, and rate also constantly descend, and are also increasing through the data service that portable terminal (for example mobile phone, PDA etc.) carries out.Mobile media has advantage easy to carry, that can surf the Net the information of obtaining at any time, can read whenever and wherever possible as emerging medium, and it has become the 5th medium outside above-mentioned four kinds of traditional media.As a new media format; Mobile phone is compared with traditional media has had a lot of essence, revolutionary change: mobile phone can most convenient ground use people's the scrappy time (for example waiting for bus, sit elevator, riding public transportation means etc.), and can diffuse information very quickly.By contrast, though newspaper is easy to carry, it is not quick to diffuse information; TV, broadcasting, the Internet can diffuse information quickly, but carrier carries inconvenience.And the characteristics that mobile phone has concurrently is easy to carry, propagation velocity is fast.In addition, mobile media also has wide coverage, propagates characteristics such as with low cost.
Yet existing mobile media all is during by the user side access server, to server send read or download request after, by server media content is sent to client.The user is in order to obtain up-to-date media content information, access server continually.But this must increase the operation of client.In addition, when a large amount of clients simultaneously during a certain newly-increased media content in the reading servers, cause server moment flow to increase easily, thereby the problem that the server service quality descends occurs.
Summary of the invention
The technical problem that the present invention will solve is, to the above-mentioned user defective of complex operation during media content download initiatively, a kind of system, method and portable terminal of automatic media content download is provided.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of system of automatic media content download, comprising:
Note is created the unit; Be used for when new mobile media content release; Generate the note that comprises command word and said mobile media content information according to predetermined format, the form of note is: the concrete issue of marking head+media name+medium, marking head are character string " //pushmedia: " command word; The media content of said issue comprises file header information, index information and page data piece; Said file header information comprises the essential information of media file; Said index information comprises the essential information of page or leaf in the media file; Each page data piece has a sign;
Client side acquiring unit is used for obtaining the client of subscribing to said mobile media content through the retrieval subscription information; Subscription information comprises the subscription information record sheet, is used to preserve the information that the user subscribes to media content, and it comprises the media content information of user profile and subscription; Said client comprises portable terminal;
The note transmitting element is used for note is created the client that the note of creating the unit sends to this media content of subscription that client side acquiring unit obtains, and calls note transmission interface function S endSM () and sends note to said client; Accordingly, the note resolution unit of said client is used to resolve the note of reception; If do not have character string in the note of resolving " //pushmedia: " command word, then no longer resolve the remainder of this note; If have character string in the note of resolving " //pushmedia: " command word, then further resolve and obtain media content information to be downloaded;
The media content subscriber units is used to receive the request from the subscription media content of client, and the generation user subscription information is saved in said subscription information record sheet;
User message table, said user message table comprises user mobile phone number, said note transmitting element obtains the user profile of subscribing to media content through inquiring about said subscription information record sheet, and obtains corresponding user mobile phone number through inquiring about said user message table;
Media content transmission unit is used for according to the download request that comprises media content information of client said mobile media content being sent to said client; Said media content transmission unit comprises:
First processing unit is used for according to first download request from said client, resolves media content and will resolve the file header information and the index information that obtain to send to said client;
Second processing unit is used for according to second download request from said client, and successively that said index information is related page data piece sends to said client;
Wherein, said client is used for triggering by resolving the command word that obtains, according to media content information media content download to be downloaded in the note; Also be used for behind the file header information of obtaining said first processing unit transmission and index information, creating the local media file, and when obtaining each page data piece, the page data piece joined in the said local media file.
The present invention also provides a kind of method of automatic media content download, comprising:
(a) when new mobile media content release; Generate the note that comprises command word and mobile media content information according to predetermined format; The form of note is: the concrete issue of marking head+media name+medium, marking head are character string " //pushmedia: " command word; Said media content comprises file header information, index information and page data piece; Said file header information comprises the essential information of media file; Said index information comprises the essential information of page or leaf in the media file; Each page data piece has a sign;
(b) the media distribution server obtains the client of subscribing to said mobile media content through the retrieval subscription information; Said subscription information comprises the media content information of user profile and subscription; Said client comprises portable terminal; Obtain the user profile of subscribing to media content through inquiring about said subscription information record sheet, and obtain the corresponding user mobile phone number of user profile through the searching user's information table;
(c) said note is sent to said client, call note transmission interface function S endSM () and send note to said client; Said client is resolved the note that receives, if do not have character string in the note of resolving " //pushmedia: " command word, then no longer resolve the remainder of this note; If have character string in the note of resolving " //pushmedia: " command word, then further resolve and obtain media content information to be downloaded;
(d) said client triggers by resolving the command word that obtains, according to media content information media content download to be downloaded in the note;
(e) comprise that according to client the download request of media content information sends to said client with said mobile media content; Comprise: according to first download request from said client, the parsing media content also will be resolved the file header information and the index information that obtain and sent to said client; According to second download request from said client, successively that said index information is related page data piece sends to said client;
(f) said client is created the local media file after obtaining said file header information and index information, and when obtaining each page data piece, the page data piece is joined in the said local media file.
The present invention also provides a kind of portable terminal that is used for downloading automatically the mobile media content of said system, comprising:
The note resolution unit is used to resolve the note of reception, obtains command word and media content information to be downloaded, and the form of note is: the concrete issue of marking head+media name+medium, marking head are character string " //pushmedia: " command word; Portable terminal after resolving this note according to character string " //pushmedia: " command word carry out corresponding down operation; If do not have character string in the note of resolving " //pushmedia: " command word, then no longer resolve the remainder of this note; If have character string in the note of resolving " //pushmedia: " command word, then further resolve and obtain media content information to be downloaded;
The media content download unit is triggered by said command word, and according to said media content information media content download to be downloaded; Be used to send said first download request, to download said file header information and index information; And be used to send said second download request, so that download and the page data blocks of data that said index information is related add in the local media file successively;
Wherein, said portable terminal also is used for behind the file header information of obtaining said first processing unit transmission and index information, creating the local media file, and when obtaining each page data piece, the page data piece is joined in the said local media file; Said file header information comprises the essential information of media file; Said index information comprises the essential information of page or leaf in the media file; Each page data piece has a sign;
Said portable terminal also comprises the media content subscriber units, is used to generate the request of subscribing to media content, to subscribe to the media content of appointment.
The system of automatic media content download of the present invention, method and portable terminal by the subscription information of server end according to media content, initiatively start the download of media content, thereby have realized the active push of media content, have avoided the troublesome operation of client.
Description of drawings
To combine accompanying drawing and embodiment that the present invention is described further below, in the accompanying drawing:
Fig. 1 is the embodiment sketch map of applied environment of the system of automatic media content download of the present invention;
Fig. 2 is the sketch map of the embodiment among Fig. 1;
Fig. 3 is the sketch map of the embodiment among Fig. 2;
Fig. 4 is the flow chart of the method embodiment of automatic media content download of the present invention.
Embodiment
As shown in Figure 1, be the embodiment sketch map of applied environment of the system of a kind of automatic media content download of the present invention.This system is a customer end/server mode, its client be generally a plurality of portable terminals 30 (for example mobile phone, have the PDA of communication function etc., only illustrate one among the figure), server end comprises media distribution server 10.Wherein media distribution server 10 and portable terminal 30 are gone up at cordless communication network (including but not limited to GSM, CDMA, GPRS, 3G network etc.) and are used WAP etc. to carry out data interaction.
Media distribution server 10 has constituted the system of automatic media content download, and when concrete the realization, it can comprise a plurality of physical equipments via local area network (LAN) or Internet connection, for example WEB server, file server etc.
As shown in Figure 2, be the sketch map of the embodiment of media distribution server 10 among Fig. 1.This media distribution server 10 comprises note establishment unit 11, client side acquiring unit 12, note transmitting element 13 and media content transmission unit 14.
Note is created unit 11 and is used for when new mobile media content release, generates the note that comprises above-mentioned new issue mobile media content identification information and command word according to predetermined format.For example, the form of said short message can be marking head+media name+medium concrete issues.Wherein marking head is special command word, thereby portable terminal 30 can be carried out corresponding down operation according to above-mentioned special command word after resolving this note, for example can use character string " //pushmedia: " as the note marking head.
Client side acquiring unit 12 is used for obtaining the client (for example portable terminal 30) of subscribing to the mobile media content through the retrieval subscription information.Above-mentioned subscription information comprises the user profile and the mobile media content information of subscription, and above-mentioned client comprises portable terminal 30.
Note transmitting element 13 is used for note is created the client that the note of creating unit 11 sends to this media content of subscription that client side acquiring unit 12 obtains.This note transmitting element 13 calls the note transmission interface and sends note to specific portable terminal 30, for example call function SendSM ().
Media content transmission unit 14 is used for according to the download request that comprises the media content sign of client the corresponding mobile phone media content being sent to client.
In said system; In order to realize the stream transmission of media content; Thereby guarantee the fluency of client reading media file; Above-mentioned media content can comprise header, index information and page data piece, and wherein file header information comprises the essential information of media file, for example the title of newspaper or magazine, issue etc.; Index information comprises in the media file essential information of page or leaf, for example should the phase newspaper or the total page number that comprises of magazine, the sign of each page data piece etc.; The page data piece is used for loading the article of newspaper or magazine, and each page data piece has a sign, and one piece of concrete article can be arranged in a page data piece or a plurality of page data piece.Correspondingly; Media content transmission unit 14 comprises: first processing unit; Be used for according to first download request (this request is used to obtain the file header information and the index information of media content) from client, the parsing media content also will be resolved the file header information and the index information that obtain and sent to client; Second processing unit is used for according to second download request (this request is used to obtain the page data piece) from client, and the page or leaf content blocks with media content sends to client successively.Client can be created the local media file after obtaining file header information and index information, and when obtaining each page data piece, the page data piece is joined in the local media file, thereby client can be browsed downloaded contents when downloading.
In said system, can preserve the information that the user subscribes to media content through a subscription information record sheet, it specifically comprises the media content information of user profile and subscription, and is as shown in table 1.Accordingly, media distribution server 10 receives the request from the subscription media content of client through the media content subscriber units, and the generation user subscription information is saved in the subscription information record sheet.
ID (userid) |
Predetermined content |
The predetermined start time |
Scheduled closing time |
10001 |
" Reference News " |
2007/01/01 |
2008/01/01 |
10001 |
The Peoples Daily |
2007/01/01 |
2008/01/01 |
10002 |
The Peoples Daily |
2007/06/01 |
2008/01/01 |
Table 1: subscription information record sheet
In addition, media distribution server 10 also comprises user message table, and this user message table is used for the log-on message of recording user, comprises user mobile phone number, and is as shown in table 2.Note transmitting element 13 obtains the user profile (ID) of subscribing to media content through the querying information of subscription record sheet, and obtains corresponding user mobile phone number through the searching user's information table, then note is sent to corresponding mobile phone.
Table 2: user message table
For example when issue 2007/08/01 phase of the Peoples Daily, note is created 11 of unit according to the messaging format definition, generates note " //pushmedia: People's Daily/2007/08/01 ".Client side acquiring unit 12 is through key 1 and table 2, obtain be scheduled to should the phase content two cell-phone numbers, note transmitting element 13 sends to this two mobile phones with the note of above-mentioned establishment.
As shown in Figure 3, be that the present invention also provides a kind of portable terminal 30 that is used for automatic download system mobile media content, it comprises note resolution unit 31 and media content download unit 32.Wherein:
Note resolution unit 31 is used to resolve the note of reception, obtains media content information to be downloaded and command word.If do not have command word in the note of resolving, then this command analysis word cell 31 is no longer resolved the remainder of this note; If have command word in the note of resolving, then note resolution unit 31 is further resolved and is obtained media content information to be downloaded (for example media content sign).
Media content download unit 32 is resolved the command word that obtains by note resolution unit 31 and is triggered, and according to the media content information media content download to be downloaded in the note.
The note that for example detects reception when note resolution unit 31 then starts media content download unit 32 with character string " //pushmedia: " beginning, imports into simultaneously and will download parameter (being media content information to be downloaded).Media content download unit 32 calls the respective function media content download, for example under MS's Mobile operating system (Windows Mobile), calls function:
ShellExecute(NULL,NULL,
" MediaClient.exe ", // client-side program title
" Reference News/2007/07/02 ", // downloaded contents
NULL,SW_SHOWNORMAL
)
In the above-mentioned portable terminal; For the streaming that realizes the mobile media content is downloaded; This media content download unit 32 at first sends first download request, with the header file information and the index information of media content download, and according to header file information that obtains and index information establishment local media content; Media content download unit 32 sends second download request then, downloading the page data piece successively, and the page data piece of downloading is added in the above-mentioned local media content.
In above-mentioned portable terminal, also can comprise the media content subscriber units, be used to generate the request of subscribing to media content, to subscribe to the media content of appointment.Certainly, this subscription operation also can realize on desktop computer.
As shown in Figure 4, be the sketch map of the method embodiment of a kind of automatic media content download of the present invention.This method comprises:
Step S41: when new mobile media content release, generation comprises the mobile media content identification information of said issue and the note of command word.For example, the form of this note can be marking head+media name+medium concrete issues.
Step S42: the media distribution server obtains the client of subscribing to said mobile media content through the retrieval subscription information.Above-mentioned subscription information comprises media content information and user profile.
Step S43: the note of creating among the step S41 is sent to the client of obtaining among the step S42.Call function SendSM () for example.
Step S44: the download request that comprises the media content sign according to client sends to client with said mobile media content.
In said method, before step S41, also can comprise subscribe request according to client, the step of record subscription information, subscription information comprises the media content information of user profile and subscription.And in step S42, obtain the user profile of subscribing to media content, and obtain corresponding user mobile phone number through searching user's information through inquiring about above-mentioned subscription information.
In said method; Download in order to realize streaming; Above-mentioned media content comprises file header information, index information and page or leaf content blocks; Correspondingly, step S44 comprises: according to first download request from said client, the parsing media content also will be resolved the file header information and the index information that obtain and sent to said client; According to second download request from said client, the page or leaf content blocks with said media content sends to said client successively.
Through above system and method, just can reach purpose, thereby the user can be understood in time and the following up-to-date media content of issuing on the media platform server that is loaded in by server from top to down distribution electronic medium content.
The above; Be merely the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technical staff who is familiar with the present technique field is in the technical scope that the present invention discloses; The variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.