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.

VARIABLEDESCRIPTION
playUrlRecording URL
sessionIdSession ID
visitorIdVisitor ID
recordIdRecording ID
keyProject 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')

Did this page help you?