![]() |
home | contact us | about us | |
| (by Lou Burne, last updated 10-APRIL-2012) | ||
| RtmpClient | |
| Construct a new RtmpClient object. Pass a reference to a Forms Control if you want the status change events to be invoked, otherwise pass null. | |
| Create a new RtmpConnection object which encapsulates a connection to an RTMP server. | |
| An event to notify of changes to client, connection or stream. This event and its arguments are detailed below. Note: It is more efficient to use the message preprocessing callback functions instead of Window messages. |
|
| Set to true to
enable StatusChanged events. Setting to false if you are not using events will save computer resources. |
| RtmpConnection | |
| The
BehaviourFlags is set when the connection is created by calling
RtmpClient.CreateConnection. Values for can be one or more of the following: DoNotSendHandshake Do not initialize the connection with the Rtmp handshake. SendHandshakeButIgnoreHandshakeErrors Do the RTMP handshake, but do not throw an error if the returned data is not in the expected format. AutoRespondToSetPeerBW Return a WindowsAckSize message for each SetPeerBW.. AutoChopUpAggregateMessages Automatic chopping up of aggregate messages as they are received. AutoPingPong Sends back a pong for every ping received. AutoRespondToBandwidthCheck When set, any request from the server to perform a bandwidth check is responded to, and a result message sent to the server after the bandwidth data has been received. AutoDataAckReceivedData Enables sending of data acknowledgment messages. These message are sent after a predefined amount of data has been received by the client. It is one way that the server knows which clients are still listening. AutoAdjustAggregatedMediaMsgTarget Automatic correction of message-targets in aggregated messages. Some RTMP servers aggregate messages with a message target of zero, but with a valid message target in the aggreate message header. Setting this property to true ensures zero message targets are replaced with the aggregate message target. AutoAdjustAggregatedMediaTimestamps Automatic correction of timestamps in aggregated messages for live streams. See Bad Timestamps in Live Streams. |
|
| A UInt32 property for getting the current client-side timestamp. Used when creating your own messages. |
|
| A UInt32 property for getting the current chunk size.
Used when creating your own messages. |
|
| A UInt32 property for setting the time in milliseconds to wait for a "result" or "error" response form the server. | |
| Close the current connection. Closes all streams for this connection. | |
| Returns null if the stream is valid, otherwise returns a string description. | |
| Send a message and wait for a response. The response expected will have the same message target as the sent message, will also have a string value for the first parameter (for example "_result" or "_onStatus"), and will be the same message type (for example, an Amf0 Command). | |
| Send a message and return immediately. | |
| Get the next transaction id, and increment the next transaction Id counter (2 - 0x7FFFFF). | |
| |
Get the next Amf Stream id. Amf stream ids are rotated on the client-side (8 - 28). |
| Connect to a streaming application on the server. | |
| Create a new RtmpStream object. | |
| Mount a stream
that has been opened by the server. A mounted stream has an initial state of STREAMING. |
|
| Register a
function that will be called each time the connection begins a
stream that has not been opened by the client. Many Rtmp servers automatically begin stream 0 when a connection is made. If the application wants to do something with that stream, it will need a reference to it. This callback function provides that reference. Examples of using this callback can be found in the sample project, LiveTv. |
|
| RtmpStream | |
| A UInt32 property for getting the stream id that was assigned to the stream by the RTMP server. | |
| An eState property for getting the current state. Values include Idle, Streaming, Reset, Paused, Stopped and Closed. Once a stream is closed, it cannot be re-opened. | |
| A UInt32 property for getting the amount of data collected in the audio data buffer. Note: It is more efficient to use the callback functions that the internal collector buffers. |
|
| A UInt32 property for getting the amount of data collected in the video data buffer. Note: It is more efficient to use the callback functions that the internal collector buffers. |
|
| A boolean property to enable the collecting of audio data in the audio data buffer.
Set to false by default. Note: It is more efficient to use the callback functions that the internal collector buffers. |
|
| A boolean property to enable the collecting of video data in the video data buffer.
Set to false by default. Note: It is more efficient to use the callback functions that the internal collector buffers. |
|
| A boolean property which when enabled, sends a StatusChanged event when meta-data is received for this stream. | |
| Returns null if the stream is valid, otherwise returns a string description. | |
| Sends the play command for the stream. | |
| Pause or resume streaming. | |
| Seek to a time offset within the stream. | |
| Close the stream using the RTMP function "deleteStream". | |
| Set the buffer size in milliseconds. | |
| Clear the buffer of collected audio data. Note: It is more efficient to use the callback functions that the internal collector buffers. |
|
| Clear the buffer of collected video data. Note: It is more efficient to use the callback functions that the internal collector buffers. |
|
| |
Grab collected audio data into the buffer provided. Note: It is more efficient to use the callback functions that the internal collector buffers. |
| Grab collected video data into the buffer provided. Note: It is more efficient to use the callback functions that the internal collector buffers. |
|
| Register a function as the pre-processing callback function for this stream.
This is the most efficient method for processing data from the RtmpClient. Requires the following: fnCallback - The name of a callback function. oParam - A parameter object, for the use of the parent application. eCallbackFilterFlags - A filter identifying the types of messages to call back on. |
| RtmpMessage | |
| This is an abstract top-level class. All of the message classes are based on this class. | |
| The Amf stream id for the message. | |
| The server-side timestamp. | |
| The message target, which is either zero or a stream id. | |
| An eMsgType property for getting the RTMP type of the message. | |
| If this property is true, the smallest possible header size is used when serializing the message to an array fo bytes. The default value is true. | |
| Creates a buffer out of the message that can be sent over a socket connection. | |
| Creates a string description of the message. | |
| RtmpMessage_AudioData | |
| The audio-data message. | |
| A byte-array property containing the audio-data payload of the message. | |
| Set the audio-data payload. | |
| RtmpMessage_CommandAmf0 | |
| An AMF0 command message. | |
| A ParameterList property for getting a reference to the list of parameters. | |
| A static helper function for building a "connect" message. | |
| A static helper function for building a "createStream" message. | |
| A static helper function for building a "play" message. | |
| A static helper function for building a "pause" message. | |
| A static helper function for building a "seek" message. | |
| A static helper function for building a "deleteStream" message. | |
| RtmpMessage_Control | |
| A control-code message. Control messages are used for a variety of functions, each with their own parameter set. | |
| Set or get the ControlCode for the message, including STREAM_BEGIN, STREAM_EOF, STREAM_DRY, SET_BUFFER_SIZE,
STREAM_IS_RECORDED,
PING_REQUEST,
PING_RESPONSE,
SWFV_REQUEST, SWFV_RESPONSE, UNKNOWN1 and UNKNOWN2. |
|
| The stream-id parameter for the stream control code messages. | |
| The ping-time data in a ping request and returned in a ping response (a pong). | |
| Get and set the SetBufferLength parameter in milliseconds. | |
| The response buffer for the SWFV_REQUEST and SWFV_RESPONSE control messages. | |
| A static helper function for building a SET_BUFFER_SIZE message. | |
| A static helper function for building a PING_RESPONSE message. | |
| RtmpMessage_DataAck | |
| A acknowledgement of received data. | |
| Get or set a UInt32 value representing the amount of bytes received since the last DataAck message was sent. | |
| A static helper function for building a DataAck message. | |
| RtmpMessage_MetaDataAmf0 | |
| Meta-data that is streamed with the audio and video data. | |
| A ParameterList property for getting a reference to the list of parameters. | |
| RtmpMessage_SetChunkSize | |
| A chunk-size value, sent from the RTMP server, specifying how message data will be chopped up. | |
| A UInt32 property for getting and setting the new chunk size. | |
| RtmpMessage_SetPeerBW | |
| A SET_PEER_BW message. | |
| An eLimitValue property, including HARD, SOFT and DYNAMIC. | |
| A UInt32 property for getting and setting the bandwidth value. | |
| RtmpMessage_VideoData | |
| The video-data message. | |
| A byte array property containing the video-data payload of the message. | |
| Set the video-data payload. | |
| RtmpMessage_WindowAckSize | |
| A specification of the Ack data size. | |
| A UInt32 property for getting and setting the acknowledgement widow size in bytes. |
|
| A static helper function for building a Window-Ack-Size message. |
|
| RtmpMessage_Raw | |
| An Rtmp message with header and payload. | |
| A byte array property for accessing the payload buffer. | |
| Set the payload buffer. | |
| The message had a corrupt payload. | |
| The messages caused the RtmpClient library to throw an exception during translation. | |
| The message is of a type not currently supported by the RtmpClient library, including Meta Data AMF3, AMF3 Commands, Shared Object AMF0, and Abort. | |
| The message contained parameters not currently supported by the RtmpClient library, including MovieClip, Referencer, LongString, Unsupported, Recordset, XmlDocuments and TypedObject. |
| A property of type RtmpEventArgs::eHint, describing the status change that raised the event. A table of possible values for the Hint is detailed below. Note that eHint is an attributes flag, and can combine more than one value. |
|
| A reference to the RtmpStream object for this event. | |
| A reference to the RtmpMessage for this event. |
| ConnectionOpened | A new connection has been created. |
| ConnectionClosed | An existing connection has been closed. |
| StreamOpened | A new stream has been opened. The Stream property of the RtmpEventArgs will have a reference to the new stream. |
| StreamClosed | An existing stream has been closed. The Stream property of the RtmpEventArgs will have a reference to the closed stream. |
| CannotTranslateMsg | A message has been received from the RTMP server that cannot be translated. The Message property of the RtmpEventArgs will have a reference to a raw message class. |
| AudioDataAvailable | Some audio data has been stored in the stream's audio data collector. This event is only sent when the collector was previously empty. The Stream property of the RtmpEventArgs will have a reference to the stream on which the data was received. |
| VideoDataAvailable | See the description for AudioDataAvailable. |
| StreamBegin | Streaming has begun. The Stream property of the RtmpEventArgs will have a reference to the stream on which the data was received. |
| StreamPaused | A stream has been paused. The Stream property of the RtmpEventArgs will have a reference to the stream on which the data was received. |
| StreamReset | A stream has been reset. The Stream property of the RtmpEventArgs will have a reference to the stream on which the data was received. |
| StreamStopped | A stream has stopped. The Stream property of the RtmpEventArgs will have a reference to the stream on which the data was received. |
| IncomingMetaData | A meta-data message has been received. The Stream property of the RtmpEventArgs will have a reference to the stream on which the data was received. |
| ParserTripped | During translation of a received RTMP message, the RtmpClient library code fell over, and there can be no more translation of messages. This is a fatal error. |
| PingsExchanged | A ping request was received, and a response was sent. |
| ReceivedDataAck | A DataAck message was sent to acknowledge received data. |
![]() |
© 1998-2012 Broccoli Products Ltd Reg Number: 2895355 Reg Office: 27 Old Gloucester Street, London. WC1N 3AX |
Privacy Policy Copyright Notice Liability Disclaimer Contact Us |
|