fix: add name to AudioPublishOptions. (#302)

* fix: add name to AudioPublishOptions.

* remove name for Track.

* remove name for Track.

* update.

* fix flutter analyzer.

* update.

* add Deprecated declaration for Track.name.

* update.
This commit is contained in:
CloudWebRTC
2023-06-14 15:31:21 +08:00
committed by GitHub
parent 4a6694cc3b
commit 193f89806f
13 changed files with 44 additions and 51 deletions
+3 -2
View File
@@ -62,9 +62,10 @@ abstract class TrackPublication<T extends Track> extends Disposable {
updateFromInfo(info);
}
/// True when the track is published with name [Track.screenShareName].
/// True when the track is published with source [TrackSource.screenShareVideo].
bool get isScreenShare =>
kind == lk_models.TrackType.VIDEO && name == Track.screenShareName;
kind == lk_models.TrackType.VIDEO &&
source == TrackSource.screenShareVideo;
void updateFromInfo(lk_models.TrackInfo info) {
_simulcasted = info.simulcast;