# `MobWebrtc.VideoView`
[🔗](https://github.com/GenericJam/mob_webrtc/blob/main/lib/mob_webrtc/video_view.ex#L1)

The native view a remote video track is shown in: a decoded H264 picture,
scaled to fit. Place it with `MobWebrtc.video_view/1` and feed it with
`MobWebrtc.Video`, both naming the same `:id`.

iOS draws into an `AVSampleBufferDisplayLayer` from a VideoToolbox decoder;
Android into a `SurfaceView` a `MediaCodec` decoder renders to. Only the
view id and size ride the render tree; frames go to the decoder through
`mob_webrtc_video_nif`, keyed by the same id.

Native registration key (module name, dots → underscores):
`"MobWebrtc_VideoView"`.

# `handle_event`

# `handle_info`

# `terminate`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
