Class MediaStream
Namespace: Unity.WebRTC
Syntax
public class MediaStream : IDisposable
Constructors
MediaStream()
Declaration
public MediaStream()
Properties
Id
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
String |
OnAddTrack
Declaration
public DelegateOnAddTrack OnAddTrack { get; set; }
Property Value
Type | Description |
---|---|
DelegateOnAddTrack |
OnRemoveTrack
Declaration
public DelegateOnRemoveTrack OnRemoveTrack { get; set; }
Property Value
Type | Description |
---|---|
DelegateOnRemoveTrack |
Methods
AddTrack(MediaStreamTrack)
Declaration
public bool AddTrack(MediaStreamTrack track)
Parameters
Type | Name | Description |
---|---|---|
MediaStreamTrack | track |
Returns
Type | Description |
---|---|
Boolean |
Dispose()
Declaration
public void Dispose()
Finalize()
Declaration
protected void Finalize()
GetAudioTracks()
Declaration
public IEnumerable<MediaStreamTrack> GetAudioTracks()
Returns
Type | Description |
---|---|
IEnumerable<MediaStreamTrack> |
GetTracks()
Declaration
public IEnumerable<MediaStreamTrack> GetTracks()
Returns
Type | Description |
---|---|
IEnumerable<MediaStreamTrack> |
GetVideoTracks()
Declaration
public IEnumerable<MediaStreamTrack> GetVideoTracks()
Returns
Type | Description |
---|---|
IEnumerable<MediaStreamTrack> |
RemoveTrack(MediaStreamTrack)
Declaration
public bool RemoveTrack(MediaStreamTrack track)
Parameters
Type | Name | Description |
---|---|---|
MediaStreamTrack | track |
Returns
Type | Description |
---|---|
Boolean |