CN112561522A - Block chain-based video payment method, video node, device and medium - Google Patents
Block chain-based video payment method, video node, device and medium Download PDFInfo
- Publication number
- CN112561522A CN112561522A CN202011387057.3A CN202011387057A CN112561522A CN 112561522 A CN112561522 A CN 112561522A CN 202011387057 A CN202011387057 A CN 202011387057A CN 112561522 A CN112561522 A CN 112561522A
- Authority
- CN
- China
- Prior art keywords
- payment
- video
- user node
- node
- transaction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3825—Use of electronic signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
-
- 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Accounting & Taxation (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Bioethics (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Computing Systems (AREA)
- Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present disclosure provides a video payment method, a video node, a terminal device and a computer readable storage medium based on a block chain, wherein the method comprises: the video node sets up a first payment transaction based on the smart contract; after a user node watches a video based on an intelligent contract, the video node calculates the payment amount and the payment time point which need to be paid by the user node based on the watching duration of the user node based on a first payment transaction, and sends the payment amount and the payment time point to the user node so as to enable the user node to generate a second payment transaction and sign the second payment transaction; the video node broadcasts the second payment transaction signed by the user node to the blockchain; the video node obtains the payment amount at a payment time point based on a second payment transaction signed by the user node. The embodiment of the disclosure can at least solve the problems that the user only watches partial video content but needs to pay the full cost of watching the video, and the like, and effectively improves the video watching experience of the user.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a video payment method based on a blockchain, a video node, a terminal device, and a computer-readable storage medium.
Background
The current modes of users for watching pay videos on video software mainly comprise a member mode and a demand-on-demand mode. The member type generally obtains the watching qualification of all member videos through one-time member payment for users, and the video-on-demand type generally adopts that the users pay for the videos watched by the users independently, for example, the pricing of the movie A is 5 yuan, which means that the users need to pay 5 yuan for the movie A on demand. For the push-to-demand type, in the related art, the watching price needs to be paid once, however, in an actual situation, after the user frequently requests the video, the watching needs to be interrupted for some reason, for example, after a period of time, the user finds that the user does not like the content of the film a, the watching is stopped, and the push-to-demand type means that the user needs to pay 5 yuan no matter whether the user finishes watching the program, in the above situation, the user needs to pay the full cost of watching the video because the user only watches part of the video content, which obviously has a fair loss, and the video watching experience of the user is greatly reduced.
Disclosure of Invention
The present disclosure provides a video payment method, a video node, a terminal device, and a computer-readable storage medium based on a blockchain to at least solve the above-mentioned problems.
According to an aspect of an embodiment of the present disclosure, there is provided a video payment method based on a blockchain, including:
the video node sets up a first payment transaction based on the smart contract;
after a user node watches a video based on the intelligent contract, the video node calculates the payment amount and the payment time point which need to be paid by the user node based on the watching duration of the user node based on the first payment transaction, and sends the payment amount and the payment time point to the user node, so that the user node generates a second payment transaction based on the payment amount and the payment time point which need to be paid by the user node based on the watching duration of the user node, signs the second payment transaction and returns the second payment transaction to the video node;
the video node broadcasts a second payment transaction signed by the user node into a blockchain; and the number of the first and second groups,
and the video node acquires the payment amount paid by the user node based on the viewing time length of the user node at the payment time point based on a second payment transaction signed by the user node.
In one embodiment, the first payment transaction includes a payment calculation rule based on video viewing duration;
the video node calculates the payment amount and the payment time point which are required to be paid by the user node based on the watching duration of the user node based on the first payment transaction, and the method comprises the following steps:
after the video is played, the video node calculates payment amount required to be paid by the user node based on the watching time generated at intervals of a preset time period and corresponding payment time points at intervals of a preset time period according to the payment calculation rule; and the number of the first and second groups,
the video node selects the payment amount with the longest viewing time and the corresponding payment time point from the payment amount and the payment time point which are calculated every other preset time period and need to be paid for the viewing time as the payment amount and the payment time point which need to be paid for the user node based on the viewing time.
In one embodiment, the method further comprises:
the video node sets a collection transaction and a common account based on the intelligent contract, the collection transaction is used for indicating the video node to obtain the payment amount paid by the user node from the common account, and the user node prestores a preset amount to the common account before watching a video based on the intelligent contract;
the video node acquires the payment amount paid by the user node based on the viewing duration of the user node at the payment time point based on a second payment transaction signed by the user node, and the method comprises the following steps:
and the video node acquires the payment amount paid by the user node based on the viewing time length of the user node from the common account at the payment time point based on the collection transaction and a second payment transaction signed by the user node.
In one embodiment, the video node broadcasts the second payment transaction signed by the user node into the blockchain, comprising:
the video node adds a signature to a second payment transaction signed by the user node;
the video node broadcasting the additionally signed second payment transaction into a blockchain;
the video node acquires the payment amount paid by the user node based on the viewing duration of the user node at the payment time point based on a second payment transaction signed by the user node, and the method comprises the following steps: the video node obtains a payment amount paid by the user node based on the viewing duration thereof at the payment time point based on the additionally signed second payment transaction.
According to another aspect of the embodiments of the present disclosure, there is provided a video node, including:
a setting module configured to set up a first payment transaction based on a smart contract;
the calculation module is arranged for calculating the payment amount and the payment time point which need to be paid by the user node based on the watching time length of the user node based on the first payment transaction after the user node watches the video based on the intelligent contract, and sending the payment amount and the payment time point to the user node, so that the user node generates a second payment transaction based on the payment amount and the payment time point which need to be paid by the user node based on the watching time length of the user node, signs the second payment transaction and returns the second payment transaction to the video node;
a broadcast module configured to broadcast a second payment transaction signed by the user node into a blockchain; and
an obtaining module configured to obtain, at the payment time point, a payment amount paid by the user node based on the viewing duration thereof based on the second payment transaction.
In one embodiment, the first payment transaction includes a payment calculation rule based on video viewing duration, and the calculation module includes:
the calculation unit is set to calculate the payment amount required to be paid by the user node based on the watching duration generated every preset time period and the corresponding payment time point every preset time period according to the payment calculation rule every preset time period after the video is played; and the number of the first and second groups,
and the selection unit is set to select the payment amount with the longest viewing time and the corresponding payment time point from the payment amount and the payment time point which are calculated based on the viewing time interval and need to be paid, as the payment amount and the payment time point which need to be paid by the user node based on the viewing time interval.
In one embodiment, the setting module is further configured to set a collection transaction and a common account based on the intelligent contract, the collection transaction is used for instructing the video node to obtain a payment amount paid by the user node from the common account, and the user node prestores a preset amount to the common account before watching a video based on the intelligent contract;
the obtaining module is specifically configured to obtain, from the common account at the payment time point, a payment amount paid by the user node based on the viewing duration thereof, based on the receipt transaction and a second payment transaction signed by the user node.
In one embodiment, the video node further comprises:
the broadcast module is specifically configured to add a signature to a second payment transaction signed by the user node; and broadcasting the additionally signed second payment transaction into a blockchain;
the acquisition module is specifically configured to acquire, at the payment time point, a payment amount paid by the user node based on the viewing duration of the user node, based on the additionally signed second payment transaction.
According to still another aspect of the embodiments of the present disclosure, there is provided a terminal device including a memory and a processor, the memory having a computer program stored therein, and the processor executing the video payment method based on a blockchain when the processor runs the computer program stored in the memory.
According to still another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor performs the block chain based video payment method.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the video payment method based on the block chain provided by the embodiment of the disclosure sets a first payment transaction based on an intelligent contract through a video node; after a user node watches a video based on the intelligent contract, the video node calculates the payment amount and the payment time point which are required to be paid by the user node based on the watching duration of the user node based on the first payment transaction, the user node further generates a second payment transaction and carries out signature, the video node broadcasts the second payment transaction signed by the user node to a block chain, and then the payment amount paid by the user node based on the watching duration of the user node is obtained at the payment time point based on the second payment transaction signed by the user node. The embodiment of the disclosure can at least solve the problems that the user only watches partial video content but needs to pay the full cost of watching the video, and the like, and effectively improves the video watching experience of the user.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the disclosure. The objectives and other advantages of the disclosure may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the disclosed embodiments and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the example serve to explain the principles of the disclosure and not to limit the disclosure.
Fig. 1 is a schematic flowchart of a video payment method based on a blockchain according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a video payment method based on a blockchain according to a second embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a video payment method based on a blockchain according to a third embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a video node according to a fourth embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a terminal device according to a fifth embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order; furthermore, the embodiments and features of the embodiments in the present disclosure may be arbitrarily combined with each other without conflict.
In which the terminology used in the embodiments of the disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in the disclosed embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In the following description, suffixes such as "module", "part", or "unit" used to denote elements are used only for the convenience of explanation of the present disclosure, and have no specific meaning by themselves. Thus, "module", "component" or "unit" may be used mixedly.
In the related art, the entire fee is charged once for each on-demand, which is unfair to the user who needs to terminate watching for only a certain period of time. Some video service providers have established a pay-per-demand policy of: the first 5 minutes are free, and more than 5 minutes are charged. The common practice in this case is to stop playing from 5 minutes to zero and 1 second, and prompt the user to pay, and the user can continue playing after paying, and this case collects all the fees once; some video service providers also specify policies such as: the first 5 minutes are free, only half the fee is charged for 5 to 10 minutes, more than 10 minutes is charged in full, and the current approach implements a half-way termination only partial or free, which can cause unnecessary trouble due to lack of mutual trust between the two parties. But this would lead to billing disputes between the user and the video service provider if it is necessary to stop playing the video and ask the user if he continues to play, both 5 minutes and 10 minutes (if there are more tiered billing policies), otherwise due to the unreliability of the network transmission.
In order to solve the above problems, in the embodiment of the present disclosure, by setting a payment transaction, the video watching duration of a user is calculated in real time by using a block chain technology and an intelligent contract technology, and a video node obtains a payment amount based on the actual video watching duration of the user, so that the user can pay for a single-time on-demand program according to the actual watching duration, thereby solving the unfair problem that the user only watches part of video content but needs to pay for the full charge of watching the video, and effectively improving the video watching experience of the user.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a block chain based video payment method according to an embodiment of the present disclosure, where the method includes steps S101 to S103.
In step S101, the video node sets up a first payment transaction based on the smart contract.
Specifically, the user U enters into a smart contract with the video service provider P, and the video node (i.e., the video service provider node) sets a first payment transaction through the smart contract, the first payment transaction indicating payment rules of the user node, which may include payment calculation rules based on the video viewing time and the calculation time thereof. For example, after the user actually watches the video, the actual payment amount and the payment time point are calculated according to the actual watching duration of the user based on the first payment transaction, wherein the first payment transaction may include a step function calculated with respect to the payment amount, so that the step charging according to the actual watching duration of the video by the user is realized.
In step S102, after the user node watches the video based on the smart contract, the video node calculates the payment amount and the payment time point that the user node needs to pay based on the watching duration of the user node based on the first payment transaction, and sends the payment amount and the payment time point to the user node, so that the user node generates a second payment transaction based on the payment amount and the payment time point that the user node needs to pay based on the watching duration of the user node, signs the second payment transaction, and returns the second payment transaction to the video node.
In this embodiment, by using the synchronicity and tamper resistance of the data of the block link and the payment amount and payment time calculated based on the actual viewing time of the user, the charging dispute between the user and the video service provider caused by the unreliability of network transmission in the related art can be effectively solved. The payment amount is the amount of the user node paying to the video node, and the payment time point is the time point at which the video node acquires the payment amount of the user node. The effect of calculating the payment time point while calculating the payment amount includes that the user may pause playing the video for reasons other than closing the video when watching the video, and the payment of the user node and the charging of the video node are realized at a specific time point, which can be traced back as evidence for disputes of subsequent video parties and user parties about video payment.
In this embodiment, the first payment transaction includes a payment calculation rule based on the video viewing duration. In this embodiment, the payment calculation is performed by playing the video every preset time period, and when the user terminates watching the video, the user charges the video directly based on the actual watching time length, where the step S102 specifically includes the following steps:
after the video is played, the video node calculates payment amount required to be paid by the user node based on the watching time generated at intervals of a preset time period and corresponding payment time points at intervals of a preset time period according to the payment calculation rule; and the number of the first and second groups,
the video node selects the payment amount with the longest viewing time and the corresponding payment time point from the payment amount and the payment time point which are calculated every other preset time period and need to be paid for the viewing time as the payment amount and the payment time point which need to be paid for the user node based on the viewing time. In addition, by selecting the calculation result with the longest duration, the present embodiment can also avoid the problem that when some users watch the video, the watching of the video needs to be suspended for some reasons in the middle, and the watching of the video continues to be continued, which may cause the system to repeatedly charge the users. .
It should be noted that, a person skilled in the art may adaptively set the preset time period according to the actual situation, and the payment amount and the time point thereof are calculated every other preset time period in the video playing, for example, the payment amount and the payment time point are calculated every 5 minutes in the video playing.
According to the charging mode for watching the video by the user, the charging can be carried out according to the actual watching duration of the user, meanwhile, the problem that the user watches the same video for repeated charging can be effectively avoided, and the video watching experience of the user is effectively improved.
In step S103, the video node broadcasts a second payment transaction signed by the user node into the blockchain.
It will be appreciated that the video node broadcasts a second payment transaction into the blockchain, which second payment transaction is effected.
In step S104, the video node obtains, at the payment time point, a payment amount paid by the user node based on the viewing duration thereof, based on the second payment transaction signed by the user node.
Specifically, the video node and the user node may create a common account based on an intelligent contract, the user deposits a preset amount (may be an amount for viewing a complete video) in the common account before viewing the video, and when the payment time point is reached, the video node directly obtains the payment amount of the user node based on the viewing duration of the user node from the common account.
Referring to fig. 2, fig. 2 is a schematic flow chart of a video payment method based on a block chain according to a second embodiment of the present disclosure, in the first embodiment, by setting a collection transaction and a common account, a user node deposits a prepaid fee into the common account through the collection transaction, and when a payment condition is met, a video party is ensured to obtain a payment amount from the common account in the form of an intelligent contract, and the method further includes step S201, and step S104 is further divided into step S104 a.
In step S201, the video node sets a collection transaction and a common account based on the intelligent contract, where the collection transaction is used to instruct the video node to obtain a payment amount paid by the user node from the common account, and the user node prestores a preset amount to the common account before viewing a video based on the intelligent contract;
in step S104a, the video node obtains, from the common account at the payment time point, a payment amount paid by the user node based on the viewing duration thereof, based on the payment transaction and a second payment transaction signed by the user node.
Further, the collection transaction may be used to instruct the user node to obtain a remaining amount from the common account, where the remaining amount is a difference between the preset amount and the payment amount.
Referring to fig. 3, fig. 3 is a schematic flowchart of a video payment method based on a block chain according to a third embodiment of the present disclosure, in which a second payment transaction is signed by a video node and a user node and broadcast in the block chain, the transaction is validated to ensure that both rights and interests of the user node and the video node are not impaired, specifically, step S103 is further divided into steps S103a and S103b, and step S104 is further divided into step S104 b.
In step S103a, the video node adds a signature to the second payment transaction signed by the user node;
in step S103b, the video node broadcasts the additionally signed second payment transaction into a blockchain;
in step S105b, the video node acquires, at the payment time point, a payment amount paid by the user node based on the viewing duration thereof, based on the additionally signed second payment transaction;
to further understand the disclosure, the present embodiment further explains in conjunction with the above embodiments that the user U and the video service provider P set up a pre-payment transaction (i.e., a collection transaction) and a formal payment transaction (i.e., a first payment transaction and a second payment transaction generated based on the first payment transaction) through a smart contract. And the U sends an updated formal payment transaction to the P every time the U receives the program for a certain time. P broadcasts the official transaction to the blockchain after the appointed time to obtain payment for U.
Intelligent contract:
(1) u requests video from P
(2) P sets transaction Tprecharge{[IU],[o=c→(U,P)]}
(3) P sets transaction Tcharge{[o],[f(n)→P,(c-f(n))→U]|[g(N,n)]}
(4) P to TprechargeAnd TchargeSignature is sent to U
(5) U to TprechargePost-signature broadcast to blockchains
(6) P-to-U video streaming
(7) The following procedure is performed
1.n=0
Do in while video playing
3. Waiting for a period of time m
4.n=n+1
U modifies Tcharge according to n value, signature is sent to P
6.end while
(8) After g (N, N), P additionally signs Tcharge with the maximum f (N) value and broadcasts the added signature to the block chain
In the above intelligent contract, it is explained that:
(A) p represents a video website or service provider providing a video service. U represents a user who views a program. [ IU ] represents the own funds from U for c in the transaction Tprefix, which may be in real currency or virtual currency. c → (U, P) indicates that funds in the amount c are paid to an account that is co-managed by U and P, and the funds can only be used if both U and P agree. [ o ═ c → (U, P) ] represents a fund pool formed by o marks c → (U, P). [ o ] indicates that the funds in Tcharge originate from c → (U, P).
(B) f (n) → P, (c-f (n) → U, and f (n) represent funds in the amount of f (n) to be paid out to P, while remaining funds are returned to U. Where n is the actual viewing time of U, which is generally in units of 1 minute, but may be in units of other time lengths, such as every 15 seconds or other real-time units. If m in 1 minute unit (7) is 1 minute, and if m in 15 seconds is 15 seconds, m in 7 is 15 seconds. And f (n) is a function of n and represents the calculated cost of U due to n. If f (n) is a step function, then P can implement a step charge for U.
(C)[g(N,n)]Is a transaction TchargeAn additional condition is established, and the combined use of |' and transaction contents [ f (n)) → P, (c-f (n)) → U]The phases are separated. Indicating that the transaction is established only after time g (N, N) is reached. Due to TchargeIs a transaction between U and P, so TchargeThe satisfied condition requires that time g (N, N) be reached in addition to the signature of U and P. N represents the duration of the film. g (N, N) is a function of the duration of the film and the duration of the user's viewing, representingAnd calculating the time point of the final charge according to the film time length and the actual watching time length of the user.
(D) When the user starts to watch the video, the value of n increases by 1 every one time unit.
(E) Since the blockchain system allows only one of the transactions to be validated for transactions using the same fund pool, although P will get multiple T with U signaturechargeTransactions, but only one of them can be validated. Therefore, P selects T with the largest f (n) valuechargeThe additional signature is broadcast to the blockchain. According to the above intelligent contract, the present embodiment further describes:
(1) the timing unit m is 1 minute, i.e. the value of n increases by 1 every 1 minute. The film time N is 100 minutes. The full amount of the film is due for 5 yuan.
(2) f (n) is a step function, f (n) is 0 when n is less than or equal to 5, f (n) is 5 × 10 when 5< n is less than or equal to 10, f (n) is 5 × 30 when 10< n is less than or equal to 20, and f (n) is 5 when n is greater than 20. I.e., free for the first 5 minutes, full 10% for 5 to 10 minutes, full 30% for 10 to 20 minutes, and full over 20 minutes.
(3) g (N, N) is a discrete function, and when N < N, g (N) is N + 5; when N is equal to or greater than N, g (N, N) ═ N + 1.
(4) If the user watches 8 minutes, i.e. terminates watching, then after 5 minutes, i.e. 13 minutes, the user is automatically charged 0.5 dollars and the user is automatically returned 4.5 dollars.
(5) If the user watches 18 minutes, i.e. terminates watching, then after 5 minutes, i.e. 23 minutes, the user is automatically charged 1.5 dollars and the user is automatically returned 3.5 dollars.
(6) If the user finishes watching for 28 minutes, i.e. terminates watching, the user will be automatically charged 5 yuan after 5 minutes, i.e. 33 minutes.
(7) If the user watched the entire movie in its entirety, the user would be automatically collected 5 dollars at the 101 st minute.
Therefore, in the above process, the user is not prompted to continue to pay or is asked whether to continue watching, that is, the video playing is interrupted or the user experience is affected by covering a layer of semi-transparent page on the video program.
Based on the same technical concept, the embodiment of the present disclosure correspondingly provides a video node, as shown in fig. 4, where the video node includes:
a setting module 41 arranged to set up a first payment transaction based on a smart contract;
a calculation module 42, configured to calculate, based on the first payment transaction, a payment amount and a payment time point that the user node needs to pay based on the viewing duration of the user node after the user node views the video based on the smart contract, and send the payment amount and the payment time point to the user node, so that the user node generates a second payment transaction based on the payment amount and the payment time point that the user node needs to pay based on the viewing duration of the user node, signs the second payment transaction, and returns the signed second payment transaction to the video node;
a broadcasting module 43 configured to broadcast a second payment transaction signed by the user node into a blockchain; and the number of the first and second groups,
an obtaining module 44 configured to obtain, at the payment time point, a payment amount paid by the user node based on the viewing duration thereof based on the second payment transaction.
In one embodiment, the first payment transaction includes a payment calculation rule based on video viewing duration, and the calculation module 42 includes:
the calculation unit is set to calculate the payment amount required to be paid by the user node based on the watching duration generated every preset time period and the corresponding payment time point every preset time period according to the payment calculation rule every preset time period after the video is played; and the number of the first and second groups,
and the selection unit is set to select the payment amount with the longest viewing time and the corresponding payment time point from the payment amount and the payment time point which are calculated based on the viewing time interval and need to be paid, as the payment amount and the payment time point which need to be paid by the user node based on the viewing time interval.
In one embodiment, the setting module 41 is further configured to set a collection transaction and a common account based on the intelligent contract, where the collection transaction is used to instruct the video node to obtain a payment amount paid by the user node from the common account, and the user node prestores a preset amount to the common account before watching a video based on the intelligent contract;
the obtaining module 44 is specifically configured to obtain, from the common account at the payment time point, a payment amount paid by the user node based on the viewing duration of the user node based on the payment receiving transaction and the second payment transaction signed by the user node.
In one embodiment, the video node further comprises:
the broadcast module 43 is specifically configured to add a signature to the second payment transaction signed by the user node; and broadcasting the additionally signed second payment transaction into a blockchain;
the obtaining module 44 is specifically configured to obtain, at the payment time point, a payment amount paid by the user node based on the viewing duration of the user node based on the additionally signed second payment transaction. Based on the same technical concept, the embodiment of the present disclosure correspondingly provides a terminal device, as shown in fig. 5, the terminal device includes a memory 51 and a processor 52, the memory 51 stores a computer program, and when the processor 52 runs the computer program stored in the memory 51, the processor 52 executes the video payment method based on the blockchain.
Based on the same technical concept, the embodiments of the present disclosure also provide a computer readable storage medium having a computer program stored thereon, where when the computer program is executed by a processor, the processor executes the video payment method based on the blockchain.
One of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to a division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to one of ordinary skill in the art.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present disclosure, and not for limiting the same; although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present disclosure.
Claims (10)
1. A blockchain-based video payment method, comprising:
the video node sets up a first payment transaction based on the smart contract;
after a user node watches a video based on the intelligent contract, the video node calculates the payment amount and the payment time point which need to be paid by the user node based on the watching duration of the user node based on the first payment transaction, and sends the payment amount and the payment time point to the user node, so that the user node generates a second payment transaction based on the payment amount and the payment time point which need to be paid by the user node based on the watching duration of the user node, signs the second payment transaction and returns the second payment transaction to the video node;
the video node broadcasts a second payment transaction signed by the user node into a blockchain; and the number of the first and second groups,
and the video node acquires the payment amount paid by the user node based on the viewing time length of the user node at the payment time point based on a second payment transaction signed by the user node.
2. The method of claim 1, wherein the first payment transaction includes a payment calculation rule based on video viewing duration;
the video node calculates the payment amount and the payment time point which are required to be paid by the user node based on the watching duration of the user node based on the first payment transaction, and the method comprises the following steps:
after the video is played, the video node calculates payment amount required to be paid by the user node based on the watching time length generated at intervals of a preset time period and corresponding payment time points at intervals of a preset time period according to the payment calculation rule; and the number of the first and second groups,
the video node selects the payment amount with the longest viewing time and the corresponding payment time point from the payment amount and the payment time point which are calculated every other preset time period and need to be paid for the viewing time as the payment amount and the payment time point which need to be paid for the user node based on the viewing time.
3. The method of claim 1, further comprising:
the video node sets a collection transaction and a common account based on the intelligent contract, the collection transaction is used for indicating the video node to obtain the payment amount paid by the user node from the common account, and the user node prestores a preset amount to the common account before watching a video based on the intelligent contract;
the video node acquires the payment amount paid by the user node based on the viewing duration of the user node at the payment time point based on a second payment transaction signed by the user node, and the method comprises the following steps:
and the video node acquires the payment amount paid by the user node based on the viewing duration of the user node from the common account at the payment time point based on the collection transaction and a second payment transaction signed by the user node.
4. The method of claim 1, wherein the video node broadcasts a second payment transaction signed by a user node into a blockchain, comprising:
the video node adds a signature to a second payment transaction signed by the user node;
the video node broadcasting the additionally signed second payment transaction into a blockchain;
the video node acquires the payment amount paid by the user node based on the viewing duration of the user node at the payment time point based on a second payment transaction signed by the user node, and the method comprises the following steps: and the video node acquires the payment amount paid by the user node based on the watching duration of the user node at the payment time point based on the additionally signed second payment transaction.
5. A video node, comprising:
a setting module configured to set up a first payment transaction based on a smart contract;
the calculation module is arranged for calculating the payment amount and the payment time point which need to be paid by the user node based on the watching time length of the user node based on the first payment transaction after the user node watches the video based on the intelligent contract, and sending the payment amount and the payment time point to the user node, so that the generation user node generates a second payment transaction based on the payment amount and the payment time point which need to be paid by the user node based on the watching time length of the user node, signs the second payment transaction and returns the second payment transaction to the video node;
a broadcast module configured to broadcast a second payment transaction signed by the user node into a blockchain; and the number of the first and second groups,
an obtaining module configured to obtain, at the payment time point, a payment amount paid by the user node based on the viewing duration thereof based on a second payment transaction signed by the user node.
6. The video node of claim 5, wherein the first payment transaction includes a payment calculation rule based on video viewing duration, and wherein the calculation module comprises:
the calculation unit is set to calculate the payment amount required to be paid by the user node based on the watching duration generated every preset time period and the corresponding payment time point every preset time period according to the payment calculation rule every preset time period after the video is played; and the number of the first and second groups,
and the selection unit is set to select the payment amount with the longest viewing time and the corresponding payment time point from the payment amount and the payment time point which are calculated every preset time period and need to be paid for the viewing time as the payment amount and the payment time point which need to be paid for the user node based on the viewing time.
7. The video node of claim 5, wherein the setting module is further configured to set a collection transaction and a common account based on the smart contract, the collection transaction is used for instructing the video node to obtain a payment amount paid by the user node from the common account, and the user node prestores a preset amount to the common account before watching a video based on the smart contract;
the obtaining module is specifically configured to obtain, from the common account at the payment time point, a payment amount paid by the user node based on the viewing duration of the user node based on the receipt transaction and a second payment transaction signed by the user node.
8. The video node of claim 5, further comprising:
the broadcast module is specifically configured to append a signature to a second payment transaction signed by the user node; and broadcasting the additionally signed second payment transaction into a blockchain;
the obtaining module is specifically configured to obtain, at the payment time point, a payment amount paid by the user node based on the viewing duration of the user node based on the additionally signed second payment transaction.
9. A terminal device comprising a memory and a processor, the memory having stored therein a computer program, the processor, when executing the computer program stored by the memory, performing the blockchain based video payment method according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the blockchain-based video payment method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011387057.3A CN112561522B (en) | 2020-12-01 | 2020-12-01 | Video payment method, video node, device and medium based on blockchain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011387057.3A CN112561522B (en) | 2020-12-01 | 2020-12-01 | Video payment method, video node, device and medium based on blockchain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112561522A true CN112561522A (en) | 2021-03-26 |
CN112561522B CN112561522B (en) | 2023-09-29 |
Family
ID=75047102
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011387057.3A Active CN112561522B (en) | 2020-12-01 | 2020-12-01 | Video payment method, video node, device and medium based on blockchain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112561522B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113240415A (en) * | 2021-05-12 | 2021-08-10 | 中国联合网络通信集团有限公司 | Block chain based value-stored card recharging method, system, node and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140279041A1 (en) * | 2013-03-12 | 2014-09-18 | Thomas M. Isaacson | System and method for payment account fee prevention |
CN108629584A (en) * | 2018-04-25 | 2018-10-09 | 常海峰 | Mode of payment, device based on block chain and computer readable storage medium |
US20180293557A1 (en) * | 2017-04-05 | 2018-10-11 | Samsung Sds Co., Ltd. | Method of charging electronic currency automatically based on blockchain and system thereof |
CN109819335A (en) * | 2019-01-28 | 2019-05-28 | 苏州若依玫信息技术有限公司 | A kind of VOD method and system of the network video platform based on mobile payment |
WO2019142049A1 (en) * | 2018-01-17 | 2019-07-25 | Geeq Corporation | Blockchain methods, nodes, systems and products |
CN110446078A (en) * | 2019-08-21 | 2019-11-12 | 北京艾摩瑞策科技有限公司 | A kind of the video playing data processing method and device of application block chain |
CN110599170A (en) * | 2019-09-16 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Transaction information processing method and system based on block chain and storage medium |
CN110675149A (en) * | 2019-09-23 | 2020-01-10 | 腾讯科技(深圳)有限公司 | Data processing method, device and equipment based on block chain and storage medium |
US20200065811A1 (en) * | 2018-08-21 | 2020-02-27 | Bank Of America Corporation | Exposure based secure access system |
-
2020
- 2020-12-01 CN CN202011387057.3A patent/CN112561522B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140279041A1 (en) * | 2013-03-12 | 2014-09-18 | Thomas M. Isaacson | System and method for payment account fee prevention |
US20180293557A1 (en) * | 2017-04-05 | 2018-10-11 | Samsung Sds Co., Ltd. | Method of charging electronic currency automatically based on blockchain and system thereof |
WO2019142049A1 (en) * | 2018-01-17 | 2019-07-25 | Geeq Corporation | Blockchain methods, nodes, systems and products |
CN108629584A (en) * | 2018-04-25 | 2018-10-09 | 常海峰 | Mode of payment, device based on block chain and computer readable storage medium |
US20200065811A1 (en) * | 2018-08-21 | 2020-02-27 | Bank Of America Corporation | Exposure based secure access system |
CN109819335A (en) * | 2019-01-28 | 2019-05-28 | 苏州若依玫信息技术有限公司 | A kind of VOD method and system of the network video platform based on mobile payment |
CN110446078A (en) * | 2019-08-21 | 2019-11-12 | 北京艾摩瑞策科技有限公司 | A kind of the video playing data processing method and device of application block chain |
CN110599170A (en) * | 2019-09-16 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Transaction information processing method and system based on block chain and storage medium |
CN110675149A (en) * | 2019-09-23 | 2020-01-10 | 腾讯科技(深圳)有限公司 | Data processing method, device and equipment based on block chain and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113240415A (en) * | 2021-05-12 | 2021-08-10 | 中国联合网络通信集团有限公司 | Block chain based value-stored card recharging method, system, node and storage medium |
CN113240415B (en) * | 2021-05-12 | 2023-11-03 | 中国联合网络通信集团有限公司 | Stored-value card recharging method, system, equipment and storage medium based on block chain |
Also Published As
Publication number | Publication date |
---|---|
CN112561522B (en) | 2023-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112335257B (en) | Server and computer-readable recording medium | |
CN105049898B (en) | Home theater implementation method, device, system and client based on DTV | |
TW589894B (en) | Pay by time system for content delivery to media playback systems | |
US20080077950A1 (en) | System and method for billing for video content | |
US20090249384A1 (en) | Entertainment content purchase via advertising viewing credit | |
WO2011016001A2 (en) | Systems and methods for supporting user generated advertising transactions in a video service provider environment | |
WO2013024392A1 (en) | Method and apparatus for giving video on demand assets to social network friends | |
CN106203000A (en) | A kind of offer method of live content, it is provided that device and electronic equipment thereof | |
CN104811753A (en) | Ordering video charging method and device | |
CN112561522B (en) | Video payment method, video node, device and medium based on blockchain | |
JP2008199373A (en) | System and method for tabulating animation-content audience rating | |
CN112399202B (en) | Advertisement pushing method, video node, user node, advertisement node and system | |
CN112804552A (en) | Plug-in configuration method and device and electronic equipment | |
JP2004235921A (en) | Content distribution system, content distribution device, program, and recording medium | |
US20120317595A1 (en) | Interfacing apparatus for transmitting moving image between communication terminals and method thereof | |
CN100508462C (en) | Network charging system and method | |
US20210365908A1 (en) | Tracking use of metered content from a content delivery system | |
KR20040070886A (en) | Method for time restriction contents service and apparatus thereof | |
WO2016093588A1 (en) | Broadcast advertisement control system and method therefor | |
JP2004133884A (en) | Software system for managing payment of goods and service and software system corresponding especially to communication on demand and to electronic wallet | |
CN112383596B (en) | Information pushing method, information provider equipment and information owner terminal | |
US20230342824A1 (en) | System and Method for Delivering Customized Pricing of Streamed Video Content | |
CN109118196A (en) | Management method, the device and system for resource of paying | |
WO2012163195A1 (en) | Method, device and system for ordering on-demand program | |
CN112398922A (en) | Advertisement pushing method and system based on block chain |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |