Fix: Visibility Optimization randomly not working (#65)
* use widget id instead of state id * ignore local video view events * switch remote view visibility also * use Key for a reliable id * remove local check * clean up * redesign * check mounted * remove mount check * more optimization * quick wake up * mark internal * rename to adaptiveStream
This commit is contained in:
@@ -49,8 +49,8 @@ class RoomOptions {
|
||||
/// [VideoTrackRenderer]'s visibility on screen.
|
||||
/// - Re-sizing a [VideoTrackRenderer] will signal the server to send down
|
||||
/// a relavant quality layer (if simulcast is enabled on the publisher)
|
||||
/// Defaults to true.
|
||||
final bool optimizeVideo;
|
||||
/// Defaults to false.
|
||||
final bool adaptiveStream;
|
||||
|
||||
/// Set this to false in case you would like to stop the track yourself.
|
||||
/// If you set this to false, make sure you call [Track.stop].
|
||||
@@ -63,7 +63,7 @@ class RoomOptions {
|
||||
this.defaultAudioCaptureOptions = const AudioCaptureOptions(),
|
||||
this.defaultVideoPublishOptions = const VideoPublishOptions(),
|
||||
this.defaultAudioPublishOptions = const AudioPublishOptions(),
|
||||
this.optimizeVideo = true,
|
||||
this.adaptiveStream = false,
|
||||
this.stopLocalTrackOnUnpublish = true,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user