bind
Binds this SurfaceView to binder, so a MediaPlayer using that binder renders its video here. The view's MediaSurface is bound while its surface exists and unbound when it is destroyed (and immediately if the surface is already available). Removing the returned SurfaceHolder.Callback from the holder (and calling MediaSurfaceBinder.unbind) stops the binding.
Return
the SurfaceHolder.Callback added to this view's holder.
Parameters
the MediaSurfaceBinder to bind to, typically obtained from MediaPlayer.surfaceBinder.
Binds this SurfaceHolder to binder. See SurfaceView.bind.
Return
the SurfaceHolder.Callback added to this holder.
Parameters
the MediaSurfaceBinder to bind to, typically obtained from MediaPlayer.surfaceBinder.
Binds this AVPlayerLayer to binder so a MediaPlayer using that binder renders its video here. Call MediaSurfaceBinder.unbind to detach. Simplifies non-Compose video layout, mirroring SurfaceView.bind on Android.
Parameters
the MediaSurfaceBinder to bind to, typically obtained from MediaPlayer.surfaceBinder.
Binds this AVPlayerView to binder so a MediaPlayer using that binder renders its video here (the view handles its own layout). Call MediaSurfaceBinder.unbind to detach. This is the macOS path for video outside the Compose tree (CMP-macOS-Native has no AppKit interop).
Parameters
the MediaSurfaceBinder to bind to, typically obtained from MediaPlayer.surfaceBinder.
Binds this AVPlayerViewController to binder so a MediaPlayer using that binder renders its video here (the controller handles its own layout). Call MediaSurfaceBinder.unbind to detach.
Parameters
the MediaSurfaceBinder to bind to, typically obtained from MediaPlayer.surfaceBinder.