This repo contains the videoDAC
template pay-to-play streaming app for Android.
These instructions include:
- Explanation of a "Template App"
- Recipe to create and publish your own livestream channel app ("Acme App")
- Overview of app's user journey
- Example deployments of this "Template App"
Please submit any issues or pull requests to this repository.
A "template app" is all the code required for the publisher of a stream to generate a file (.apk
) which can be installed directly onto any Android device, or which can be published to Android distribution channels (e.g. Google Play Store, F-droid).
The template must be configured with the following:
- App name e.g. "Acme Pay-to-play Streaming App", and copy
- "Pay-to" address i.e. where you would like to receive payment
- Price-per-minute in network's native ETH token (can be zero for free-to-play app)
RPC URL
for publishing transactions on Ethereum testnets and mainnetSTREAM_URL
which is the stream of A/V content to be played in the app
The initial User Journey for a user of the app is:
User installs and launches app
- App creates own new wallet, checks balance with Infura
- App shows "paywall screen", including
- Wallet's 0 balance (new wallet)
- Price-per-minute
- App's own ETH address + QR Code
- App-specific copy
User taps screen
- App closes
- Android notifies User that App's ETH address is stored to clipboard
User sends enough ETH to app's ETH address User launches app
- App checks wallet balance with Infura
- App shows livestream video content
User watches livestream video content
- App pays to Livestreamer's ETH address
- Payment made every minute until
( balance < price-per-minute )
- Payment made every minute until
This guide will take you step by step through creating an APK from a template and publishing it on the Google Play store.
OS: Linux Ubuntu 18.04
- Create a Google Play Developer Account
- Developer Environment
- Install Android Studio
- Get the App Template
- Import the App to Android Studio
- Setting Key Variables
- Generating the APK
- Releasing the APK
This app has been used in the following deployments:
- Alice's Pay-As-You-Go Livestream Viewer App
- App published on Google Play
- Payments in goETH
- Paying to 0x4b4E19E18EbADdFB57DC1f07E07268b827A0EC18
- Here is an example of an address used by the app to pay per minute of content.