HaishinKitView
fun HaishinKitView(stream: Stream, modifier: Modifier = Modifier, backgroundColor: Int = Color.BLACK, isOpaque: Boolean = true, videoGravity: VideoGravity = VideoGravity.RESIZE_ASPECT, viewType: HaishinKitViewType = HaishinKitViewType.SurfaceView)
Displays a stream using an Android video view hosted in Compose.
The view is registered as a stream output when created and unregistered when disposed. Keep stream and viewType stable for this composable's lifetime; use a Compose key to recreate the view when changing them or videoGravity.
Parameters
stream
The stream to display.
modifier
Layout and appearance modifiers for the hosted view.
backgroundColor
The Android ARGB background color; defaults to black.
isOpaque
Whether the texture view is opaque. Applies only to HaishinKitViewType.TextureView.
videoGravity
The initial scaling mode for the video.
viewType
The Android view implementation to create.