From 064ac5023f53bc8722a9e807c358d4f5fa0bca7b Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Wed, 25 Oct 2023 10:11:39 +0800 Subject: [PATCH] move event to internal. --- lib/src/events.dart | 14 -------------- lib/src/internal/events.dart | 12 ++++++++++++ lib/src/participant/local.dart | 1 + 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/lib/src/events.dart b/lib/src/events.dart index 04cf7fb5..01237d66 100644 --- a/lib/src/events.dart +++ b/lib/src/events.dart @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -import 'package:meta/meta.dart'; - import 'core/engine.dart'; import 'core/room.dart'; import 'core/signal_client.dart'; @@ -506,15 +504,3 @@ class VideoReceiverStatsEvent with TrackEvent { String toString() => '${runtimeType}' 'stats: ${stats})'; } - -@internal -class TrackEndedEvent with TrackEvent { - final Track track; - const TrackEndedEvent({ - required this.track, - }); - - @override - String toString() => '${runtimeType}' - '(track: ${track})'; -} diff --git a/lib/src/internal/events.dart b/lib/src/internal/events.dart index 359d5d98..f4fe608f 100644 --- a/lib/src/internal/events.dart +++ b/lib/src/internal/events.dart @@ -408,3 +408,15 @@ class SubscriberDataChannelStateUpdatedEvent state: state, ); } + +@internal +class TrackEndedEvent with TrackEvent { + final Track track; + const TrackEndedEvent({ + required this.track, + }); + + @override + String toString() => '${runtimeType}' + '(track: ${track})'; +} diff --git a/lib/src/participant/local.dart b/lib/src/participant/local.dart index 2bf049df..f1490ae5 100644 --- a/lib/src/participant/local.dart +++ b/lib/src/participant/local.dart @@ -24,6 +24,7 @@ import '../core/transport.dart'; import '../events.dart'; import '../exceptions.dart'; import '../extensions.dart'; +import '../internal/events.dart'; import '../logger.dart'; import '../options.dart'; import '../proto/livekit_models.pb.dart' as lk_models;