# Multimedia
Allows user to record audio, video from a webcam or screen, also upload file with an audio or video.
Audio recording preview
Video recording preview
# Audio record types
Allows user to record audio up to 1 minute.
User can switch between available microphones by clicking on a settings icon.
After user clicked record button countdown will appear, after countdown is recording will begin.
User can stop recording any moment or after 1 minute is elapsed. After that he can listen to recorded audio and submit recording and send message. If user wants to record again it can be achieved by clicking Try again button.
After submit audio player with recorded audio will be available as user response.
# Video record type
Allows user to record video from a webcam or phone camera up to 1 minute.
User can switch between available microphones and cameras by clicking on a settings icon.
After user clicked record button countdown will appear, after countdown is recording will begin.
User can stop recording any moment or after 1 minute is elapsed. After that he can watch recorded video and submit recording and send message. If user wants to record again it can be achieved by clicking Try again button.
After submit video player with recorded audio will be available as user response.
# Screen record type
Allows user to record audio up to 1 minute.
User can switch between available microphones by clicking on a settings icon. User will be propmted to select screen or window to record.
After user clicked record button countdown will appear, after countdown is recording will begin.
User can stop recording any moment or after 1 minute is elapsed. After that he can listen to recorded video and submit recording and send message. If user wants to record again it can be achieved by clicking Try again button.
TIP
Screen recording will not be available for mobile phones and RWC running within OneReach Apps application.
# Media upload
Allows user to upload custom video or audio from a computer/phone. Video/audio cannot exceed 50 MB but can be longer than 1 minute.
Available file types: mp4
, webm
, opgg
, mov
, mp3
, wav
, mpeg
TIP
In order to record audio/video/screen user must allow website to record audio/video/screen. If user did not provide permissions prompt screen will appear.
Recording will be available only when using embedded chat within website that works over HTTPS
protocol. Non-https connection will force browser to deny permissions by default.
TIP
In order to record audio/video/screen browser must have MediaRecorder
support. Common browsers like Chrome or Firefox provide support for this interface. Exception is Safari, where some users will have this feature off by default, if that's the case modal window with instructions how to enable this feature will be shown.
# Code mode
In code mode allowed recording types are defined in array.
[
'audio', // audio recording
'video', // video recording
'screen', // screen recording
'file' // file uploading (only audio/video files)
]
# Output
The structure of the output is:
{
filePath: '' // path to recorded/uploaded file
}
# Use function to define user answer
Allows to override default answer by custom message.
# Available variables
The same as output example.
{
filePath: '' // path to recorded/uploaded file
}
# Example
return `Your recording are available here: ${filePath}`
Step configuration | Result |
---|---|