Embed Code Options

The Mobile Native Recording Client supports 2 (exclusive) embed code options:

  1. dpv (1.0 and 2.0 embed codes)
  2. 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.

NameDescription
pipe-dpvWhen 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-captureWhen 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.

NameDescription
dpvWhen 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.
captureWhen 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

NameDescription
dpvWhen 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.