From 621fca3ad9d0a3940cd2cfd29b32f4747cc6b5a9 Mon Sep 17 00:00:00 2001 From: Decoder07 Date: Thu, 14 Dec 2023 16:04:59 +0530 Subject: [PATCH] Update texture view parameters --- .../hmssdk_flutter/lib/src/ui/meeting/hms_texture_view.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/hmssdk_flutter/lib/src/ui/meeting/hms_texture_view.dart b/packages/hmssdk_flutter/lib/src/ui/meeting/hms_texture_view.dart index da62f1848..b176fb7a0 100644 --- a/packages/hmssdk_flutter/lib/src/ui/meeting/hms_texture_view.dart +++ b/packages/hmssdk_flutter/lib/src/ui/meeting/hms_texture_view.dart @@ -32,7 +32,7 @@ import 'package:hmssdk_flutter/hmssdk_flutter.dart'; /// **disableAutoSimulcastLayerSelect** - To disable auto simulcast (Adaptive Bitrate) /// /// **key** - [key] property can be used to forcefully rebuild the video widget by setting a unique key everytime. -/// Similarly to avoid rebuilding the key should be kept the same for particular HMSVideoView. +/// Similarly to avoid rebuilding the key should be kept the same for particular HMSTextureView. /// /// **controller** - To control the video view, this is useful for custom usecases when you wish to control the addTrack and removeTrack /// track functionalities on your own. @@ -72,6 +72,7 @@ class HMSTextureView extends StatelessWidget { @override Widget build(BuildContext context) { return _PlatformView( + key: key, track: track, setMirror: setMirror, scaleType: this.scaleType, @@ -112,7 +113,7 @@ class _PlatformViewState extends State<_PlatformView> { if (Platform.isAndroid) { if (widget.controller == null) { viewController = - HMSTextureViewController(track: widget.track as HMSVideoTrack); + HMSTextureViewController(track: widget.track as HMSVideoTrack,disableAutoSimulcastLayerSelect: widget.disableAutoSimulcastLayerSelect); } else { viewController = widget.controller; }