CN110335089A - A kind of processing method of media file, apparatus and system - Google Patents
A kind of processing method of media file, apparatus and system Download PDFInfo
- Publication number
- CN110335089A CN110335089A CN201910627032.7A CN201910627032A CN110335089A CN 110335089 A CN110335089 A CN 110335089A CN 201910627032 A CN201910627032 A CN 201910627032A CN 110335089 A CN110335089 A CN 110335089A
- Authority
- CN
- China
- Prior art keywords
- media file
- task
- result
- playback terminal
- agreement
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0241—Advertisements
- G06Q30/0242—Determining effectiveness of advertisements
- G06Q30/0245—Surveys
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0241—Advertisements
- G06Q30/0248—Avoiding fraud
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- Finance (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Marketing (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of processing methods of media file, apparatus and system.This method comprises: generating task list according to the intelligent contract got, wherein intelligent contract is the agreement that the contract signed according to client and service provider generates, and contract is the agreement for launching the media file of customer requirement on the playback terminal that service provider provides;According to task list to playback terminal assigned tasks;Message is completed in response to the task that playback terminal is sent, comparison task completes message and task list, obtains task versus result;Task comparison result is uploaded to block chain network.Generate task list by intelligent contract enables client that the play parameter of media file is arranged according to task list to playback terminal assigned tasks;Receiving for task is completed into message and task list compares, the shoe duty behavior of service provider is monitored in real time, ensures the interests of client.
Description
Technical field
The present invention relates to internet of things field, and in particular to a kind of processing method of media file, apparatus and system.
Background technique
With the development of technology of Internet of things, advertisement terminal is thrown by the advertisement that internet is connected very universal, common
The mode of putting has: by advertisement of televising, or the electronic display by being arranged in escalator or building plays advertisement, or logical
It crosses and plays the various ways such as advertisement in the electronic display on the vehicles.
Currently, client is after signing advertising service contract with advertising service quotient, the play parameter of advertisement and ad content
Distribution is all operated completion by advertising service quotient, and the play parameter of the advertisement can not be arranged in client in real time.Importantly, objective
Whether family is difficult to monitor in real time advertising service quotient according to the play time of contract agreement, broadcasting time and advertisement playback terminal
The parameters such as quantity are launched, and not can guarantee advertising service quotient and distort or forge to the ad content launched,
So that the equity of client is unable to get guarantee.
Summary of the invention
For this purpose, the present invention provides a kind of processing method of media file, apparatus and system, with solve in the prior art due to
Client can not be real-time caused by the play parameter of advertisement and the distribution of ad content are all operated completion by advertising service quotient
Advertising service quotient is monitored whether according to parameters such as play time, the quantity of broadcasting time and advertisement playback terminal of contract agreement
The problem of carrying out dispensing advertisement.The problem to be solved in the present invention is: advertising service quotient being avoided not arrange to launch advertisement according to contract.
To achieve the goals above, first aspect present invention provides a kind of processing method of media file, is applied to service
Device, method include: to generate task list according to the intelligent contract got, wherein intelligent contract is according to client and service provider
The agreement that the contract of signing generates, contract are the pact that the media file of customer requirement is launched on the playback terminal that service provider provides
It is fixed;According to task list to playback terminal assigned tasks;Message is completed in response to the task that playback terminal is sent, comparison task is complete
At message and task list, task versus result is obtained;Task comparison result is uploaded to block chain network.
Wherein, task completes message, comprising: corresponding first identifying code of the number of media file, media file and each
The actual play time parameter of media file, wherein the first identifying code is the identifying code that playback terminal is generated according to media file;
Task list, comprising: the agreement of corresponding second identifying code of the number of media file, media file and each media file plays
Time parameter, wherein the second identifying code is the identifying code that server is generated according to media file.
Wherein, message is completed in response to the task that playback terminal is sent, comparison task completes message and task list obtains
Task versus result, comprising: comparison task completes the media file in the number and task list of the media file in message
Number generates the first comparing result;The first identifying code and the second identifying code are compared, the second comparing result is generated;Comparison is actually broadcast
Time parameter and agreement play time parameter are put, third comparing result is generated;According to the first comparing result, the second comparing result and
Third comparing result generates task versus result.
Wherein, task completes message further include: the number of actual playback terminal;Task list further include: agreement is broadcast
Put the number and agreement broadcasting time of terminal, wherein agreement broadcasting time is that the playback terminal of agreement plays time of media file
Number.
Wherein, after comparison result is uploaded to block chain network, further includes: the completion number of statistics task, task
Complete number be playback terminal actual play media file number;According to the completion number of task, task complete message and
Task list generates statistical result of honouring an agreement.
Wherein, message and task list are completed according to the completion number of task, task, generate statistical result of honouring an agreement, comprising:
The number of the number of the playback terminal of agreement and actual playback terminal is compared, the first verification result is generated;By task
Completion number and agreement broadcasting time compare, generate the second verification result;According to the first verification result, the second verifying knot
Task versus in fruit and each block is as a result, generate statistical result of honouring an agreement.
Wherein, before generating task list according to the intelligent contract got, further includes: sent in response to client terminal
Registration message, determine that client terminal is registered;The media file that client terminal is sent is received, Hash meter is carried out to media file
It calculates, the cryptographic Hash of media file is generated, using cryptographic Hash as the second identifying code;It is raw according to the contract that client and service provider sign
At intelligent contract.
To achieve the goals above, second aspect of the present invention provides a kind of processing unit of media file, comprising: generates mould
Block generates task list for the intelligent contract that basis is got, wherein intelligent contract is client and service provider's signing, use
In the agreement for the media file for launching customer requirement on the playback terminal that service provider provides;Dispatch module, for according to task
List, to playback terminal assigned tasks;Contrast module, the task for sending in response to playback terminal complete message, and comparison is appointed
Message and task list are completed in business, obtain task versus result;Uploading module, for task comparison result to be uploaded to block chain
Network.
Wherein, it includes: the number of media file, corresponding first identifying code of media file and each matchmaker that task, which completes message,
The actual play time parameter of body file, wherein the first identifying code is that playback terminal is generated according to media file;Task list packet
It includes: the agreement play time parameter of corresponding second identifying code of the number of media file, media file and each media file,
In, the second identifying code is that server is generated according to media file;Contrast module includes: the first comparison submodule, is appointed for comparing
The number of the media file in message is completed in business, and, the number of the media file in task list generates the first comparing result;
Second compares submodule, for comparing the first identifying code and the second identifying code, generates the second comparing result;Third compares submodule
Block generates third comparing result for comparing actual play time parameter and agreement play time parameter;As a result submodule is generated
Block, for generating task versus result according to the first comparing result, the second comparing result and third comparing result.
To achieve the goals above, third aspect present invention provides a kind of processing system of media file, comprising: successively leads to
Believe client terminal, server and the playback terminal of connection;Client terminal, for upload media file to server;Server is used
In the processing method for executing media file provided by the invention;Playback terminal, the media for receiving and Play Server is sent
File carries out Hash calculation to media file, generates the cryptographic Hash of media file, using cryptographic Hash as the first identifying code, sends
The carrying the first identifying code of the task completes message to server.
The present invention has the advantage that
Task list is generated according to intelligent contract, and is enabled a customer to according to task list to playback terminal assigned tasks
The play parameter of media file, i.e., play time, broadcasting time and the quantity of playback terminal etc. of intelligent contract agreement are set
Parameter;Receiving for task is completed into message and task list compares, the shoe duty behavior of service provider is monitored in real time, ensures the benefit of client
Benefit.
Detailed description of the invention
The drawings are intended to provide a further understanding of the invention, and constitutes part of specification, with following tool
Body embodiment is used to explain the present invention together, but is not construed as limiting the invention.
Fig. 1 is a kind of processing method flow diagram of the media file provided in first embodiment of the invention;
Fig. 2 is a kind of processing method flow diagram of the media file provided in second embodiment of the invention;
Fig. 3 is a kind of processing unit block diagram of the media file provided in third embodiment of the invention;
Fig. 4 is the block diagram of the contrast module provided in third embodiment of the invention;
Fig. 5 is a kind of processing system block diagram of the media file provided in four embodiment of the invention.
In the accompanying drawings:
301: generation module 302: dispatch module
303: contrast module 304: uploading module
401: the first comparison submodules 402: the second compare submodule
403: third compares submodule 404: result generates submodule
501: client terminal 502: server
503: playback terminal
Specific embodiment
Below in conjunction with attached drawing, detailed description of the preferred embodiments.It should be understood that this place is retouched
The specific embodiment stated is merely to illustrate and explain the present invention, and is not intended to restrict the invention.
The first embodiment of the present invention is related to a kind of processing methods of media file.For media file to be arranged in real time
Play parameter monitors the shoe duty behavior of service provider in real time, it is ensured that the media file of dispensing is not tampered or forges, to ensure visitor
The interests at family.
The realization details of the processing method of the media file in present embodiment is specifically described below, it is interior below
Hold the realization details for only understanding this programme for convenience, not implements the necessary of this programme.
Fig. 1 is the flow chart of the processing method of the media file in present embodiment, and this method can be used for server.The party
Method may include following steps.
In a step 101, according to the intelligent contract got, task list is generated.
Wherein, intelligent contract is the agreement that the contract signed according to client and service provider generates, which is in service provider
The agreement of the media file of customer requirement is provided on the playback terminal of offer.
It should be noted that having arranged client in the intelligent contract got wishes the media file played, and service
The playback terminal that quotient is capable of providing.It, can be by playback terminal distributing installation in public places such as building, elevators in specifically used
In, it can be seen by many people convenient for the content that playback terminal is played, achieve the purpose of publicity.Playback terminal can be by wireless
Communication network or wireline communication network are linked into internet, and specifically, which can be wireless by the 4th generation or the 5th generation
The multiple networks form such as communication network or WLAN (WIFI) is linked into internet.
Specifically, task list includes: the number of media file, corresponding second identifying code of media file and each media
The agreement play time parameter of file, wherein the second identifying code is the identifying code that server is generated according to media file.It is therein
Second identifying code is the identifying code that server is generated according to the content of media file, and second identifying code and the media file are one by one
It is corresponding, it is the mark of the unique identification contents of media files on server.The content of the media file may include the picture played
The much informations such as product information or verbal description that information, video are shown.Agreement play time parameter may include playing starting
Date plays initial time, plays end time and broadcasting Close Date etc., can be specifically limited according to actual needs.
For example, client and service provider are about scheduled on broadcasting media file B on playback terminal A, and require only 2019 4
The moon 5 played in 9 points to 10 points this periods of every morning to April 30;Client and service provider are about scheduled on playback terminal C
Upper broadcasting media file D, and require only 9 points to 10 points of the every morning in May 5 to May 30 in 2019 this when
Between play in section;... etc., client is different for the broadcast request of different media files, can specifically be looked by task list
Find corresponding parameter.
Server automatically generates task list according to the automatic execution field in intelligent contract.By the task list, make
The corresponding relationship of media file and playback terminal is clear, i.e., which media file is specifically played on which playback terminal, for example,
According to the record in task list, media file B is played on playback terminal A, and media file D etc. is played on playback terminal C
Deng.
In a step 102, according to task list to playback terminal assigned tasks.
It should be noted that according to the corresponding relationship of media file and playback terminal in task list, by media file
It is distributed on corresponding playback terminal, playback terminal is allowed to play corresponding media file according to agreement.For example, according to appointing
The record being engaged in list, sends media file B on playback terminal A and plays out, send playback terminal for media file D
Played out on C etc..
When playback terminal receives the media file, playback terminal can according to the particular content of the media file generate with
One-to-one first identifying code of the media file, and save first identifying code.First identifying code be on playback terminal only
One can characterize the mark of the contents of media files.
In step 103, message is completed in response to the task that playback terminal is sent, comparison task completes message and task arranges
Table obtains task versus result.
It should be noted that the every broadcasting for completing a media file of playback terminal, will generate a task completion and disappear
Breath, and the task is completed message sending to server, to facilitate server that task is completed message and pair in task list
It answers task to compare, determines the performance of each task.
Wherein, it includes: the number of media file, corresponding first identifying code of media file and each matchmaker that task, which completes message,
The actual play time parameter of body file, wherein the first identifying code is the identifying code that playback terminal is generated according to media file.
At one in the specific implementation, comparison task completes the media in the number and task list of the media file in message
The number of file generates the first comparing result;The first identifying code and the second identifying code are compared, the second comparing result is generated;Comparison
Actual play time parameter and agreement play time parameter, generate third comparing result;According to the first comparing result, the second comparison
As a result with third comparing result, task versus result is generated.
When server, which receives a task, completes message, number, the first verifying of media file therein can be extracted
Code and actual play time parameter, the above parameter is compared with the corresponding parameter in task list, obtains task versus knot
Fruit.Specifically, the number of the media file in the number and task list of the media file in message is completed by comparison task,
Determine that the task completes message is specifically which media file be used to play, and generates the first comparing result.If first comparison
It as a result is identical, then it represents that it is the media file arranged in task list that the task, which completes the media file that message is included,;It is no
Then, then it represents that the media file that the media file is not due up then no longer carries out subsequent contrast.For example, when task completes message
In the number of media file be 1100, and the media file that number is 1100 has also been inquired in task list, then the
One comparing result be it is identical, continue subsequent contrast, otherwise, if in task list inquire less than number be 1100 media
File then exits, no longer progress subsequent contrast, to save the processing time of server.
When the first comparing result is identical, continues to compare the first identifying code and the second identifying code, determine the media file
Content whether be tampered or forge.Because the first identifying code is the identifying code that playback terminal is generated according to the content of media file,
And the second identifying code is the identifying code that server is generated according to the content of the media file, therefore, if the content of the media file
It is not tampered with or forges, then the first identifying code and the second identifying code are identical, are otherwise just different.Pass through comparison first
Identifying code and the second identifying code obtain the second comparing result.If the second comparing result be it is identical, continue subsequent contrast, otherwise,
It no longer carries out subsequent contrast and improves the treatment effeciency of server to save the processing time of server.
When the first comparing result and the second comparing result are all identical, continue to compare actual play time parameter and agreement
Play time parameter determines the period broadcasting the media file whether media file arranges according to contract.Specifically, when broadcasting
Between parameter may include playing from date, playing initial time, play the end time and play Close Date etc., can be according to reality
It needs to be specifically limited.By comparing actual play time parameter and agreement play time parameter, third comparing result is got,
According to the above comparison, the first comparing result, the second comparing result and third comparing result are obtained, comprehensive judgement generates task versus
As a result.It enables the server to sufficiently verify whether playback terminal plays corresponding matchmaker according to the parameters in task list
Body file, and then the shoe for monitoring service provider in real time blames behavior.
At step 104, task comparison result is uploaded to block chain network.
Server receive each playback terminal transmission task complete message, and by each task complete message all with
Task list compares, and obtains multiple tasks comparing result, and all task versus results are uploaded to block chain network,
So that all service nodes in block chain network can inquire these task versus as a result, knowing in task list in turn
The performance of task.
It should be noted that server uploads task pair by the respective service node in access block chain network module
Than result into block chain network, these task versus results are protected after confirming by common recognition method and passing through safety verification
It is stored in corresponding database.Block chain network therein is the alliance's chain or publicly-owned catenary system accessed using trusted authorization, is used
In much informations such as information, the information of service provider, the broadcasting record of media file and the intelligent contracts for saving client;In block chain
In network, key assignments (Key-Value, KV) storing data library or structured query language (Structured Query can be used
Language, SQL) database carry out data storage;By Public Key Infrastructure (Public Key Infrastructure,
PKI authentication center (Certificate Authority, CA) mechanism in) carrys out the authorization of access and the application of control node.
According to network size and the quantity and performance requirement of application terminal, different common recognition methods, including but not limited to Raft are selected
Algorithm, practical Byzantine failure tolerance (Practical Byzantine Fault Tolerance, PBFT) the bottom common recognition of knowing together are calculated
Method, dPBFT common recognition algorithm, equity prove that (Proof of Stake, PoS) common recognition algorithm and work prove (Proof of
Work, PoW) many algorithms such as algorithm of knowing together.
In step 105, the completion number of statistics task, the completion number of task are playback terminal actual play media text
The number of part.
Server is according to task versus as a result, counting to the performance of each task in task list, acquisition
The number that the completion number of each task, i.e. playback terminal actual play correspond to media file.For example, passing through task known to statistics
1 completion number is 5 times, and the completion number of task 2 is 6 times, and the completion number of task 3 is 7 inferior, i.e., playback terminal is practical broadcasts
The number for putting media file 1 is 5 times, and the number of actual play media file 2 is 6 times, and the number of actual play media file 3 is
7 is inferior, and all task performances are summarized, and determines practical time being played of each media file in task list
Number.
In step 106, message and task list are completed according to the completion number of task, task, generation, which is honoured an agreement, counts knot
Fruit.
It should be noted that task completes message further include: the number of actual playback terminal;Task list further include:
The number and agreement broadcasting time of the playback terminal of agreement, wherein agreement broadcasting time is that the playback terminal of agreement plays media
The number of file.
At one in the specific implementation, the number of the number of the playback terminal of agreement and actual playback terminal is carried out pair
Than generating the first verification result;The completion number of task and agreement broadcasting time are compared, the second verification result is generated;
According to the task versus in the first verification result, the second verification result and each block as a result, generating statistical result of honouring an agreement.
After the contract between client and service provider expires, server can be completed to disappear according to the completion number of task, task
Breath and task list generate statistical result of honouring an agreement, and are settled accounts by the statistical result of honouring an agreement, and determine that client needs to pay clothes
Business is quotient's how many reward.Specifically, the volume of the number and actual playback terminal firstly the need of the playback terminal of comparison agreement is serviced
Number, it is that server is reported to by the playback terminal arranged that the task that determines, which completes message, generates the first verification result;It compares and appoints again
The completion number and agreement broadcasting time of business, determine whether the playback terminal of the agreement plays according to broadcasting time as defined in contract
Corresponding media file generates the second verification result;Finally the task versus result in each block is verified, that is, is checked
The number for the media file that playback terminal is played whether be the media file required in intelligent contract number, when actual play
Between parameter it is whether consistent with the requirement in intelligent contract, and whether the content of media file played be tampered or forge;
Server is by the task versus in the first verification result, the second verification result and each block as a result, generating statistics knot of honouring an agreement
Fruit, and then determine that client needs to pay the remuneration of service provider.
In the present embodiment, task list is generated according to intelligent contract, and assigned according to task list to playback terminal
Task, enables a customer to the play parameter of setting media file, i.e., the play time of intelligent contract agreement, broadcasting time and broadcasts
Put the parameters such as the quantity of terminal;Received task is completed into message and task list compares, monitors the shoe duty of service provider in real time
Behavior, it is ensured that the media file of dispensing is not tampered or forges, and ensures the interests of client.
Second embodiment of the present invention is related to a kind of processing method of media file.Second embodiment is implemented with first
Mode is roughly the same, is in place of the main distinction: before generating task list according to the intelligent contract got, it is also necessary to connect
The media file that the client terminal that is registered on server is sent is received, and Hash calculation is carried out to the media file, generates the
Two identifying codes generate intelligent contract according to the contract that client and service provider sign.
Fig. 2 is the flow chart of the processing method of the media file in present embodiment, and this method can be used for server.The party
Method may include following steps.
In step 201, the registration message sent in response to client terminal, determines that client terminal is registered.
At one in the specific implementation, client sends registration message to server by client terminal, request is registered to service
On device, registration message therein includes the essential information of the client, and by these essential informations, server confirms the client terminal
It whether is legal terminal, however, it is determined that the client is legal terminal, then returns to the message that succeeds in registration to the client terminal, so that the visitor
In the endpoint to register to server of family, and then the client terminal is enable to be communicated with the server;Otherwise, registration failure is sent
Message gives the client terminal, which just can not be with server communication.
Wherein, registration message not only may include the information such as the number of client terminal, the position at place and relevant parameter, may be used also
To include the title of client, a variety of essential informations such as contact method are set, other information that do not illustrate according to specific needs
Also within the scope of the present invention, no longer illustrate one by one herein.
It should be noted that server verifying client terminal whether be legal terminal method more than one, such as: it is logical
Cross search database in customer data, check the client terminal essential information whether with the customer data kissing in database
It closes, however, it is determined that the essential information of the client terminal is consistent with some customer data in database, then it represents that the client terminal is
Legal terminal, otherwise, the client terminal are illegal terminal.Other not illustrated verification methods are also in protection model of the invention
In enclosing, details are not described herein.
In step 202, the media file that client terminal is sent is received, Hash calculation is carried out to media file, generates matchmaker
The cryptographic Hash of body file, using cryptographic Hash as the second identifying code.
It should be noted that media file is uploaded to server by client terminal by client, media file therein can
To be video ads, picture, text or other any files for publicity shown.It enables the server to the media
The content of file carries out Hash calculation and obtains the cryptographic Hash of the media file by the calculating of hash function, the cryptographic Hash with should
Media file corresponds, and is the unique identification for characterizing the contents of media files, using the cryptographic Hash as the media file
The second identifying code, whether the content for the subsequent authentication media file be tampered or forge.
Specifically, the content of media file may include the pictorial information played, the product information that is shown of video or text
The much informations such as information, the then cryptographic Hash generated also include diversified forms, such as characterize cryptographic Hash, the characterization video letter of pictorial information
The cryptographic Hash of breath or the cryptographic Hash etc. for characterizing text information, are illustrated below:
When the content of media file is pictorial information, specifically, which includes personage, background and color etc.
Information, for example, for show certain clothes comfort level personage draw a portrait photo, by different people wear the clothes do it is different
Picture when movement embodies the comfort level and practicability of clothes.Hash calculation is carried out according to the above pictorial information, is obtained unique
Characterize the cryptographic Hash of pictorial information.
When the content of media file is video information, specifically, which includes specific activity scene, needs to be situated between
The information of the product to continue and the information such as the purposes of the product and effect, such as: one section of quality for showing controllability seat
The video of energy, when adapting to the desk of different height, user's adaptability adjusts the height of seat, while the backrest of seat
Also different angles can be adjusted according to specific requirements.Hash calculation is carried out according to the above video information, obtains unique table
Levy the cryptographic Hash of video information.
When the content of media file is text information, specifically, which includes the word of the size of text, text
The information such as body, the affective characteristics to be expressed, the function of the description of the product information to be introduced and the product or purposes introduction,
For example, carrying out Hash according to the above text information come the text for showing the characteristic of certain commodity of giving prominence to the key points using No. two red words
It calculates, obtains the cryptographic Hash for uniquely characterizing text information.
By the above different types of cryptographic Hash, it is correspondingly arranged the second identifying code for media file, embodies media file
The specific features of content.
In step 203, the contract signed according to client and service provider generates intelligent contract.
It should be noted that client and service provider sign contract, which is for playing eventually provided by service provider
The agreement of the media file of customer requirement is launched on end.Server generates intelligent contract, intelligence contract therein according to the contract
It is the promise defined in digital form, is the assembler language being programmed on block chain.Appointed by the automatic execution in intelligent contract
Business field to execute the treaty content between client and service provider automatically.For example, executing task field automatically may include playing eventually
The number at end, the number of media file and play time parameter etc., play time parameter therein may include play from date,
Play initial time, play the end time and play the Close Date etc..For example, according to actual needs, client, which sets, plays starting
On the March 5 that date is 2019, the Close Date is May 15, and when initial time is the daily morning 9, the broadcasting end time is
When daily 10, during this period of time, the media file B of customer requirement is played on the playback terminal A that service provider provides.Wherein
Automatic execution task field can be arranged according to the practical agreement in contract, it is not limited to the example above explanation, other are not lifted
The information of example is also within the scope of the present invention, and details are not described herein.
In step 204, according to the intelligent contract got, task list is generated.
In step 205, according to task list to playback terminal assigned tasks.
In step 206, message is completed in response to the task that playback terminal is sent, comparison task completes message and task arranges
Table obtains task versus result.
In step 207, task comparison result is uploaded to block chain network.
In a step 208, the completion number of statistics task, the completion number of task are playback terminal actual play media text
The number of part;
In step 209, message and task list are completed according to the completion number of task, task, generation, which is honoured an agreement, counts knot
Fruit.
It should be noted that step 204~209 in the present embodiment, with step 101~106 in first embodiment
Content it is identical, details are not described herein.
In the present embodiment, by the client terminal being registered on server, upload media file makes to server
Server carries out Hash calculation to the media file, generate the second identifying code, and will be on second identifying code and playback terminal
The first identifying code passed compares, it is ensured that the content of media file is not tampered or forges, and ensure that the interests of client.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or
Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent
It is interior;To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm is not changed
Core design with process is all in the protection scope of the patent.
Third embodiment of the present invention is related to a kind of processing unit of media file, and the specific implementation of the device can be found in
The associated description of first embodiment, overlaps will not be repeated.It is worth noting that device in present embodiment is specific
Implement the associated description that also can be found in second embodiment, but is not limited to both examples above, other unaccounted implementations
Example is also within the protection scope of the present apparatus.
As shown in figure 3, the device mainly includes: generation module 301, for generating and appointing according to the intelligent contract got
Be engaged in list, wherein intelligent contract be it is that client and service provider sign, for launching client on the playback terminal that service provider provides
It is required that media file agreement;Dispatch module 302 is used for according to task list, to playback terminal assigned tasks;Contrast module
303, the task for sending in response to playback terminal completes message, and comparison task completes message and task list, obtains task
Comparing result;Uploading module 304, for task comparison result to be uploaded to block chain network.
In one example, it includes: the number of media file, corresponding first identifying code of media file that task, which completes message,
With the actual play time parameter of each media file, wherein the first identifying code is that playback terminal is generated according to media file;Appoint
When business list includes: that the agreement of the number of media file, corresponding second identifying code of media file and each media file plays
Between parameter, wherein the second identifying code be server generated according to media file.
As shown in figure 4, contrast module 303 includes: the first comparison submodule 401, completed in message for comparing task
The number of media file, and, the number of the media file in task list generates the first comparing result;Second compares submodule
402, for comparing the first identifying code and the second identifying code, generate the second comparing result;Third compare submodule 403, for pair
Than actual play time parameter and agreement play time parameter, third comparing result is generated;As a result it generates submodule 404 and is used for root
According to the first comparing result, the second comparing result and third comparing result, task versus result is generated.
In the present embodiment, task list is generated by generation module, dispatch module makes to playback terminal assigned tasks
The play parameter of media file can be arranged in client in real time, i.e., play time, broadcasting time and the broadcasting of intelligent contract agreement are eventually
The parameters such as the quantity at end;Receiving for task is completed by message by contrast module again and task list compares, real time monitoring service
The shoe of quotient blames behavior, it is ensured that the media file of dispensing is not tampered or forges, and ensures the interests of client.
It is noted that each module involved in present embodiment is logic module, and in practical applications, one
A logic unit can be a physical unit, be also possible to a part of a physical unit, can also be with multiple physics lists
The combination of member is realized.In addition, in order to protrude innovative part of the invention, it will not be with solution institute of the present invention in present embodiment
The technical issues of proposition, the less close unit of relationship introduced, but this does not indicate that there is no other single in present embodiment
Member.
4th embodiment of the invention is related to a kind of processing system of media file, as shown in figure 5, the system is specifically wrapped
It includes: client terminal 501, server 502 and the playback terminal 503 successively communicated to connect;Client terminal 501 is for upload media text
Part is to server 502;Server 502 is used to execute the processing method of the media file in first or second embodiment;It plays
Terminal 503 is used for the media file received and Play Server 502 is sent, carries out Hash calculation to media file, generates media
The cryptographic Hash of file sends the task completion message for carrying the first identifying code to service using cryptographic Hash as the first identifying code
Device 502.
In the present embodiment, it is enabled the server to server according to intelligence by client terminal upload media file
Can contract agreement play parameter, the media file in playing task list;Playback terminal carries out the media file received
Play, and to the media file carry out Hash calculation, using the cryptographic Hash being calculated as the first identifying code, will carry this first
The task of identifying code completes message and is uploaded to server, enables the server to complete task message and task list carries out pair
Than, it is ensured that the media file that client launches is not tampered or forges, and ensures the interests of client.
It is understood that the principle that embodiment of above is intended to be merely illustrative of the present and the exemplary implementation that uses
Mode, however the present invention is not limited thereto.For those skilled in the art, essence of the invention is not being departed from
In the case where mind and essence, various changes and modifications can be made therein, these variations and modifications are also considered as protection scope of the present invention.
Claims (10)
1. a kind of processing method of media file, which is characterized in that be applied to server, which comprises
According to the intelligent contract got, task list is generated, wherein the intelligence contract is to sign according to client and service provider
Contract generate agreement, the contract is the media that the customer requirement is launched on the playback terminal that the service provider provides
The agreement of file;
According to the task list to the playback terminal assigned tasks;
Message is completed in response to the task that the playback terminal is sent, the task is compared and completes message and the task list,
Obtain task versus result;
The task comparison result is uploaded to block chain network.
2. the processing method of media file according to claim 1, which is characterized in that the task completes message, comprising:
Corresponding first identifying code of the number of the media file, the media file and each media file are actually broadcast
Put time parameter, wherein first identifying code is the identifying code that the playback terminal is generated according to the media file;
The task list, comprising:
The agreement of corresponding second identifying code of the number of the media file, the media file and each media file is broadcast
Put time parameter, wherein second identifying code is the identifying code that the server is generated according to the media file.
3. the processing method of media file according to claim 2, which is characterized in that described in response to the playback terminal
The task of transmission completes message, compares the task and completes message and task list acquisition task versus result, comprising:
Compare the media file in the number and the task list of the media file in the task completion message
Number, generate the first comparing result;
First identifying code and second identifying code are compared, the second comparing result is generated;
The actual play time parameter and the agreement play time parameter are compared, third comparing result is generated;
According to first comparing result, the second comparing result and the third comparing result, the task versus result is generated.
4. the processing method of media file according to claim 2, which is characterized in that the task is completed message and also wrapped
It includes:
The number of actual playback terminal;
The task list further include:
The number and agreement broadcasting time of the playback terminal of agreement, wherein the agreement broadcasting time is the broadcasting of the agreement
The number of media file described in terminal plays.
5. the processing method of media file according to claim 4, which is characterized in that it is described will be on the comparison result
After reaching block chain network, further includes:
The completion number of the task is counted, the completion number of the task is the text of media described in the playback terminal actual play
The number of part;
Message and the task list are completed according to the completion number of the task, the task, generates statistical result of honouring an agreement.
6. the processing method of media file according to claim 5, which is characterized in that the completion according to the task
Number, the task complete message and the task list, generate statistical result of honouring an agreement, comprising:
The number of the number of the playback terminal of the agreement and the actual playback terminal is compared, the first verifying is generated
As a result;
The completion number of the task and the agreement broadcasting time are compared, the second verification result is generated;
According to the task versus in first verification result, second verification result and each block as a result, generating
The statistical result of honouring an agreement.
7. the processing method of media file according to claim 2 or 3, which is characterized in that got in the basis
Intelligent contract generates before task list, further includes:
In response to the registration message that the client terminal is sent, determine that the client terminal is registered;
The media file that the client terminal is sent is received, Hash calculation is carried out to the media file, generates the matchmaker
The cryptographic Hash of body file, using the cryptographic Hash as second identifying code;
According to the contract that the client and the service provider sign, the intelligent contract is generated.
8. a kind of processing unit of media file characterized by comprising
Generation module, for generating task list according to the intelligent contract that gets, wherein the intelligence contract be client with
The pact of media file that service provider signs, for launching the customer requirement on the playback terminal that the service provider provides
It is fixed;
Dispatch module, for according to the task list, Xiang Suoshu playback terminal assigned tasks;
Contrast module, task for sending in response to the playback terminal complete message, compare the task complete message with
The task list obtains task versus result;
Uploading module, for the task comparison result to be uploaded to block chain network.
9. the processing unit of media file according to claim 8, which is characterized in that the task completes message and includes:
When the actual play of corresponding first identifying code of the number of the media file, the media file and each media file
Between parameter, wherein first identifying code be the playback terminal generated according to the media file;
The task list includes: the number of the media file, corresponding second identifying code of the media file and each institute
State the agreement play time parameter of media file, wherein second identifying code is that server is generated according to the media file;
The contrast module includes:
First compares submodule, and the number of the media file in message is completed for comparing the task, and, the task
The number of the media file in list generates the first comparing result;
Second compares submodule, for comparing first identifying code and second identifying code, generates the second comparing result;
Third compares submodule, for comparing the actual play time parameter and the agreement play time parameter, generation the
Three comparing results;
As a result submodule is generated, for according to first comparing result, the second comparing result and the third comparing result, life
At the task versus result.
10. a kind of processing system of media file characterized by comprising the client terminal that successively communicates to connect, server and
Playback terminal;
The client terminal is for upload media file to the server;
The server is used to execute the processing method of the media file as described in any one of claims 1 to 7;
The playback terminal is used to receive and play the media file that the server is sent, and carries out to the media file
Hash calculation generates the cryptographic Hash of the media file, and using the cryptographic Hash as the first identifying code, transmission carries described the
The task of one identifying code completes message to the server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910627032.7A CN110335089A (en) | 2019-07-11 | 2019-07-11 | A kind of processing method of media file, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910627032.7A CN110335089A (en) | 2019-07-11 | 2019-07-11 | A kind of processing method of media file, apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110335089A true CN110335089A (en) | 2019-10-15 |
Family
ID=68146506
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910627032.7A Pending CN110335089A (en) | 2019-07-11 | 2019-07-11 | A kind of processing method of media file, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110335089A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112148903A (en) * | 2020-09-15 | 2020-12-29 | 京东数字科技控股股份有限公司 | Data processing method and device for content auditing |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108521582A (en) * | 2018-05-02 | 2018-09-11 | 中广热点云科技有限公司 | A kind of copyright video the whole network rating recording system based on block chain technology |
CN108647974A (en) * | 2018-05-11 | 2018-10-12 | 北京奇虎科技有限公司 | A kind of Information Authentication method, apparatus and system based on block chain |
CN109118224A (en) * | 2018-08-22 | 2019-01-01 | 泰康保险集团股份有限公司 | Proof of work method, apparatus, medium and the electronic equipment of block chain network |
CN109242567A (en) * | 2018-09-11 | 2019-01-18 | 迅达(中国)电梯有限公司 | Advertisement placement method |
CN109889866A (en) * | 2019-02-13 | 2019-06-14 | 湖南众益文化传媒股份有限公司 | A kind of advertisement detecting system and method based on block chain |
CN109993528A (en) * | 2019-03-29 | 2019-07-09 | 上海掌门科技有限公司 | It is a kind of for managing the method and apparatus of committal charge |
-
2019
- 2019-07-11 CN CN201910627032.7A patent/CN110335089A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108521582A (en) * | 2018-05-02 | 2018-09-11 | 中广热点云科技有限公司 | A kind of copyright video the whole network rating recording system based on block chain technology |
CN108647974A (en) * | 2018-05-11 | 2018-10-12 | 北京奇虎科技有限公司 | A kind of Information Authentication method, apparatus and system based on block chain |
CN109118224A (en) * | 2018-08-22 | 2019-01-01 | 泰康保险集团股份有限公司 | Proof of work method, apparatus, medium and the electronic equipment of block chain network |
CN109242567A (en) * | 2018-09-11 | 2019-01-18 | 迅达(中国)电梯有限公司 | Advertisement placement method |
CN109889866A (en) * | 2019-02-13 | 2019-06-14 | 湖南众益文化传媒股份有限公司 | A kind of advertisement detecting system and method based on block chain |
CN109993528A (en) * | 2019-03-29 | 2019-07-09 | 上海掌门科技有限公司 | It is a kind of for managing the method and apparatus of committal charge |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112148903A (en) * | 2020-09-15 | 2020-12-29 | 京东数字科技控股股份有限公司 | Data processing method and device for content auditing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109829621B (en) | Network appointment vehicle dispatching method and device | |
CN110309634B (en) | Credible advertisement data management system based on block chain | |
CN109035014B (en) | Data transaction system | |
CN109889866A (en) | A kind of advertisement detecting system and method based on block chain | |
CN111260398B (en) | Advertisement putting control method and device, electronic equipment and storage medium | |
KR20210068031A (en) | Methods and systems for providing targeted advertising to consumer devices | |
CN108171083A (en) | Block chain trust data management method, system and computer readable storage medium | |
US20070112762A1 (en) | Method and apparatus for obtaining revenue from the distribution of hyper-relevant advertising through permissive mind reading, proximity encounters, and database aggregation | |
CN102625941B (en) | For distribution on broadcast system and the system and method exchanging integration | |
US20200074778A1 (en) | Decentralized talent discovery via blockchain | |
CN105745673A (en) | Social media product reservation | |
CN108846673A (en) | A kind of processing method of block data, device, equipment and storage medium | |
CN107249040A (en) | Verify device, storage medium, using and system | |
US20080065488A1 (en) | Apparatus and method for providing a coupon program | |
CN114049096A (en) | Personalized customization system and method based on block chain | |
CN107465728A (en) | Information processing method, central server and storage medium on identification code | |
CN110335089A (en) | A kind of processing method of media file, apparatus and system | |
WO2010136582A1 (en) | Device and method for interfacing at least one data storage and transmission terminal with at least one data transmission medium | |
CN109272288A (en) | Decentralization household services method based on block chain technology | |
CN111260468B (en) | Block chain-based data operation method, related equipment and storage medium | |
KR20220112578A (en) | Method for providing online platform for community members and server for the same | |
CN102934135A (en) | Method and apparatus for providing a service in accordance with the viewing of an advertisement using drm | |
KR20210074105A (en) | lnterior service comparison matching service system | |
JP6883303B2 (en) | Campaign management system, server device, campaign management method, and program | |
Mao et al. | Smart contract‐based resource allocation service mechanism for internet of vehicles |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191015 |