<rtmpconnection>
Allows connections to RTMP servers

JavaScript: lz.rtmpconnection
extends <node> » lz.Eventable »

<rtmpconnection> allows applications to connect to RTMP servers, like http://osflash.org/red5 or http://www.wowzamedia.com/. Note that you'll need a server running with the appropriate URLs set up for this example to work.

<canvas>
            <rtmpconnection src="rtmp://localhost:1935/simplevideostreaming/" autoconnect="true"/>
            <videoplayer url="Extremists.flv" type="rtmp" autoplay="true" width="320" height="240"/>
        </canvas>
edit

Attributes

Name Type (tag) Type (js) Default Category
autoconnect boolean Boolean true read/write
  Connect automatically during init. If false, you need to explicitly call connect(). Default is true.
debug expression Boolean false read/write
  Turn on for verbose debugger output.
stage number Number 0 read/write
  Number to indicate what stage of connection we're in: 0: disconnected, 1: connecting, 2: connected.
status string string disconnected read/write
  String to indicate connection status.

Methods

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy