-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36b673d
commit 8e5f081
Showing
7 changed files
with
98 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import 'package:livekit_client/livekit_client.dart'; | ||
|
||
class TrackIdentifier { | ||
TrackIdentifier(this.participant, [this.track]); | ||
final Participant participant; | ||
final TrackPublication? track; | ||
|
||
String? get identifier => track?.sid ?? participant.sid; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
import 'package:flutter/widgets.dart'; | ||
|
||
class ParticipantIdentity { | ||
const ParticipantIdentity({ | ||
required this.identity, | ||
this.sid, | ||
}); | ||
import '../../types/track_identifier.dart'; | ||
|
||
final String identity; | ||
final String? sid; | ||
class TrackWidget { | ||
TrackWidget(this.trackIdentifier, this.widget); | ||
final TrackIdentifier trackIdentifier; | ||
final Widget widget; | ||
} | ||
|
||
abstract class ParticipantLayoutBuilder { | ||
Widget build( | ||
BuildContext context, List<Widget> children, List<Widget>? pinned); | ||
BuildContext context, | ||
List<TrackWidget> children, | ||
List<String> pinnedTracks, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters