-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathIStreamTrack.cs
More file actions
25 lines (22 loc) · 894 Bytes
/
IStreamTrack.cs
File metadata and controls
25 lines (22 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
namespace StreamVideo.Core.StatefulModels.Tracks
{
public interface IStreamTrack : IDisposable
{
/// <summary>
/// Event triggered when the enabled state changes
/// </summary>
event StreamTrackStateChangeHandler EnabledChanged;
/// <summary>
/// Is this track active. This is false when either the publisher has disabled
/// the track or the Stream Server (SFU) has paused it (e.g. due to insufficient bandwidth).
/// </summary>
bool IsEnabled { get; }
/// <summary>
/// Whether the Stream Server (SFU) has paused this inbound track due to bandwidth constraints.
/// Use this to distinguish "publisher turned off the camera" from
/// "video paused by the server due to poor network conditions".
/// </summary>
bool IsPausedByServer { get; }
}
}