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
: theiframe
to be wrappedproperties
: an object of iframe properties
The iframeStyle
property cannot be passed to wrap()
. It must be used with createFrame()
.
Return type
- An instance of the
DailyIframe