Daily.wrap(iframe, { properties })
Prebuilt
Custom
Creates a DailyCall instance that controls an iframe element you already have in the DOM. Use wrap() instead of createFrame() when you need full control over the iframe element itself — its attributes, placement, or lifecycle.
The
iframeStyle property cannot be passed to wrap(). Apply styles directly to your iframe element, or use createFrame() if you want Daily to manage the iframe styles.Parameters
The
iframe DOM element to attach Daily to. Must have allow="microphone; camera; autoplay; display-capture" set.Optional configuration. If
url is not set here, it must be provided when calling join() or load(). See DailyCallOptions for the full list of options.Return value
Returns a newDailyCall instance.