VideoDimensions instead of width height

This commit is contained in:
Hiroshi Horie
2021-12-13 21:49:42 +07:00
parent 3384bc6c6e
commit a82c5a7a50
7 changed files with 60 additions and 60 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ abstract class TrackPublication<T extends Track> extends Disposable {
bool get muted => track?.muted ?? false;
bool simulcasted = false;
TrackDimension? dimension;
VideoDimensions? dimension;
bool get subscribed => track != null;
@@ -52,7 +52,7 @@ abstract class TrackPublication<T extends Track> extends Disposable {
void updateFromInfo(lk_models.TrackInfo info) {
simulcasted = info.simulcast;
if (info.type == lk_models.TrackType.VIDEO) {
dimension = TrackDimension(info.width, info.height);
dimension = VideoDimensions(info.width, info.height);
}
}