1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 14:29:22 +00:00
comunicmobile/lib/models/call_member.dart
2021-02-07 17:09:08 +01:00

24 lines
519 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_webrtc/flutter_webrtc.dart';
/// Single call member information
///
/// @author Pierre Hubert
enum MemberStatus { JOINED, READY }
class CallMember {
final int userID;
MemberStatus status;
MediaStream stream;
CallMember({
@required this.userID,
this.status = MemberStatus.JOINED,
}) : assert(userID != null),
assert(status != null);
bool get hasVideoStream =>
stream != null && stream.getVideoTracks().length > 0;
}