CN112561522B - Video payment method, video node, device and medium based on blockchain - Google Patents

Video payment method, video node, device and medium based on blockchain Download PDF

Info

Publication number
CN112561522B
CN112561522B CN202011387057.3A CN202011387057A CN112561522B CN 112561522 B CN112561522 B CN 112561522B CN 202011387057 A CN202011387057 A CN 202011387057A CN 112561522 B CN112561522 B CN 112561522B
Authority
CN
China
Prior art keywords
video
payment
node
user 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.)
Active
Application number
CN202011387057.3A
Other languages
Chinese (zh)
Other versions
CN112561522A (en
Inventor
张伦泳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202011387057.3A priority Critical patent/CN112561522B/en
Publication of CN112561522A publication Critical patent/CN112561522A/en
Application granted granted Critical
Publication of CN112561522B publication Critical patent/CN112561522B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; 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 blockchain, wherein the method comprises: the video node sets a first payment transaction based on the smart contract; after the user node watches the 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 time length of the video 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, and signs the second payment transaction; the video node broadcasts a second payment transaction signed by the user node into 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 invention at least can solve the problems of unfairness and the like caused by that the user only watches partial video content but needs to pay the full charge of watching the video, and effectively improves the video watching experience of the user.

Description

Video payment method, video node, device and medium based on blockchain
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a video payment method based on blockchain, a video node, a terminal device, and a computer readable storage medium.
Background
The current way users view pay-per-view video on video software mainly includes membership and on-demand. Wherein, the member type usually obtains the watching qualification of all member videos through one-time member payment, and the video watched by the user is paid separately according to the order, for example, 5 yuan for film A is priced, which means that the user needs to pay 5 yuan for ordering film A. For on-demand, the related art needs to pay for viewing qualification at one time, however, in actual situations, after on-demand of a user, it is often necessary to interrupt viewing, for example, to find that the user does not like the content of film a after a period of time, so that viewing is stopped.
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 solve at least the above problems.
According to an aspect of the disclosed embodiments, there is provided a video payment method based on blockchain, including:
the video node sets 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 are required to be paid by the user node based on the first payment transaction based on the watching time length of the user node, 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 are required 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;
the video node broadcasting a second payment transaction signed by the user node into a blockchain; the method comprises the steps of,
the video node obtains a payment amount paid by the user node based on the viewing duration at the payment time point based on a second payment transaction signed by the user node.
In one embodiment, the first payment transaction includes payment calculation rules based on a duration of video viewing;
the video node calculates a payment amount and a payment time point to be paid by the user node based on the viewing time length based on the first payment transaction, including:
the video node calculates payment amount to be paid by the user node based on the watching duration generated at intervals of preset time periods and corresponding payment time points according to the payment calculation rule at intervals of preset time periods after the video is played; the method comprises the steps of,
the video node selects the payment amount with the longest viewing duration and the corresponding payment time point from the payment amount and the payment time point which are calculated based on the viewing duration and obtained every preset time period, and the payment amount and the payment time point which are calculated based on the viewing duration and obtained by the video node are used as the payment amount and the payment time point which are required to be paid by the user node.
In one embodiment, the method further comprises:
the video node sets a collection transaction and a shared account based on the intelligent contract, wherein the collection transaction is used for indicating the video node to acquire payment amount paid by the user node from the shared account, and the user node pre-stores preset amount to the shared account before watching video based on the intelligent contract;
the video node obtains a payment amount paid by the user node based on the viewing duration at the payment time point based on a second payment transaction signed by the user node, comprising:
the video node obtains a payment amount paid by the user node based on the viewing time length from the shared 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 a second payment transaction signed by the user node into the blockchain, comprising:
the video node appends 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 obtains a payment amount paid by the user node based on the viewing duration at the payment time point based on a second payment transaction signed by the user node, comprising: the video node obtains a payment amount paid by the user node based on the viewing duration at the payment time point based on the additionally signed second payment transaction.
According to another aspect of the disclosed embodiments, there is provided a video node comprising:
a setting module configured to set a first payment transaction based on the smart contract;
the calculation module is arranged to calculate the payment amount and the payment time point which are required to be paid by the user node based on the viewing time length of the user node based on the first payment transaction after the user node views the video based on the intelligent 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 which are required to be paid by the user node based on the viewing time length of the user node, signs the second payment transaction and returns the second payment transaction to the video node;
a broadcast module arranged to broadcast a second payment transaction signed by the user node into a blockchain; and
an acquisition module arranged to acquire, at the payment time point, a payment amount paid by the user node based on its viewing duration based on the second payment transaction.
In one embodiment, the first payment transaction includes a payment calculation rule based on a video viewing duration, and the calculation module includes:
the calculating unit is used for calculating the payment amount and the corresponding payment time point which are required to be paid by the user node based on the watching duration generated every preset time period according to the payment calculating rule every preset time period after the video is played; the method comprises the steps of,
the selecting unit is configured to select the payment amount with the longest viewing duration and the corresponding payment time point from the payment amount and the payment time point which are calculated based on the viewing duration and obtained every preset time period, and the payment amount and the payment time point which are calculated based on the viewing duration and obtained by the user node are used as the payment amount and the payment time point which are required to be paid.
In one embodiment, the setting module is further configured to set a collection transaction and a shared account based on the smart contract, the collection transaction being for instructing the video node to obtain a payment amount paid by the user node from the shared account, and the user node pre-storing a preset amount to the shared account before viewing video based on the smart contract;
the acquisition module is specifically configured to acquire, from the common account at the payment time point, a payment amount paid by the user node based on a viewing time period of the payment transaction based on the collection 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 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 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 thereof based on the additionally signed second payment transaction.
According to yet 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, the processor executing the blockchain-based video payment method when the processor runs the computer program stored in the memory.
According to yet another aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the blockchain-based video payment method.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
the video payment method based on the blockchain provided by the embodiment of the disclosure sets a first payment transaction based on an intelligent contract through a video node; after the user node watches the 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 time length of the user node based on the first payment transaction, the user node further generates a second payment transaction and signs the second payment transaction, the video node broadcasts the second payment transaction signed by the user node to a blockchain, and then obtains the payment amount which is required to be paid by the user node based on the watching time length of the user node at the payment time point based on the second payment transaction signed by the user node. The embodiment of the invention at least can solve the problems of unfairness and the like caused by that the user only watches partial video content but needs to pay the full charge of watching the video, 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 apparent from the description, or may be learned by practice of the disclosure. The objectives and other advantages of the disclosure will 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 description serve to explain, without limitation, the disclosed embodiments.
FIG. 1 is a flowchart of a video payment method based on blockchain according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a video payment method based on blockchain according to a second embodiment of the present disclosure;
FIG. 3 is a flowchart of a video payment method based on 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
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the following detailed description of the specific embodiments of the present disclosure will be given with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the disclosure, are not intended to limit the disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order; moreover, embodiments of the present disclosure and features of embodiments may be arbitrarily combined with each other without conflict.
Wherein 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 this disclosure 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", "component", or "unit" for representing elements are used only for facilitating the description of the present disclosure, and are not of specific significance per se. Thus, "module," "component," or "unit" may be used in combination.
In the related art, the pay-per-view is charged all at once, which is unfair to users who need to stop watching only for a certain period of time. Some video service providers formulate pay-per-order policies that are: 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 for 1 second, and prompt the user to pay, and the user can continue playing after paying, and this case has all the fees charged once; still other video service providers specify policies such as: the first 5 minutes are free, the 5 to 10 minutes only charge half the fee, and the full charge exceeds 10 minutes, and the current mode realizes the mode that the half way is terminated only partially or is free, and the two parties lack mutual trust, thus causing unnecessary trouble. But this would result in a billing dispute between the user and the video service provider if the video needs to be stopped and the user is asked if it continues to play at both the 5 minute and 10 minute intervals (if there are more stepped billing policies).
In order to solve the problems, the embodiment of the disclosure utilizes the blockchain technology and the intelligent contract technology, calculates the video viewing time of the user in real time by setting payment transaction, and the video node obtains the payment amount based on the actual video viewing time of the user, so that the user can pay for the program on demand at a time according to the actual viewing time, thereby solving the problems of unfairness and the like caused by that the user only views part of video content but needs to pay the full charge of viewing the video, and effectively improving the video viewing experience of the user.
Referring to fig. 1, fig. 1 is a flowchart of a video payment method based on blockchain according to an embodiment of the disclosure, and the method includes steps S101-S103.
In step S101, the video node sets a first payment transaction based on the smart contract.
Specifically, the user U makes an intelligent 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 intelligent contract, the first payment transaction being used to indicate a payment rule of the user node, the payment rule may include a payment calculation rule based on a video viewing duration and a calculation time thereof. For example, after the user actually views the video, an actual payment amount and a payment time point are calculated according to the actual viewing time length 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 as to implement step charging according to the actual viewing time length of the video.
In step S102, after the user node views the video based on the smart contract, the video node calculates a payment amount and a payment time point that the user node needs to pay based on the viewing time length 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 viewing time length, signs the second payment transaction, and returns the second payment transaction to the video node.
In this embodiment, the synchronicity and tamper resistance of the blockchain data are utilized, and the payment amount and payment time point calculated based on the actual viewing time of the user can effectively solve the billing dispute between the user and the video service provider caused by the unreliability of network transmission in the related art. The payment amount is the amount of the user node needing to pay to the video node, and the payment time point is that the video node obtains the payment amount of the user node at the time point. The effect of the present embodiment that the payment amount needs to be calculated at the same time includes that the user may pause playing the video for other reasons than closing the video while 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 used as evidence to trace the disputes of the follow-up video party and the user party about the video payment.
In this embodiment, the first payment transaction includes payment calculation rules based on a video viewing duration. When the user views the video, he may feel that the video is not expected to be viewed again after watching for several minutes, and the user wants to stop viewing the video in mid-way, in this embodiment, pay calculation is performed by playing the video every preset time period, and when the user stops viewing the video, the user directly charges for the video based on the actual viewing time period, and the step S102 specifically includes the following steps:
the video node calculates payment amount to be paid by the user node based on the watching duration generated at intervals of preset time periods and corresponding payment time points according to the payment calculation rule at intervals of preset time periods after the video is played; the method comprises the steps of,
the video node selects the payment amount with the longest viewing duration and the corresponding payment time point from the payment amount and the payment time point which are calculated based on the viewing duration and obtained every preset time period, and the payment amount and the payment time point which are calculated based on the viewing duration and obtained by the video node are used as the payment amount and the payment time point which are required to be paid by the user node. In addition, by selecting the calculation result with the longest duration, the embodiment can also avoid that some users need to pause watching the video for some reasons in the middle when watching the video, and the problem that the system charges the users repeatedly is likely to exist when the video is continuously watched. .
It should be noted that, a person skilled in the art may adaptively set a preset time period according to an actual situation, and calculate the payment amount and the time point of the payment every other preset time period by the video playing, for example, calculate the payment amount and the payment time point every 5 minutes by the video playing.
According to the charging mode of watching the video by the user, the charging can be performed according to the actual watching duration of the user, meanwhile, the problem that the user watches the same video to perform 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, the second payment transaction being in effect.
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 a second payment transaction signed by the user node.
Specifically, the video node and the user node may create a shared account based on the intelligent contract, the user first deposits a preset amount (may be the amount of watching the complete video) in the shared account before watching 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 watching time period from the shared account, in some embodiments, when the user only watches a part of the video, that is, under the condition that the complete video amount is not reached, the video node obtains the payment amount of the user from the shared account, and at the same time, the user node obtains the remaining funds from the shared account, based on the manner, the video party and the user party can timely obtain the funds and refund the funds, thereby further improving the user video watching experience, and simultaneously facilitating the funds management of the video party.
Referring to fig. 2, fig. 2 is a flowchart of a video payment method based on a blockchain provided in a second embodiment of the present disclosure, in which, based on the first embodiment, a user node stores a prepayment into a common account through a collection transaction and the common account, and when a payment condition is reached, a video party is ensured to obtain a payment amount from the common account in the form of an intelligent contract, the method further includes step S201, and step S104 is further divided into step S104a.
In step S201, the video node sets a collection transaction and a shared account based on the smart contract, the collection transaction being used to instruct the video node to obtain a payment amount paid by the user node from the shared account, and the user node pre-stores a preset amount to the shared account before viewing video based on the smart contract;
in step S104a, the video node obtains a payment amount paid by a user node based on its viewing duration from the shared account at the payment time point based on the collection transaction and a second payment transaction signed by the user node.
Further, the collection transaction may be further configured to instruct the user node to obtain a remaining amount from the shared account, wherein the remaining amount is a difference between the preset amount and the payment amount.
Referring to fig. 3, fig. 3 is a flowchart of a video payment method based on a blockchain provided in a third embodiment of the present disclosure, on the basis of the first embodiment, a second payment transaction is signed by a video node and a user node and broadcasted in the blockchain, the transaction is validated to ensure that rights of both the user node and the video node are not damaged, specifically, step S103 is further divided into steps S103a and S103b, and step S104 is further divided into step S104b.
In step S103a, the video node appends a signature to a 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 obtains, 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;
for further understanding of the present disclosure, this embodiment is further described in connection with the above-described embodiments, in which the user U sets 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 an intelligent contract with the video service provider P. And after receiving the program for a certain time, the U sends an updated formal payment transaction to the P. P broadcasts a formal transaction to the blockchain after the agreed time to obtain payment for U.
Intelligent contract:
(1) U requests video from P
(2) P set transaction T precharge {[I U ],[o=c→(U,P)]}
(3) P set transaction T charge {[o],[f(n)→P,(c-f(n))→U]|[g(N,n)]}
(4) P to T precharge And T charge Signature and issue to U
(5) U is opposite to T precharge Signed broadcast to blockchain
(6) P sending video stream to U
(7) The following procedure is performed
1.n=0
Do in white video playback
3. Waiting for a period of length m
4.n=n+1
5.U modifying Tcharge according to n value, signature to P
6.end while
(8) After g (N, N), the Tcharge with the largest value of P to f (N) is broadcast to the blockchain
In the above intelligent contracts, description is made:
(A) P represents a video website or service provider that provides video services. U represents the user viewing the program. [ IU ] represents the owned funds from U for c in the transaction Tpayy, which may be either real currency or virtual currency. c→ (U, P) means that funds of amount c are paid to the account co-administered by U and P, which funds can only be used if both U and P agree. [ o=c→ (U, P) ] represents a pool of funds formed by the o-label c→ (U, P). [ o ] represents that the funds in Tcharge originate from c.fwdarw. (U, P).
(B) f (n) →p, (c-f (n))→u means that funds of the amount f (n) are paid to P while the remaining funds are returned to U. Where n is the length of time that the U actually views, typically in 1 minute, although other time lengths may be used, such as other time units such as every 15 seconds. If m in 1 minute is 1 minute, m in 7 is 15 seconds, and if m in 15 seconds is 1 minute. f (n) is then a function of n, indicating the cost to be paid by U calculated from n. If f (n) is a step function, P may implement a step charge for U.
(C)[g(N,n)]Is transaction T charge The additional condition that is satisfied is combined with the transaction content [ f (n) →P, (c-f (n))→U]Separated from each other. Indicating that the transaction is not valid until the time of g (N, N) is reached. Due to T charge Is a transaction of both U and P, thus T charge The conditions to be satisfied are that the signatures of both U and P are provided, and that the time of g (N, N) is reached. N represents the duration of the film. g (N, N) is a function of the film duration and the user viewing duration, representing the point in time of the final charge calculated from the film duration and the user actual viewing duration.
(D) When the user starts watching the video, the value of n is increased by 1 every one timing unit.
(E) Since the blockchain system allows only one to be validated for transactions using the same pool of funds, although P will get multiple T with U-signatures charge The transaction, but only one of them can take effect. Therefore P will select T with the largest f (n) value charge The appended signature is broadcast to the blockchain.
According to the above intelligent contract, this embodiment is further described as follows:
(1) The timing unit m is 1 minute, i.e. the n value increases by 1 every 1 minute elapsed. The film duration N is 100 minutes. The film pays 5 yuan in full.
(2) f (n) is a step function, f (n) =0 when n is equal to or less than 5, f (n) =5×10 when 5<n is equal to or less than 10, f (n) =5×30 when 10< n is equal to or less than 20, and f (n) =5 when n > 20. I.e., free for the first 5 minutes, 10% of the total charge is charged for 5 to 10 minutes, 30% of the total charge is charged for 10 to 20 minutes, and more than 20 minutes of the total charge is charged.
(3) g (N, N) is a discrete function, g (N, N) =n+5 when N < N; when N is n.gtoreq.n, g (N, N) =n+1.
(4) If the user views for 8 minutes, i.e., terminates the viewing, then after 5 minutes, i.e., 13 minutes, the user is automatically charged for 0.5 yuan, and the user is automatically refunded for 4.5 yuan.
(5) If the user views for 18 minutes, i.e., terminates the viewing, 1.5 yuan will be automatically collected for the user after 5 minutes, i.e., 23 minutes, and 3.5 yuan will be automatically returned for the user.
(6) If the user views for 28 minutes, i.e., terminates the viewing, the user 5-tuple is automatically collected after 5 minutes, i.e., 33 minutes.
(7) If the user has viewed the entire movie in its entirety, the user 5-gram will be automatically received at 101 minutes.
It can be seen that in the above process, the situation that the user is prompted to continue paying or is asked whether to continue watching, i.e. the video playing is interrupted or the user experience is affected by covering a semitransparent page on the video program, etc. will not occur halfway.
Based on the same technical concept, the embodiment of the present disclosure correspondingly further provides a video node, as shown in fig. 4, where the video node includes:
a setting module 41 configured to set a first payment transaction based on the smart contract;
a calculating 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 a viewing time period 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 time period of the user node, signs the second payment transaction, and returns the second payment transaction to the video node;
a broadcast module 43 arranged to broadcast a second payment transaction signed by the user node into the blockchain; the method comprises the steps of,
an acquisition module 44 arranged to acquire, at the payment point in time, a payment amount paid by the user node based on its viewing duration based on the second payment transaction.
In one embodiment, the first payment transaction includes payment calculation rules based on the duration of video viewing, and the calculation module 42 includes:
the calculating unit is used for calculating the payment amount and the corresponding payment time point which are required to be paid by the user node based on the watching duration generated every preset time period according to the payment calculating rule every preset time period after the video is played; the method comprises the steps of,
the selecting unit is configured to select the payment amount with the longest viewing duration and the corresponding payment time point from the payment amount and the payment time point which are calculated based on the viewing duration and obtained every preset time period, and the payment amount and the payment time point which are calculated based on the viewing duration and obtained by the user node are used as the payment amount and the payment time point which are required to be paid.
In one embodiment, the setting module 41 is further configured to set a collection transaction and a shared account based on the smart contract, the collection transaction being used to instruct the video node to obtain a payment amount paid by the user node from the shared account, and the user node pre-storing a preset amount to the shared account before viewing video based on the smart 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 time period based on the collection transaction and a second payment transaction signed by the user node.
In one embodiment, the video node further comprises:
the broadcast module 43 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 44 is specifically 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 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, where 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 blockchain-based video payment method.
Based on the same technical concept, the embodiments of the present disclosure correspondingly further provide a computer readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor executes the video payment method based on the blockchain.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. 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 both 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 known to those skilled 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 a computer. Furthermore, as is well known to those of ordinary skill in the art, 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.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution 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, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present disclosure.

Claims (8)

1. A blockchain-based video payment method, comprising:
the video node sets a first payment transaction based on the smart contract, the first payment transaction including a payment amount based on the video viewing duration and a payment time point calculation rule;
the video node sends the first payment transaction to a user node, so that the user node generates second payment transactions based on payment amount and payment time points which need to be paid for the video watching duration of the user node every preset time period after watching the video based on the intelligent contract, signs each generated second payment transaction in sequence and returns the second payment transactions to the video node;
the video node selects a second payment transaction with the longest video watching duration from all received second payment transactions, and broadcasts the selected second payment transaction to a blockchain; the method comprises the steps of,
the video node obtains payment amount paid by the user node based on the video viewing duration of the user node at a corresponding payment time point based on the selected second payment transaction.
2. The method as recited in claim 1, further comprising:
the video node sets a collection transaction and a shared account based on the intelligent contract, wherein the collection transaction is used for indicating the video node to acquire payment amount paid by the user node from the shared account, and the user node pre-stores preset amount to the shared account before watching video based on the intelligent contract;
the video node obtains payment amount paid by the user node based on the video watching duration of the user node at a corresponding payment time point based on the selected second payment transaction, and the method comprises the following steps:
the video node obtains payment amount paid by the user node based on the video watching time from the common account at a corresponding payment time point based on the collection transaction and the selected second payment transaction.
3. The method of claim 1, wherein the video node broadcasting the selected second payment transaction into a blockchain, comprising:
the video node appends a signature to the selected second payment transaction;
the video node broadcasting the additionally signed second payment transaction into the blockchain;
the video node obtains payment amount paid by the user node based on the video watching duration of the user node at a corresponding payment time point based on the selected second payment transaction, and the method comprises the following steps:
the video node obtains the payment amount paid by the user node based on the video watching duration at the corresponding payment time point based on the second payment transaction after the additional signature.
4. A video node device, comprising:
a setting module configured to set a first payment transaction based on the smart contract, the first payment transaction including a payment amount based on the video viewing duration and a payment time point calculation rule;
the sending module is configured to send the first payment transaction to a user node, so that the user node generates a second payment transaction based on the payment amount and the payment time point which are required to be paid for the video watching duration of the user node every preset time period after watching the video based on the intelligent contract, signs each generated second payment transaction in sequence, and returns the second payment transaction to the video node;
a broadcasting module configured to select a second payment transaction having a longest video viewing duration from all received second payment transactions, and to broadcast the selected second payment transaction into the blockchain; the method comprises the steps of,
an acquisition module arranged to acquire, based on the selected second payment transaction, a payment amount paid by the user node based on its video viewing duration at a corresponding payment time point.
5. The video node device of claim 4, wherein the setting module is further configured to set a collection transaction and a common account based on the smart contract, the collection transaction to instruct the video node to obtain a payment amount paid by the user node from the common account, and the user node pre-stores a preset amount to the common account prior to viewing video based on the smart contract;
the acquisition module is specifically configured to acquire, from the common account at a corresponding payment time point, a payment amount paid by the user node based on the video viewing duration of the user node based on the collection transaction and the selected second payment transaction.
6. The video node device of claim 4, further comprising:
the broadcast module is specifically configured to append a signature to the selected second payment transaction; and broadcasting the additionally signed second payment transaction into the blockchain;
the acquisition module is specifically configured to acquire, at a corresponding payment time point, a payment amount paid by the user node based on the video viewing time period of the user node based on the additionally signed second payment transaction.
7. A terminal device comprising a memory and a processor, the memory having a computer program stored therein, the processor performing the blockchain-based video payment method of any of claims 1 to 3 when the processor runs the computer program stored in the memory.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, performs the blockchain-based video payment method according to any of claims 1 to 3.
CN202011387057.3A 2020-12-01 2020-12-01 Video payment method, video node, device and medium based on blockchain Active CN112561522B (en)

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 CN112561522A (en) 2021-03-26
CN112561522B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113240415B (en) * 2021-05-12 2023-11-03 中国联合网络通信集团有限公司 Stored-value card recharging method, system, equipment and storage medium based on block chain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108629584A (en) * 2018-04-25 2018-10-09 常海峰 Mode of payment, device based on block chain and computer readable storage medium
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
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
US11087323B2 (en) * 2018-08-21 2021-08-10 Bank Of America Corporation Exposure based secure access system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Also Published As

Publication number Publication date
CN112561522A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN112335257B (en) Server and computer-readable recording medium
US20080077950A1 (en) System and method for billing for video content
US20140196064A1 (en) Content Marketplace And Customization Of Content Acquisition
US20120079513A1 (en) Billing system for video provisioning system
CN105049898B (en) Home theater implementation method, device, system and client based on DTV
WO2011016001A2 (en) Systems and methods for supporting user generated advertising transactions in a video service provider environment
JPH05145919A (en) System and method of remotely charging service fare to subscriber
EP2742699A1 (en) Method and apparatus for giving video on demand assets to social network friends
CA2808545C (en) Converting a digital media item from a rental to a purchase
CN112561522B (en) Video payment method, video node, device and medium based on blockchain
CN101212317A (en) Billing method in mobile digital broadcast network
Dixit et al. TVCCCS: Television viewer’s channel cost calculation system on per second usage
US20130246155A1 (en) Digital content purchase offers via set-top box
RU2300849C2 (en) Method for time-interval based compilation of broadcast service rates
CN112399202B (en) Advertisement pushing method, video node, user node, advertisement node and system
JP2004235921A (en) Content distribution system, content distribution device, program, and recording medium
US20210365908A1 (en) Tracking use of metered content from a content delivery system
CN101212318A (en) Value adding method in mobile digital broadcast network
CN112398922B (en) Advertisement pushing method and system based on block chain
CN112804552A (en) Plug-in configuration method and device and electronic equipment
US20140250446A1 (en) Method for authorising
CN112399205B (en) Advertisement pushing method and system
RU46896U1 (en) DEVICE OF ELECTRONIC PAYMENT SYSTEM (OPTIONS)
WO2008111819A1 (en) System and method for canceling ippv purchasing program of video/audio channel and music channel of dmb system
JP2002044643A (en) Equipment and method for receiving information and equipment and method for transmitting information

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