Skip to content

Commit

Permalink
move event to internal.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Oct 25, 2023
1 parent 982454b commit 064ac50
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/src/events.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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})';
}
12 changes: 12 additions & 0 deletions lib/src/internal/events.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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})';
}
1 change: 1 addition & 0 deletions lib/src/participant/local.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 064ac50

Please sign in to comment.