Class RTPReadStream
Reads the payload from an RTP frame
public class RTPReadStream : AudioOutStream, IAsyncDisposable, IDisposable
- Inheritance
-
RTPReadStream
- Implements
- Inherited Members
Constructors
RTPReadStream(AudioStream, int)
public RTPReadStream(AudioStream next, int bufferSize = 4000)
Parameters
next
AudioStreambufferSize
int
Properties
CanRead
When overridden in a derived class, gets a value indicating whether the current stream supports reading.
public override bool CanRead { get; }
Property Value
CanSeek
When overridden in a derived class, gets a value indicating whether the current stream supports seeking.
public override bool CanSeek { get; }
Property Value
CanWrite
When overridden in a derived class, gets a value indicating whether the current stream supports writing.
public override bool CanWrite { get; }
Property Value
Methods
Dispose(bool)
Releases the unmanaged resources used by the Stream and optionally releases the managed resources.
protected override void Dispose(bool disposing)
Parameters
disposing
booltrue to release both managed and unmanaged resources; false to release only unmanaged resources.
GetHeaderSize(byte[], int)
public static int GetHeaderSize(byte[] buffer, int offset)
Parameters
Returns
TryReadSsrc(byte[], int, out uint)
public static bool TryReadSsrc(byte[] buffer, int offset, out uint ssrc)
Parameters
Returns
WriteAsync(byte[], int, int, CancellationToken)
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancelToken)
Parameters
buffer
byte[]offset
intcount
intcancelToken
CancellationToken
Returns
Exceptions
- OperationCanceledException
The token has had cancellation requested.
- ObjectDisposedException
The associated CancellationTokenSource has been disposed.