Recording API
Get information such as URL, pause & resume recording.
Variables
We prepared for you some variables with specific indentificators. The most useful one will be recording URL as it gives you a link to see and play given recording.
VARIABLE | DESCRIPTION |
---|---|
playUrl | Recording URL |
sessionId | Session ID |
visitorId | Visitor ID |
recordId | Recording ID |
key | Project key |
Access variables
This example shows a code how can look in a console.
smartlook(
function () {
console.log(smartlook.playUrl);
console.log(smartlook.visitorId);
}
)
Now let's say you want to save a recording URL (playUrl
) in your own service.
smartlook(
function () {
MyServiceToLogUrl.sendToApi(smartlook.playUrl);
}
)
Pause & resume
Use pause
and resume
methods to control recording.
smartlook('pause')
smartlook('resume')
Updated 4 months ago
Did this page help you?