HMSTextureViewController class

(Android Only) HMSTextureViewController is used to control the video view. It helps in controlling addTrack, removeTrack functionalities manually. It is useful in custom usecases where you wish to control the addTrack and removeTrack functionalities on your own. Please note that if you control the view creation, addTrack etc. on application, then application has the responsibility to release the texture view as well by calling disposeTextureView

Constructors

HMSTextureViewController({HMSVideoTrack? track, bool addTrackByDefault = true, bool? disableAutoSimulcastLayerSelect = false})

Properties

aspectRatio double
aspectRatio is the aspect ratio of the view
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textureId int?
getter for _textureId
no setter

Methods

addTrack({required HMSVideoTrack track, bool? disableAutoSimulcastLayerSelect}) → void
(Android Only) addTrack is used to add the track to the texture view. If disableAutoSimulcastLayerSelect is set to true, then it will disable the auto simulcast layer selection.
createTextureView({HMSTrack? track, bool addTrackByDefault = true, bool? disableAutoSimulcastLayerSelect}) → void
(Android Only) createTextureView is used to create the texture view. It takes track as an optional parameter. If track is provided, then it will add the track to the texture view by default. If addTrackByDefault is set to true, then it will add the track to the texture view by default. If disableAutoSimulcastLayerSelect is set to true, then it will disable the auto simulcast layer selection.
disposeTextureView() → void
(Android Only) disposeTextureView is used to dispose the texture view. It is the responsibility of the application to dispose the texture view if the controller is created by the application.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeTrack() → void
(Android Only) removeTrack is used to remove the track from the texture view.
setCallbackMethod(Function callback) → void
(Android Only) setCallbackMethod is used to set the callback method for the texture view. This callback method is used to refresh the view when certain properties of the view changes.
setHeightWidth({required double height, required double width}) → void
(Android Only) setHeightWidth is used to set the height and width of the texture view.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited