All Projects → Jasmin2895 → web-monetized-video

Jasmin2895 / web-monetized-video

Licence: MIT license
experimenting with web monetisation API

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to web-monetized-video

Justpay
spring-boot2.0.0+Dubbox+spring-webflux的轻量级分布式聚合支付
Stars: ✭ 99 (+560%)
Mutual labels:  pay
Pay Java Parent
第三方支付对接全能支付Java开发工具包.优雅的轻量级支付模块集成支付对接支付整合(微信,支付宝,银联,友店,富友,跨境支付paypal,payoneer(P卡派安盈)易极付)app,扫码,网页刷脸付刷卡付条码付转账服务商模式,微信分账,微信合单支付、支持多种支付类型多支付账户,支付与业务完全剥离,简单几行代码即可实现支付,简单快速完成支付模块的开发,可轻松嵌入到任何系统里 目前仅是一个开发工具包(即SDK),只提供简单Web实现,建议使用maven或gradle引用本项目即可使用本SDK提供的各种支付相关的功能
Stars: ✭ 2,025 (+13400%)
Mutual labels:  pay
web-components
A set of high-quality standards based web components for enterprise web applications. Part of Vaadin 20+
Stars: ✭ 322 (+2046.67%)
Mutual labels:  webcomponents
Sy flutter wechat
Flutter 微信支付插件
Stars: ✭ 108 (+620%)
Mutual labels:  pay
Alipay kit
flutter版支付宝登录/支付
Stars: ✭ 140 (+833.33%)
Mutual labels:  pay
Pay
支付 SDK 的集合与重构,支持支付宝、微信支付、银联支付。
Stars: ✭ 198 (+1220%)
Mutual labels:  pay
Wxpay
微信支付SDK - 商户支付/商户分账/服务商支付/服务商支付
Stars: ✭ 90 (+500%)
Mutual labels:  pay
WHMCS-JSJ-API-Pay-Gateway
WHMCS 财务系统对接金莎云免签支付API(你们怎么用,与我无瓜好吧:)
Stars: ✭ 58 (+286.67%)
Mutual labels:  pay
Gochat
🔥 微信 Go SDK 🚀🚀🚀
Stars: ✭ 141 (+840%)
Mutual labels:  pay
Pay Gateway
pay gateway. support alipay,wechatpay,unionpay,jdpay etc.
Stars: ✭ 247 (+1546.67%)
Mutual labels:  pay
Pay Python
轻量级支付方式整合集成,实现支付与业务完全剥离,快速简单完成支付模块的开发,代码实现优雅灵活,横向扩展简单
Stars: ✭ 109 (+626.67%)
Mutual labels:  pay
Dwwxpay
微信支付/订单查询
Stars: ✭ 122 (+713.33%)
Mutual labels:  pay
Best Pay Sdk
可能是最好的支付SDK
Stars: ✭ 2,651 (+17573.33%)
Mutual labels:  pay
Wxpay
微信支付 wxpay SDK for Go, 集成简单,功能完善,持续更新。
Stars: ✭ 99 (+560%)
Mutual labels:  pay
pattern-library
AXA CH UI component library. Please share, comment, create issues and work with us!
Stars: ✭ 103 (+586.67%)
Mutual labels:  webcomponents
Teepay
Typecho 个人支付宝、微信收款插件
Stars: ✭ 90 (+500%)
Mutual labels:  pay
Priest
dubbo mybatis springboot base soa rest api framework with customer code generator
Stars: ✭ 160 (+966.67%)
Mutual labels:  pay
vaadin-select
Customizable Web Component similar to a native browser select. Part of the Vaadin components.
Stars: ✭ 18 (+20%)
Mutual labels:  webcomponents
webcomponents.dev
Web Components IDE
Stars: ✭ 51 (+240%)
Mutual labels:  webcomponents
Oneqrcode
📱 微信、支付宝、QQ 三合一收款二维码(单文件版)
Stars: ✭ 233 (+1453.33%)
Mutual labels:  pay

web-monetized-video

A web component which has play and pay policy and charges you for the amount of video watched. 😄 💃

Component:

  • [<web-monetized-video>] - a component that allow the user to pay for the section of video watched.

Installation

<web-monetized-video> is a packaged javascript module.

Modules are loaded asynchronulsy by browser, so for registering our component quickly we can load them in the head 👍

<head>
  <script type="module" src="https://unpkg.com/web-monetized-video"></script>
</head>

How to use

<html>
<head>
  <script type="module" src="https://unpkg.com/web-monetized-video"></script>
</head>
<body>

  <web-monetized-video width="300" height="200" url="video_url" monetization-link="payment_pointer"></web-monetized-video>

</body>
</html>

Parameters

  • width - Width of the element
  • height - Height of the element
  • url- Link of the video. (Example- https://www.html5rocks.com/en/tutorials/video/basics/Chrome_ImF.webm)
  • monetization-link- link to payment wallet of the user (Example- $wallet.example.com/alice)

Events Listeners

Events Are
monetizationstart Determine when Web Monetization has started actively paying by adding an event listener for monetizationstart
monetizationprogress Determine the current status of the payment stream by adding an event listener for monetizationprogress
monetizationpending Determine when Web Monetization is enabled by adding an event listener for monetizationpending
monetizationstop Determine when Web Monetization has stopped by adding an event listener for monetizationstop

Adding to your app via npm

npm install web-monetized-video --save

Include in your app javascript (e.g. src/App.js)

import 'web-monetized-video';

This will register the custom elements with the browser so they can be used as HTML.

LICENSE

MIT (c) 2020 Jasmin Virdi

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].