Dela via


AudioStream Class

Definition

An AudioStream is a RtpStream which carrys audio payloads over Real-time Transport Protocol (RTP).

[Android.Runtime.Register("android/net/rtp/AudioStream", DoNotGenerateAcw=true)]
public class AudioStream : Android.Net.Rtp.RtpStream
[<Android.Runtime.Register("android/net/rtp/AudioStream", DoNotGenerateAcw=true)>]
type AudioStream = class
    inherit RtpStream
Inheritance
AudioStream
Attributes

Remarks

An AudioStream is a RtpStream which carrys audio payloads over Real-time Transport Protocol (RTP). Two different classes are developed in order to support various usages such as audio conferencing. An AudioStream represents a remote endpoint which consists of a network mapping and a configured AudioCodec. On the other side, An AudioGroup represents a local endpoint which mixes all the AudioStreams and optionally interacts with the speaker and the microphone at the same time. The simplest usage includes one for each endpoints. For other combinations, developers should be aware of the limitations described in AudioGroup.

An AudioStream becomes busy when it joins an AudioGroup. In this case most of the setter methods are disabled. This is designed to ease the task of managing native resources. One can always make an AudioStream leave its AudioGroup by calling #join(AudioGroup) with null and put it back after the modification is done.

<p class="note">Using this class requires android.Manifest.permission#INTERNET permission.</p>

This member is deprecated. android.net.sip.SipManager and associated classes are no longer supported and should not be used as the basis of future VOIP apps.

Java documentation for android.net.rtp.AudioStream.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

AudioStream(InetAddress)

Creates an AudioStream on the given local address.

AudioStream(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Codec

Returns the AudioCodec, or null if it is not set. -or- Sets the AudioCodec.

DtmfType

Returns the RTP payload type for dual-tone multi-frequency (DTMF) digits, or -1 if it is not enabled. -or- Sets the RTP payload type for dual-tone multi-frequency (DTMF) digits.

Group

Returns the joined AudioGroup.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
IsBusy

Returns true if the stream has already joined an AudioGroup.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
LocalAddress

Returns the network address of the local host.

(Inherited from RtpStream)
LocalPort

Returns the network port of the local host.

(Inherited from RtpStream)
Mode

Returns the current mode. -or- Changes the current mode.

(Inherited from RtpStream)
PeerReference (Inherited from Object)
RemoteAddress

Returns the network address of the remote host or null if the stream is not associated.

(Inherited from RtpStream)
RemotePort

Returns the network port of the remote host or -1 if the stream is not associated.

(Inherited from RtpStream)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Associate(InetAddress, Int32)

Associates with a remote host.

(Inherited from RtpStream)
Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Join(AudioGroup)

Joins an AudioGroup.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
Release()

Releases allocated resources.

(Inherited from RtpStream)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to