Embed Code Options
On this page
The Mobile Native Recording Client supports 2 (exclusive) embed code options:
dpv
(1.0 and 2.0 embed codes)capture
(2.0 embed code only)
The other embed code options are discussed in this section.
2.0 Embed Code
2.0 HTML
With the 2.0 HTML embed code, you use the <piperecorder>
tag’s HTML attributes to control the recording client.
This is the list of attributes you can edit or add to the <piperecorder>
HTML tag that affect the Mobile Native Recording Client.
Name | Description |
---|---|
pipe-dpv | When set to 1 , the Mobile Native Recording Client will attempt to hide the OS options that allow the user to select an existing recording from the photo/video library or other services like iCloud Drive on iOS, Dropbox, or Files on Android. The default value is 0 . |
pipe-capture | When set to user , it indicates that the user-facing camera and/or microphone should be used. When set to environment , it specifies that the outward-facing camera and/or microphone should be used. If this attribute is missing, the user agent is free to decide on its own what to do. If the requested facing mode isn’t available, the user agent may fall back to its preferred default mode. |
2.0 JS
With the 2.0 HTML embed code, you use the properites of your JS config object (pipeParams
by default) to control the Mobile Native Recording Client.
Name | Description |
---|---|
dpv | When set to 1 , the Mobile Native Recording Client will attempt to hide the OS options that allow the user to select an existing recording from the photo/video library or other services like iCloud Drive on iOS, Dropbox, or Files on Android. The default value is 0 . |
capture | When set to user , it indicates that the user-facing camera and/or microphone should be used. When set to environment , it specifies that the outward-facing camera and/or microphone should be used. If this attribute is missing, the user agent is free to decide on its own what to do. If the requested facing mode isn’t available, the user agent may fall back to its preferred default mode. |
1.0 Embed Code
Starting with the 12th of March 2024, the 1.0 version of the embed code has officially become deprecated. Please use the 2.0 embed code.
Name | Description |
---|---|
dpv | When set to 1 , the Mobile Native Recording Client will attempt to hide the OS options that allow the user to select an existing recording from the photo/video library or other services like iCloud Drive on iOS, Dropbox, or Files on Android. The default value is 0 . |