Session migration (#72)
* impl * retry logic * simulate * pass checks * adjust log level * retry condition * fix simulate scenario params * format * use `RTCPeerConnectionState` instead of `RTCIceConnectionState` * adjust retry * additional check for completer * more logging * fix id * pub * change package * doc update * retry tests * format * apply suggestions
This commit is contained in:
@@ -80,4 +80,10 @@ class LocalTrackPublication<T extends LocalTrack> extends TrackPublication<T> {
|
||||
logger.fine('Update publishing layers: nothing to change');
|
||||
}
|
||||
}
|
||||
|
||||
lk_rtc.TrackPublishedResponse toPBTrackPublishedResponse() =>
|
||||
lk_rtc.TrackPublishedResponse(
|
||||
cid: track?.mediaStreamTrack.id,
|
||||
track: latestInfo,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -48,6 +48,9 @@ abstract class TrackPublication<T extends Track> extends Disposable {
|
||||
|
||||
bool get subscribed => track != null;
|
||||
|
||||
@internal
|
||||
lk_models.TrackInfo? latestInfo;
|
||||
|
||||
TrackPublication({
|
||||
required lk_models.TrackInfo info,
|
||||
}) : sid = info.sid,
|
||||
@@ -69,6 +72,7 @@ abstract class TrackPublication<T extends Track> extends Disposable {
|
||||
if (info.type == lk_models.TrackType.VIDEO) {
|
||||
_dimensions = VideoDimensions(info.width, info.height);
|
||||
}
|
||||
latestInfo = info;
|
||||
}
|
||||
|
||||
// Equality operators
|
||||
|
||||
Reference in New Issue
Block a user