MulticastStreamIngest class

[adoberuntime]Flash Media Server 4.5[/adoberuntime]

Use the MulticastStreamIngest class to ingest RTMFP multicast streams and convert the multicast data units to messages that a Stream object can use. To create a MulticastStreamIngest instance, call NetGroup.getMulticastStreamIngest(). Then call Stream.playFromGroup() to play the stream from the group.

You can also use Server-Side ActionScript to:

  • Record the Stream object.

  • Deliver the Stream object to clients over RTMP/T/S/E

  • Package the stream for delivery using HTTP Dynamic Streaming and HTTP Live Streaming.

MulticastStreamIngest.ingesting

 mcsi.ingesting

Read-only; A Boolean property that is true if the target multicast stream is bound and currently being ingested; otherwise false.

Availability

Flash Media Server 4.5

MulticastStreamIngest.multicastInfo

 mcsi.multicastInfo

Read-only; A MulticastStreamInfo object whose properties contain statistics about the stream quality of service.

Availability

Flash Media Server 4.5

MulticastStreamIngest.multicastWindowDuration

 mcsi.multicastWindowDuration

The duration, in seconds, of the peer-to-peer multicast reassembly window. The default value is 8.

Availability

Flash Media Server 4.5

MulticastStreamIngest.multicastPushNeighborLimit

 mcsi.multicastPushNeighborLimit

The maximum number of peers to which to push multicast media. The default value is 4.

Even though the script is pulling data from a group in order to transform the data, the peer is still in the group and expected to pass along the data to other members of the group. If you don’t want to pass along the data, set this value to 0.

Availability

Flash Media Server 4.5

MulticastStreamIngest.close()

 mcsi.close()

Stops ingesting the source multicast stream.

Availability

Flash Media Server 4.5

Parameters

None.

Returns

None.

MulticastStreamIngest.onStatus()

 mcsi.onStatus = function(infoObject){}

Invoked when a MulticastStreamIngest status change occurs.

Availability

Flash Media Server 4.5

Parameters

infoObject

An Object with the following properties:

  • infoObject.code

  • infoObject.code.level

  • infoObject.fragmentsLost—a Number indicating the number of multicast data units lost.

The code and level properties provides information about the status change. All values are of type String:

code

level

Description

"NetStream.MulticastStream.GapNotify"

"status"

One or more multicast data units have been lost from the stream being ingested. The fragmentsLost property contains the amount that were lost.

"NetStream.MulticastStream.Reset"

"status"

This is the same as the "NetStream.MulticastStream.Reset" event that is dispatched by NetStream.

The multicast stream has been reset to a different stream published with the same name in the same Flash group.

"NetGroup.MulticastStream.PublishNotify"

"status"

This is the same as the "NetGroup.MulticastStream.PublishNotify" event that is dispatched by NetGroup.

However, this event is dispatched only for the multicast stream that is being targeted for ingest rather than for any multicast stream within the Flash group

"NetGroup.MulticastStream.UnpublishNotify"

"status"

This is the same as the "NetGroup.MulticastStream.UnpublishNotify" event that is dispatched by NetGroup.

However, this event is dispatched only for the multicast stream that is being ingested rather than for any multicast stream within the Flash group.

More like this

 Adobe

Get help faster and easier

New user?