public interface INetStream extends INetStream
INetStream
- RTMFP connection stream (replica of ActionScript's
NetStream class interface).Modifier and Type | Interface and Description |
---|---|
static interface |
INetStream.IAcknowledgement
IAcknowledgement - MediaData acknowledgement interface. |
INetStream.IListener, INetStream.Info, INetStream.ListenerAdapter
APPEND, CLEAR_FAILED, CLEAR_SUCCESS, DATA_START, FAILED, INVALID_ARGUMENT, LIVE, PAUSE_NOTIFY, PLAY_COMPLETE, PLAY_FAILED, PLAY_FILE_STRUCTURE_INVALID, PLAY_INSUFFICIENT_BW, PLAY_NO_SUPPORTED_TRACK_FOUND, PLAY_PUBLISH_NOTIFY, PLAY_RESET, PLAY_START, PLAY_STOP, PLAY_STREAM_NOT_FOUND, PLAY_SWITCH, PLAY_UNPUBLISH_NOTIFY, PUBLISH_BADNAME, PUBLISH_START, RECORD, RECORD_FAILED, RECORD_NOACCESS, RECORD_START, RECORD_STOP, SEEK_FAILED, SEEK_NOTIFY, UNPAUSE_NOTIFY, UNPUBLISH_SUCCESS
Modifier and Type | Method and Description |
---|---|
boolean |
audioReliable()
For RTMFP connections, specifies whether audio is sent with full reliability.
|
void |
audioReliable(boolean reliable)
For RTMFP connections, specifies whether audio is sent with full reliability.
|
boolean |
audioSampleAccess()
For RTMFP connections, specifies whether peer-to-peer subscribers on this NetStream
are allowed to capture the audio stream.
|
void |
audioSampleAccess(boolean access)
For RTMFP connections, specifies whether peer-to-peer subscribers on this NetStream
are allowed to capture the audio stream.
|
boolean |
dataReliable()
For RTMFP connections, specifies whether NetStream.send() calls are sent with full reliability.
|
void |
dataReliable(boolean reliable)
For RTMFP connections, specifies whether NetStream.send() calls are sent with full reliability.
|
java.lang.String |
farID()
For RTMFP connections, the identifier of the far end that is connected to this NetStream instance.
|
java.lang.String |
farNonce()
For RTMFP and RTMPE connections, a value chosen substantially by the other end of this stream,
unique to this connection.
|
INetStream.IAcknowledgement |
getAcknowledgement() |
NetStreamInfo |
info()
Returns a NetStreamInfo object whose properties contain statistics about the quality of service.
|
boolean |
multicastAvailabilitySendToAll()
For RTMFP connections, specifies whether peer-to-peer multicast fragment availability
messages are sent to all peers or to just one peer.
|
void |
multicastAvailabilitySendToAll(boolean sendToAll)
For RTMFP connections, specifies whether peer-to-peer multicast fragment availability
messages are sent to all peers or to just one peer.
|
int |
multicastAvailabilityUpdatePeriod()
For RTMFP connections, specifies the interval in seconds between messages
sent to peers informing them that the local node has new peer-to-peer
multicast media fragments available.
|
void |
multicastAvailabilityUpdatePeriod(int period)
For RTMFP connections, specifies the interval in seconds between messages
sent to peers informing them that the local node has new peer-to-peer
multicast media fragments available.
|
int |
multicastFetchPeriod()
For RTMFP connections, specifies the time in seconds between when the local node
learns that a peer-to-peer multicast media fragment is available and
when it tries to fetch it from a peer.
|
void |
multicastFetchPeriod(int period)
For RTMFP connections, specifies the time in seconds between when the local node
learns that a peer-to-peer multicast media fragment is available and
when it tries to fetch it from a peer.
|
NetStreamMulticastInfo |
multicastInfo()
For RTMFP connections, returns a NetStreamMulticastInfo object
whose properties contain statistics about the quality of service.
|
int |
multicastPushNeighborLimit()
For RTMFP connections, specifies the maximum number of peers to which
to proactively push multicast media.
|
void |
multicastPushNeighborLimit(int limit)
For RTMFP connections, specifies the maximum number of peers to which
to proactively push multicast media.
|
int |
multicastRelayMarginDuration()
For RTMFP connections, specifies the duration in seconds that peer-to-peer
multicast data remains available to send to peers that request
it beyond a specified duration.
|
void |
multicastRelayMarginDuration(int duration)
For RTMFP connections, specifies the duration in seconds that peer-to-peer
multicast data remains available to send to peers that request
it beyond a specified duration.
|
int |
multicastWindowDuration()
For RTMFP connections, specifies the duration in seconds of the peer-to-peer
multicast reassembly window.
|
void |
multicastWindowDuration(int duration)
For RTMFP connections, specifies the duration in seconds of the peer-to-peer
multicast reassembly window.
|
java.lang.String |
nearNonce()
For RTMFP and RTMPE connections, a value chosen substantially by this end of the stream,
unique to this connection.
|
java.util.List<INetStream> |
peerStreams()
An object that holds all of the subscribing NetStream instances
that are listening to this publishing NetStream instance.
|
void |
setAcknowledgement(INetStream.IAcknowledgement ack)
Sets
ack . |
boolean |
videoReliable()
For RTMFP connections, specifies whether video is sent with full reliability.
|
void |
videoReliable(boolean reliable)
For RTMFP connections, specifies whether video is sent with full reliability.
|
boolean |
videoSampleAccess()
For RTMFP connections, specifies whether peer-to-peer subscribers on this NetStream
are allowed to capture the video stream.
|
void |
videoSampleAccess(boolean access)
For RTMFP connections, specifies whether peer-to-peer subscribers on this NetStream
are allowed to capture the video stream.
|
addEventListener, attachAudio, attachCamera, bufferLength, bufferSize, bufferTime, bufferTime, bytesLoaded, bytesTotal, clearBuffer, client, client, close, currentFPS, getCamera, getInfo, getMicrophone, getVideo, liveDelay, objectEncoding, pause, play, publish, receiveAudio, receiveVideo, removeEventListener, resume, seek, send, time, togglePause
INetStream.IAcknowledgement getAcknowledgement()
void setAcknowledgement(INetStream.IAcknowledgement ack)
ack
.ack
- boolean audioReliable()
true
, all audio transmitted over this NetStream is fully reliable.
When false
, the audio transmitted is not fully reliable, but instead is retransmitted for a limited time and then dropped.
You can use the false
value to reduce latency at the expense of audio quality.
false
on a network protocol
that does not support partial reliability, the attempt is ignored and the property is set to true
.void audioReliable(boolean reliable)
true
, all audio transmitted over this NetStream is fully reliable.
When false
, the audio transmitted is not fully reliable, but instead is retransmitted for a limited time and then dropped.
You can use the false
value to reduce latency at the expense of audio quality.
false
on a network protocol
that does not support partial reliability, the attempt is ignored and the property is set to true
.reliable
- boolean audioSampleAccess()
false
, subscriber attempts to capture the audio stream show permission errors.void audioSampleAccess(boolean access)
false
, subscriber attempts to capture the audio stream show permission errors.access
- boolean dataReliable()
true
, NetStream.send() calls that are transmitted over this NetStream are fully reliable.
When false
, NetStream.send() calls are not transmitted with full reliability,
but instead are retransmitted for a limited time and then dropped.
You can set this value to false
to reduce latency at the expense of data quality.
false
on a network protocol that does not support partial reliability,
the attempt is ignored and the property is set to true
.void dataReliable(boolean reliable)
true
, NetStream.send() calls that are transmitted over this NetStream are fully reliable.
When false
, NetStream.send() calls are not transmitted with full reliability,
but instead are retransmitted for a limited time and then dropped.
You can set this value to false
to reduce latency at the expense of data quality.
false
on a network protocol that does not support partial reliability,
the attempt is ignored and the property is set to true
.reliable
- java.lang.String farID()
java.lang.String farNonce()
NetStreamInfo info()
boolean multicastAvailabilitySendToAll()
true
specifies that the messages are sent to all peers once per
specified interval. A value of false
specifies that the messages are sent to just
one peer per specified interval.
The interval is determined by the multicastAvailabilityUpdatePeriod property.void multicastAvailabilitySendToAll(boolean sendToAll)
true
specifies that the messages are sent to all peers once per
specified interval. A value of false
specifies that the messages are sent to just
one peer per specified interval.
The interval is determined by the multicastAvailabilityUpdatePeriod property.sendToAll
- int multicastAvailabilityUpdatePeriod()
void multicastAvailabilityUpdatePeriod(int period)
period
- int multicastFetchPeriod()
void multicastFetchPeriod(int period)
period
- int multicastPushNeighborLimit()
void multicastPushNeighborLimit(int limit)
limit
- int multicastRelayMarginDuration()
void multicastRelayMarginDuration(int duration)
duration
- int multicastWindowDuration()
void multicastWindowDuration(int duration)
duration
- NetStreamMulticastInfo multicastInfo()
java.lang.String nearNonce()
java.util.List<INetStream> peerStreams()
boolean videoReliable()
true
, all video transmitted over this NetStream is fully reliable.
When false
, the video transmitted is not fully reliable, but instead is retransmitted for a limited time and then dropped.
You can use the false
value to reduce latency at the expense of video quality.
false
on a network protocol
that does not support partial reliability, the attempt is ignored and the property is set to true
.void videoReliable(boolean reliable)
true
, all video transmitted over this NetStream is fully reliable.
When false
, the video transmitted is not fully reliable, but instead is retransmitted for a limited time and then dropped.
You can use the false
value to reduce latency at the expense of video quality.
false
on a network protocol
that does not support partial reliability, the attempt is ignored and the property is set to true
.reliable
- boolean videoSampleAccess()
false
, subscriber attempts to capture the video stream show permission errors.void videoSampleAccess(boolean access)
false
, subscriber attempts to capture the video stream show permission errors.access
-