~/bend-docscommunity

rtmp.bend fails

raw source on the hub · import 0xfbc4773809086afacef84e7fba6d620c/rtmp.bend as Rtmp

RTMP client: a session that gives a stream's audio and video.

s <- Rtmp.open(E.Opts.new("rtmp://server/app/stream")) (s, tag) <- Rtmp.next(s) as many times as wanted Rtmp.close(s)

What goes on the wire:

C: C0 C1 S: S0 S1 S2 C: C2 C: Set Chunk Size, connect(app) S: _result C: createStream S: _result, the stream id C: play(stream), Set Buffer Length S: onStatus Play.Start S: data (the metadata), audio and video messages

A tag is one of those messages, in the form FLV keeps them: written one after the other after a header they make an FLV file, and flv.bend takes the frames out of them. This file is the IO; the bytes and their meaning are in rtmp_core.bend and amf.bend, which are pure.

rtmps:// is RTMP under TLS. A login goes in the URL's query, as the servers that use one expect (rtmp://host/app?user=...&pass=...).

7 imports
import Base
import ./bytes.bend as B
import ./amf.bend as A
import ./rtmp_core.bend as K
import ./rtsp_core.bend as C
import ./conn.bend as N
import ./opts.bend as E