Summary of the invention
Based on this, be necessary to provide a kind of pushing method for media files saving Internet resources.
In addition, there is a need to provide a kind of server for performing pushing method for media files saving Internet resources.
A kind of pushing method for media files, comprising:
Receive and store the first media file pushed;
For described first media file distributes the first unique media identification;
The third party ISP for receiving described first media file selected by acquisition;
Described first media identification is pushed to the third party ISP of described selection.
Wherein in an embodiment, described method also comprises:
Receive and store third party ISP push the second media file;
For described second media file distributes the second unique media identification;
Push described second media identification.
Wherein in an embodiment, described reception also stores the step of the first media file pushed and comprises:
Receive the first media file pushed;
Judge whether the first media file of described propelling movement exists, if so, then do not need again to store, if not, then store the first media file of described propelling movement.
Wherein in an embodiment, described method also comprises:
Set for the first predetermined holding time;
When described first predetermined holding time cut-off, automatically delete described first media file.
Wherein in an embodiment, described method also comprises:
Set for the second predetermined holding time;
When described second predetermined holding time cut-off, automatically delete described second media file.
For performing a server for pushing method for media files, comprising:
Receive memory module, for receiving and storing the first media file pushed;
Distribution module, for distributing the first unique media identification for described first media file;
Select module, for obtaining the selected third party ISP for receiving described first media file;
Pushing module, for being pushed to the third party ISP of described selection by described first media identification.
Wherein in an embodiment, described reception memory module also for receive and store third party ISP push media file;
Described distribution module is also for distributing the second unique media identification for described second media file;
Described pushing module is also for pushing described second media identification.
Wherein in an embodiment, described reception memory module comprises:
Receiving element, for receiving the first media file of propelling movement;
Judging unit, for judging whether the first media file of described propelling movement exists;
Memory cell, for described judge that the first media file of described propelling movement exists time, do not need again to store described first media file, and described judge that the first media file of described propelling movement does not exist time, store the first media file of described propelling movement.
Wherein in an embodiment, described server also comprises:
First arranges module, for setting for the first predetermined holding time;
First removing module, for when described first predetermined holding time cut-off, deletes described first media file automatically.
Wherein in an embodiment, described server also comprises:
Second arranges module, for setting for the second predetermined holding time;
Second removing module, for when described second predetermined holding time cut-off, deletes described second media file automatically.
Above-mentioned pushing method for media files and server, by preserving the first media file, and distribute the first unique media identification, when pushing the first identical media file to any number of third party ISP, only need propelling movement first media identification to third party ISP, do not need to push the first media file all needs to upload first media file at every turn, decreases the data volume of Internet Transmission, take less Internet resources, save Internet resources.
Embodiment
Below in conjunction with specific embodiment and accompanying drawing, the technical scheme to pushing method for media files and server is described in detail, to make it clearly.
As shown in Figure 1, be the flow chart of pushing method for media files in an embodiment.This pushing method for media files can be applicable on the communication equipments such as personal computer, smart mobile phone, palmtop PC.This pushing method for media files, comprising:
Step S102, receives and stores the first media file pushed.
First, user to the server registration of common platform by browser that communication equipment is installed or client, is obtained corresponding user and registers account number.User registers account number and password login on the server of common platform by inputting user in browser or client, and uploads the first media file by browser or client software.First media file can be multimedia file or rich media file.Wherein, the kind of multimedia file is varied, can comprise at least one file in picture, audio frequency, video and the audio-video document etc. in the message that user uploads, such as individual subscriber photo, individual are from shooting the video or other people video file or landscape video file etc.Rich media file refers to the file comprising image, animation and text message, as comprised HTML(HypertextMarkupLanguage, HTML), Javascripts, Realvideo, Realaudio and Flash.Common platform provides the basic platform of general-purpose interface for third party ISP, can be immediate communication platform (as micro-letter platform) or microblog etc.
The server of common platform is preserved after receiving the first media file uploaded.
As shown in Figure 2, be the flow chart regularly deleting the first media file in an embodiment in pushing method for media files, specifically comprise:
Step S202, arranged for the first predetermined holding time.
Concrete, the first predetermined holding time can be determined according to self space, performance etc. by the server of common platform, as can be 3 days or 7 days etc.
Step S204, when the first predetermined holding time cut-off, deletes this first media file automatically.
Regularly automatically delete the multimedia file preserved, the server that can be common platform saves memory space, and keeps the memory property of server.
Step S104, for this first media file distributes the first unique media identification.
After the server of common platform saves the first media file, distribute the first unique media identification, this first media identification can be the first media numbering etc., as V0001.When user uploads multiple media file, the server of common platform is that each media file distributes a unique media identification.When this first media file is multimedia file, distribute unique multi-media tag; When this first media file is rich media file, distribute unique Rich Media's mark.
Step S106, the third party ISP for receiving this first media file selected by acquisition.
First, third party ISP, at the server registration of common platform, obtains corresponding service account numbers.After user signs in the server of common platform, the interactive interface of common platform shows several third party ISPs.These several third party ISPs show with tabular form.The server of common platform obtains user and selects required one or more third party ISPs from several third party ISPs interactive interface, the first media file that this one or more third party ISP sends for receiving user.
Step S108, is pushed to the third party ISP of this selection by this first media identification.
Concrete, after the first media identification being pushed to the third party ISP of selection, third party ISP can obtain the first corresponding media file according to this first media identification from the server of common platform.
Above-mentioned pushing method for media files, by preserving the first media file, and distribute the first unique media identification, when pushing the first identical media file to any number of third party ISP, only need propelling movement first media identification to third party ISP, do not need to push the first media file all to need to upload first media file at every turn, decrease the data volume of Internet Transmission, take less Internet resources, save Internet resources, and do not need user to provide the external linkage of the first media file, simplify operation.
As shown in Figure 3, be the flow chart of pushing method for media files in another embodiment.Be from different in Fig. 1, the second media file that third party ISP returns also adopts the processing mode storing and distribute the second media identification, specifically comprises:
Step S302, receives and stores the first media file pushed.
This first media file can be multimedia file or rich media file.The kind of multimedia file is varied, can comprise at least one file in picture, audio frequency, video and the audio-video document etc. in the message that user uploads, such as individual subscriber photo, individual are from shooting the video or other people video file or landscape video file etc.Rich media file refers to the file comprising image, animation and text message.The server of common platform is preserved after receiving the first media file uploaded.
Step S304, for this first media file distributes the first unique media identification.
After the server of common platform saves the first media file, distribute the first unique media identification, this first media identification can be the first media numbering etc., as V0001.When user uploads multiple media file, the server of common platform is that each media file distributes a unique media identification.
Step S306, the third party ISP for receiving this first media file selected by acquisition.
First, third party ISP, at the server registration of common platform, obtains corresponding service account numbers.After user signs in the server of common platform, the interactive interface of common platform shows several third party ISPs.These several third party ISPs show with tabular form.The server of common platform obtains user and selects required one or more third party ISPs from several third party ISPs interactive interface, the first media file that this one or more third party ISP sends for receiving user.
Step S308, is pushed to the third party ISP of this selection by this first media identification.
Concrete, after the first media identification being pushed to the third party ISP of selection, third party ISP can obtain the first corresponding media file according to this first media identification from the server of common platform.
Step S310, receive and store third party ISP push the second media file.
Concrete, the second media file that third party ISP pushes can be the multimedia file self needing to be pushed to user, also can be the second media file returned according to user search request.This second media file can be multimedia file or rich media file.Such as, the weather condition picture in following 3 days will be pushed to all mobile phone users by third party ISP, then this weather condition picture can be used as the second media file that the 3rd service platform will push.
Such as, third party ISP receives the request of user search weather condition, return to user after finding the weather condition picture in following 5 days, the weather condition picture that this returns also can be used as the second media file that third party ISP is pushed to user.
The server of common platform is preserved after receiving the second media file that third party ISP pushes.As shown in Figure 4, be the flow chart regularly deleting the second media file in an embodiment in pushing method for media files, specifically comprise:
Step S402, the second predetermined holding time of setting.
Concrete, the first predetermined holding time can be determined according to self space, performance etc. by the server of common platform, as can be 3 days or 7 days etc.
Step S404, when this second predetermined holding time cut-off, deletes this second media file automatically.
Regularly automatically delete the media file preserved, the server that can be common platform saves memory space, and keeps the memory property of server.
Step S312, for this second media file distributes the second unique media identification.
Concrete, the server of common platform is that the second media file distributes the second unique media identification.This second media identification can be the second media numbering etc., as GV0001.When third party ISP pushes multiple media file, the server of common platform is that each media file distributes a unique media identification.When this second media file is multimedia file, distribute unique multi-media tag; When this second media file is rich media file, distribute unique Rich Media's mark.Step S314, pushes this second media identification.
Concrete, the second corresponding for the second media file pushed media identification is pushed to user terminal according to the demand of third party ISP by the server of common platform, and user terminal can obtain the second corresponding media file according to the second media identification from the server of common platform.
Above-mentioned pushing method for media files, the second media file pushed also is kept on the server of common platform by third party ISP, and distribute the second unique media identification, second media identification is sent to user terminal, decrease the data volume of Internet Transmission, take less Internet resources, save Internet resources, and do not need the developer of third party ISP to provide the external linkage of the second media file, simplify operation, because the media file provided is kept on the server of common platform, can by manually carrying out security audit, the fail safe of guarantee information.
Further, as shown in Figure 5, in one embodiment, receive and store the step of the first media file pushed and comprise:
Step S502, receives the first media file pushed.
Step S504, judges whether the first media file of this propelling movement exists.
Concrete, when the first media file that user pushes has been kept on the server of common platform, does not need again to store, the memory space of server can have been saved.Judge whether the first media file pushed saves, the informative abstract value of the informative abstract value of the first media file of this propelling movement and the multimedia file of preservation can be calculated respectively, if both informative abstract values are identical, then represent and existed, do not need again to store, if not identical, then represent and do not exist, the first media file of this propelling movement can be stored.
Step S506, does not need again to store.
Step S508, stores the first media file of this propelling movement.
Same, to the second multimedia file that third party ISP pushes, identical judgment mode also can be adopted to judge then to determine whether to store.
In addition, in other embodiments, no matter whether the second media file that the first media file upload user or third party ISP push is identical, all preserving and be that the first media file distributes unique accordingly the first media identification, is that the second media file distributes the second unique media identification.
It should be noted that, first Media Culture and the second Media Culture are only the media file distinguished the media file uploaded of user and third party ISP and push, not as the restriction to this, corresponding first media identification and the second media identification are also the objects in order to distinguish, and the first media identification and the second media identification can adopt unified distribution mode to distribute, as the first media identification be V001, the second media identification is V002.
As shown in Figure 6, be for performing the structural representation of the server of pushing method for media files in an embodiment.For performing a server for pushing method for media files, comprising and receiving memory module 620, distribution module 640, selection module 660, pushing module 680.Wherein:
Receive memory module 620, for receiving and storing the first media file pushed.
First, user to the server registration of common platform by browser that communication equipment is installed or client, is obtained corresponding user and registers account number.User registers account number and password login on the server of common platform by inputting user in browser or client, and uploads the first media file by browser or client software.First media file can be multimedia file or rich media file.Wherein, the kind of multimedia file is varied, can comprise at least one file in picture, audio frequency, video and the audio-video document etc. in the message that user uploads, such as individual subscriber photo, individual are from shooting the video or other people video file or landscape video file etc.Rich media file refers to the file comprising image, animation and text message, as comprised HTML(HypertextMarkupLanguage, HTML), Javascripts, Realvideo, Realaudio and Flash.Common platform provides the basic platform of general-purpose interface for third party ISP, can be immediate communication platform (as micro-letter platform) or microblog etc.
The reception memory module 620 of server is preserved after receiving the first media file uploaded.This server is the server of common platform.
Distribution module 640, for distributing the first unique media identification for this first media file.
After the reception memory module 620 of server saves the first media file, distribution module 640 distributes the first unique media identification, and this first media identification can be the first media numbering etc., as V0001.When user uploads multiple media file, the server of common platform is that each media file distributes a unique media identification.
Select module 660, for obtaining the selected third party ISP for receiving this first media file.
First, third party ISP, at the server registration of common platform, obtains corresponding service account numbers.After user signs in the server of common platform, the interactive interface of common platform shows several third party ISPs.These several third party ISPs show with tabular form.The selection module 660 of the server of common platform obtains user and selects required one or more third party ISPs from several third party ISPs interactive interface, the first media file that this one or more third party ISP sends for receiving user.
Pushing module 680, for being pushed to the third party ISP of described selection by this first media identification.
Concrete, after the first media identification is pushed to the third party ISP of selection by pushing module 680, third party ISP can obtain the first corresponding media file according to this first media identification from the server of common platform.
The above-mentioned server for performing pushing method for media files, by preserving the first media file, and distribute the first unique media identification, when pushing the first identical media file to any number of third party ISP, only need propelling movement first media identification to third party ISP, do not need to push the first media file all to need to upload first media file at every turn, decrease the data volume of Internet Transmission, take less Internet resources, save Internet resources, and do not need user to provide the external linkage of the first media file, simplify operation.
Further, in one embodiment, receive memory module 620 also for receive and store third party ISP push the second media file.
Concrete, the second media file that third party ISP pushes can be the media file self needing to be pushed to user, also can be the second media file returned according to user search request.This second media file can be multimedia file or rich media file.Such as, the weather condition picture in following 3 days will be pushed to all mobile phone users by third party ISP, then this weather condition picture can be used as the second media file that the 3rd service platform will push.
Such as, third party ISP receives the request of user search weather condition, return to user after finding the weather condition picture in following 5 days, the weather condition picture that this returns also can be used as the second media file that third party ISP is pushed to user.
The reception memory module 620 of the server of common platform is preserved after receiving the second media file that third party ISP pushes.
Distribution module 640 is also for distributing the second unique media identification for this second media file.Concrete, the distribution module 640 of the server of common platform is that the second media file distributes the second unique media identification.This second media identification can be the second media numbering etc., as GV0001.When third party ISP pushes multiple media file, the distribution module 640 of the server of common platform is that each media file distributes a unique media identification.When this second media file is multimedia file, distribute unique multi-media tag; When this second media file is rich media file, distribute unique Rich Media's mark.
Pushing module 680 is also for pushing this second media identification.
Concrete, the second corresponding for the second media file pushed media identification is pushed to user terminal according to the demand of third party ISP by the server of common platform, and user terminal can obtain the second corresponding media file according to the second media identification from the server of common platform.
The above-mentioned server for performing pushing method for media files, the second media file pushed also is kept on the server of common platform by third party ISP, and distribute the second unique media identification, second media identification is sent to user terminal, decrease the data volume of Internet Transmission, take less Internet resources, save Internet resources, and do not need the developer of third party ISP to provide the external linkage of the second media file, simplify operation, because the media file provided is kept on the server of common platform, can by manually carrying out security audit, the fail safe of guarantee information.
As shown in Figure 7, be the structural representation receiving memory module in an embodiment.This reception memory module 620 comprises receiving element 622, judging unit 624 and memory cell 626.Wherein:
Receiving element 622, for receiving the first media file of propelling movement.
Judging unit 624, for judging whether the first media file of this propelling movement exists.
Memory cell 626, for when this judges that the first media file of this propelling movement exists, does not need again to store this first media file, and when this judges that the first media file of this propelling movement does not exist, stores the first media file of this propelling movement.
Concrete, when the first media file that user pushes has been kept on the server of common platform, does not need again to store, the memory space of server can have been saved.Judging unit 624 judges whether the first media file pushed saves, the informative abstract value of the informative abstract value of the first media file of this propelling movement and the multimedia file of preservation can be calculated respectively, if both informative abstract values are identical, then represent and existed, do not need again to store, if not identical, then represent and do not exist, the first media file of this propelling movement can be stored by memory cell 626.
Same, to the second media file that third party ISP pushes, identical judgment mode also can be adopted to judge then to determine whether to store.
In addition, in other embodiments, no matter whether the second media file that the first media file upload user or third party ISP push is identical, all preserving and be that the first media file distributes unique accordingly the first media identification, is that the second media file distributes the second unique media identification.
As shown in Figure 8, in another embodiment, server receiving memory module 620, distribution module 640 except comprising, selecting module 660, pushing module 680, also comprises first and arranges module 682 and the first removing module 684.Wherein:
First arranges module 682, for setting for the first predetermined holding time.
Concrete, the first predetermined holding time can be determined according to self space, performance etc. by the server of common platform, as can be 3 days or 7 days etc.
First removing module 684, for when this first predetermined holding time cut-off, deletes this first media file automatically.
Regularly automatically delete the first media file preserved, the server that can be common platform saves memory space, and keeps the memory property of server.
As shown in Figure 9, for server in another embodiment receiving memory module 620, distribution module 640 except comprising, selecting module 660, pushing module 680, also comprise second and module 686 and the second removing module 688 are set.Wherein:
Second arranges module 686, for setting for the second predetermined holding time.
Concrete, the first predetermined holding time can be determined according to self space, performance etc. by the server of common platform, as can be 3 days or 7 days etc.
Second removing module 688, for when this second predetermined holding time cut-off, deletes this second media file automatically.
Regularly automatically delete the second media file preserved, the server that can be common platform saves memory space, and keeps the memory property of server.
In other embodiments, server can comprise and receives memory module 620, distribution module 640, selects module 660, pushing module 680, first to arrange module 682, first removing module 684, second and arrange module 686 and the first removing module 688.
The functional module that the modules of above-mentioned server has been program circuit and has divided, functional module may divide difference as required, but the change done under design of the present invention is all within protection range.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.