<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
>
Name (CSS property) | Type (tag) | Type (js) | Default | Category |
---|---|---|---|---|
altsrc
|
string | String | read/write | |
Alternate application url, used if the connection for src fails for example : "rtmp:/appname" or "rtmp://myserver.com/myapp/". | ||||
autoconnect
|
boolean | Boolean | true | read/write |
Connect automatically during init. If false, you need to explicitly call connect(). | ||||
connectionparams
|
expression | Expression | null | read/write |
Connection parameters that will be sent to the server when NetConnection.connect() is called | ||||
connectiontimeout
|
number | Number | 3000 | read/write |
Number of milliseconds to wait for connection at src before using altsrc URL | ||||
debug
|
expression | Boolean | false | read/write |
Turn on for verbose debugger output. | ||||
objectencoding
|
number | Number | 0 | initialize-only |
The AMF object encoding to use for this connection, either 0 or 3. | ||||
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. |
aaactive, aadescription, aaname, aasilent, aatabindex, align, backgroundrepeat, bgcolor, cachebitmap, capabilities, clickable, clickregion, clip, colortransform, context, contextmenu, cornerradius, cursor, fgcolor, focusable, focustrap, font, fontsize, fontstyle, frame, framesloadratio, hasdirectionallayout, hassetheight, hassetwidth, height, layout, loadratio, mask, opacity, pixellock, playing, proxyurl, resource, resourceheight, resourcewidth, rotation, shadowangle, shadowblurradius, shadowcolor, shadowdistance, showhandcursor, source, stretches, subviews, tintcolor, totalframes, unstretchedheight, unstretchedwidth, usegetbounds, valign, visibility, visible, width, x, xoffset, xscale, y, yoffset, yscale
classroot, cloneManager, data, datapath, defaultplacement, id, ignoreplacement, immediateparent, inited, initstage, name, nodeLevel, options, parent, placement, styleclass, subnodes, transition
Methods
bringToFront, containsPt, getAttributeRelative, getBounds, getColor, getColorTransform, getCurrentTime, getDepthList, getDisplayObject, getID3, getMouse, getNextSelection, getPan, getPrevSelection, getProxyURL, getTotalTime, getVolume, init, isBehind, isInFrontOf, isMouseOver, measureHeight, measureWidth, play, proxyurl, searchSubviews, seek, sendAAEvent, sendBehind, sendInFrontOf, sendToBack, setAccessible, setAttributeRelative, setColor, setColorTransform, setPan, setProxyPolicy, setSource, setVolume, shouldYieldFocus, stop, unload, updateResourceSize
animate, applyConstraintMethod, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getOption, getUID, init, lookupSourceLocator, releaseConstraint, releaseConstraintMethod, searchImmediateSubnodes, searchSubnodes, setOption, setSelected, updateData
onaddsubview, onbackgroundrepeat, onblur, onclick, onclickable, onclip, oncontext, oncornerradius, ondblclick, onerror, onfocus, onframe, onframesloadratio, ongesture, onheight, onkeydown, onkeyup, onlastframe, onload, onloadratio, onmousedown, onmousedragin, onmousedragout, onmouseout, onmouseover, onmousetrackout, onmousetrackover, onmousetrackup, onmouseup, onmouseupoutside, onopacity, onplay, onplaying, onremovesubview, onshadowangle, onshadowblurradius, onshadowcolor, onshadowdistance, onstop, ontimeout, ontouch, onvisible, onwidth, onx, ony
Copyright © 2002-2010 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.