2021-02-07 16:09:08 +00:00
|
|
|
import 'package:flutter_webrtc/flutter_webrtc.dart';
|
2020-04-20 12:02:32 +00:00
|
|
|
|
|
|
|
/// Single call member information
|
|
|
|
///
|
|
|
|
/// @author Pierre Hubert
|
|
|
|
|
|
|
|
enum MemberStatus { JOINED, READY }
|
|
|
|
|
|
|
|
class CallMember {
|
2022-03-10 18:39:57 +00:00
|
|
|
final int userID;
|
|
|
|
MemberStatus status;
|
|
|
|
MediaStream? stream;
|
2020-04-20 12:02:32 +00:00
|
|
|
|
2020-04-20 12:58:23 +00:00
|
|
|
CallMember({
|
2022-03-10 18:39:57 +00:00
|
|
|
required this.userID,
|
2020-04-20 12:24:35 +00:00
|
|
|
this.status = MemberStatus.JOINED,
|
2022-03-10 19:36:55 +00:00
|
|
|
});
|
2020-04-23 11:12:40 +00:00
|
|
|
|
|
|
|
bool get hasVideoStream =>
|
2022-03-10 18:39:57 +00:00
|
|
|
stream != null && stream!.getVideoTracks().length > 0;
|
2020-04-20 12:02:32 +00:00
|
|
|
}
|