Skip to main content

Overview

When you create a session, WebRun returns streaming URLs that allow you to watch the browser in real-time:

Two Options


The simplest way to display a session, just embed the URL in an iframe:
Benefits:
  • No WebRTC code needed
  • Works in all modern browsers
  • Automatic reconnection handling
  • Built-in controls
When to use: Most applications, especially dashboards and monitoring UIs.

React Example


Option 2: WebRTC Integration (Advanced)

For custom video players or lower latency requirements.

Quick Setup

When to use: Building custom video players, need ultra-low latency, advanced integration requirements.

Stream Dimensions

Always read dimensions from session.streaming.dimensions as these may vary by instance.

Combining Streaming with Control

Video streaming is essential when using manual interaction features. See the Manual Interaction guide for detailed instructions on combining video with clicks, typing, and keyboard inputs.

Quick Example


Coordinate Mapping for Manual Interaction

When combining video streaming with manual interaction, map click coordinates from your display to server coordinates.

Understanding the Coordinate System

The stream shows only the content area (1024 × 600), but clicks must account for the browser chrome offset.

Mapping Function

Usage Example


Connection States (WebRTC)

Monitor the connection:

Cleanup

Always close the connection when done:

Troubleshooting

Enable Debug Logging


Complete Integration Example