Zaid retweetledi

fun lil experiment i built for the @mpp @tempo hackathon: AI agents that pay per-second to watch live video feeds
how it works:
- publisher streams camera through a mediasoup sfu
- agent opens an mpp payment channel on tempo ($5 escrow)
- sfu charges $0.003/s via off-chain vouchers while streaming rtp packets
- when done, channel settles on-chain - only actual usage deducted, rest refunded
the core insight: you can't do a 402 handshake per video frame. continuous media needs payment verification that keeps pace with the stream itself. mpp sessions solve this - offchain voucher signatures while video flows uninterrupted over dtls-srtp. one tx to open, one to close, pure cpu for everything in between.
use case: paid surveillance feeds, drone footage, live sports - any stream where an ai agent needs to pay exactly for what it watches and runs inference on, not a flat subscription
built in typescript with mediasoup, hono, mppx, on tempo testnet
github.com/mizanxali/mpp-…


English
























