wrap()

wrap(iframe, {properties})

Compatibility:
Prebuilt
Custom

wrap() uses an already defined iframe DOM element for the DailyIframe.

If you need complete control over the iframe, choose wrap() over createFrame().

You will need to set allow="microphone; camera; autoplay; display-capture"; on your DailyIframe to be able to turn on the camera and microphone, and to enable screen sharing.

Params

  • iframe: the iframe to be wrapped
  • properties: an object of iframe properties

The iframeStyle property cannot be passed to wrap(). It must be used with createFrame().

Return type

Sample code