Onchain Video On Demand
That URL shall find and return manifest files in a given transaction outpoint in valid HLS manifest format. Then you can give a powco video URL to your video player such as:
<HLSVideoPlayer src={`https:/pow.co/${txid_vout}.m3u8`} />
Powco parses the HLS manifest file out of its output script and returns a valid m3u8 file containing references to the various video segments, which are all in their own outpoints.
Each video segment file is uploaded in a separate bitcoin transaction output script and reference by its outpoint.
/{txid_vout}.ts URLs will parse and stream the content of each video segment requested, making Powco Video on Demand work out of the box with all HLS streaming players.
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:8
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:8.333333,
{outpoint_0}.ts
#EXTINF:8.333333,
{outpoint_1}.ts
#EXTINF:8.333333,
{outpoint_2}.ts
#EXTINF:5.366667,
{outpoint_3}.ts
#EXT-X-ENDLIST
The back end implementations can be changed and improved over time to increase performance while reducing cost, leaving the web interface continually conformant to the HLS HTTP API standards.