# mob_webrtc v0.1.0 - API Reference

## Modules

- [MobWebrtc](MobWebrtc.md): WebRTC peer connections on a Mob device, with the same calls on iOS,
Android and the host.
- [MobWebrtc.Audio](MobWebrtc.Audio.md): Opus audio between the device's audio stream and a peer's RTP.
- [MobWebrtc.Engine](MobWebrtc.Engine.md): What a WebRTC implementation provides to `MobWebrtc.Peer`.
- [MobWebrtc.Engine.ExWebRTC](MobWebrtc.Engine.ExWebRTC.md): `ex_webrtc` as a `MobWebrtc.Engine`: the protocol stack in Elixir, with
DTLS and SRTP in the static `ex_dtls` / `ex_libsrtp` NIFs. Every peer uses
the app's one key and certificate from `MobWebrtc.KeyCert`.
- [MobWebrtc.Engine.Fake](MobWebrtc.Engine.Fake.md): A `MobWebrtc.Engine` with no network and no native code, for host tests and
for driving a screen when there's no remote peer.
- [MobWebrtc.H264](MobWebrtc.H264.md): H264 over RTP (RFC 6184, packetization mode 1), both directions.
- [MobWebrtc.KeyCert](MobWebrtc.KeyCert.md): One DTLS key and certificate for every peer the app opens.
- [MobWebrtc.Native](MobWebrtc.Native.md): Gets the static `ex_dtls`, `ex_libsrtp` and `ex_sctp` NIFs loading on a Mob
device.
- [MobWebrtc.Peer](MobWebrtc.Peer.md): One peer connection: owns the engine's connection, forwards its events to
the owner as `{:mob_webrtc, peer, event}`, and keeps the counters
`MobWebrtc.status/0` reports.
- [MobWebrtc.SelfTest](MobWebrtc.SelfTest.md): The plugin's on-device proof (`Mob.Plugin.SelfTest`), run by
`mix mob.selftest`. Each step needs a real answer from native code
- [MobWebrtc.Video](MobWebrtc.Video.md): Shows a remote H264 track in a `MobWebrtc.VideoView`.
- [MobWebrtc.VideoView](MobWebrtc.VideoView.md): 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`.

