Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (42 sloc) 1.04 KB
title subtitle description
Recording API
Get information such as URL, pause & resume recording, ...
Our API offers options to display even more information about your recordings.

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.

{% include component/tables/docs/{{ page.title | slugify }}/variables.html %}

Access variables

This example shows a code how it can look in a console.

<script>
  smartlook(
    function () {
      console.log(smartlook.playUrl);
      console.log(smartlook.visitorId);
    }
  );
</script>

Now let's say you want to save a recording URL (playUrl) in your own service.

<script>
  smartlook(
    function () {
      MyServiceToLogUrl.sendToApi(smartlook.playUrl);
    }
  );
</script>

Pause & resume

Use pause and resume methods to control recording.

<script>
  smartlook('pause');
</script>
<script>
  smartlook('resume');
</script>
You can’t perform that action at this time.