Automatic mirrorMode for VideoView (#119)

* update protos

* impl 1

* re-compute when options update

* minor fix
This commit is contained in:
Hiroshi Horie
2022-05-17 10:51:38 +09:00
committed by GitHub
parent 6e65fe30f7
commit ff65370cbc
3 changed files with 54 additions and 4 deletions
+12
View File
@@ -4,6 +4,8 @@ import 'package:meta/meta.dart';
import '../events.dart';
import '../proto/livekit_models.pb.dart' as lk_models;
import '../proto/livekit_rtc.pb.dart' as lk_rtc;
import '../track/local/local.dart';
import '../track/options.dart';
import '../track/track.dart';
import '../types/other.dart';
@@ -59,6 +61,16 @@ class TrackStreamUpdatedEvent with TrackEvent, InternalEvent {
});
}
@internal
class LocalTrackOptionsUpdatedEvent with TrackEvent, InternalEvent {
final LocalTrack track;
final LocalTrackOptions options;
const LocalTrackOptionsUpdatedEvent({
required this.track,
required this.options,
});
}
// Used to notify muted state from Track to TrackPublication.
@internal
class InternalTrackMuteUpdatedEvent with TrackEvent, InternalEvent {