Class RTPReadStream
Reads the payload from an RTP frame
Assembly: Discord.Net.WebSocket.dll​
View Source​
Declaration
public class RTPReadStream : AudioOutStream, IDisposable
Properties​
CanRead​
View Source​
Declaration
public override bool CanRead { get; }
CanSeek​
View Source​
Declaration
public override bool CanSeek { get; }
CanWrite​
View Source​
Declaration
public override bool CanWrite { get; }
Methods​
WriteAsync(Byte[], Int32, Int32, CancellationToken)​
View Source​
Declaration
public override async Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancelToken)
Returns​
System.Threading.Tasks.Task
Parameters​
Type | Name |
---|---|
System.Byte[] | buffer |
System.Int32 | offset |
System.Int32 | count |
System.Threading.CancellationToken | cancelToken |
TryReadSsrc(Byte[], Int32, out UInt32)​
View Source​
Declaration
public static bool TryReadSsrc(byte[] buffer, int offset, out uint ssrc)
Returns​
System.Boolean
Parameters​
Type | Name |
---|---|
System.Byte[] | buffer |
System.Int32 | offset |
System.UInt32 | ssrc |
GetHeaderSize(Byte[], Int32)​
View Source​
Declaration
public static int GetHeaderSize(byte[] buffer, int offset)
Returns​
System.Int32
Parameters​
Type | Name |
---|---|
System.Byte[] | buffer |
System.Int32 | offset |
Dispose(Boolean)​
View Source​
Declaration
protected override void Dispose(bool disposing)
Parameters​
Type | Name |
---|---|
System.Boolean | disposing |
Implements​
System.IDisposable