Swift

Running the App

Build and run from Xcode on a physical device or the Simulator.

  • The Simulator uses a test video for publishing when no camera is available—remote subscription and stats still work.
  • For realistic network metrics, prefer a physical device on Wi‑Fi or cellular.

Add a Second Participant

Observability on the subscriber needs a remote published stream. Use either:

Join with the Playground

  1. Open Vonage Video Playground (sign in to your Vonage account if prompted).
  2. Select Join existing session.
  3. Paste the same session ID as kSessionId in your app.
  4. Click Join Session, then Connect, then Publish Stream.

Your iOS app should receive streamCreated, show remote video, and update the stats overlay.

What to Look For

Check Expected result
Connection Console shows session connected; local publisher view visible
Subscription Remote video appears after streamCreated
Video stats Overlay shows bytes/packets updating
Media link Downlink bandwidth populates; remote uplink if Playground publishes with sender stats
Network event Throttle network—networkConditionChanged may log with a new reason

If remote uplink stays empty, the publishing client may not have enabled senderStatsTrack on its publisher.