implemented tracks, local & remote participants

This commit is contained in:
David Zhao
2021-07-21 23:30:24 -07:00
parent 0a682f7831
commit b18c37fd1a
14 changed files with 468 additions and 16 deletions
+3 -5
View File
@@ -10,18 +10,16 @@ class TrackPublication {
bool simulcasted = false;
TrackDimension? dimension;
bool get isSubscribed => track != null;
TrackPublication({required this.sid, required this.name, required this.kind});
bool get subscribed => track != null;
TrackPublication.fromInfo(TrackInfo info)
: sid = info.sid,
name = info.name,
kind = info.type {
_updateFromInfo(info);
updateFromInfo(info);
}
_updateFromInfo(TrackInfo info) {
updateFromInfo(TrackInfo info) {
muted = info.muted;
simulcasted = info.simulcast;
if (info.type == TrackType.VIDEO) {