Analytic (UIZA Data)

Standard Media Events

Event Type Description
play the viewer is watching live, this event is sent event view after 5 seconds.
playing the viewer is watching live, this event is sent every 5 seconds.
seeking Keep sending event watching
seeked Keep sending event watching
pause Not send this event and pause sending event watching
durationchange Exceeding the 30-second time limit for each change, it will be considered a live stop. Stop sending event watching

Event watching example by curl

curl 'https://tracking-dev.uizadev.io/v1/events' \
  -H 'content-type: application/json' \
  -H 'accept: */*' \
  -H 'accept-language: en-US,en;q=0.9,vi;q=0.8' \
  --data-binary '
  {
   "specversion":"1.0",
   "source":"UZData/WebSDK/1.1.0",
   "type":"io.uiza.watchingevent",
   "time":"2020-05-15T06:20:07.078Z",
   "data":{
      "event":"watching",
      "viewer_user_id":"52cca977d68a476e0d89fecd1a066d42",
      "viewer_session_id":"729e4851-3780-7fa1-2f1c-3ba13cccb433",
      "entity_id":"b938c0a6-e9bc-4b25-9e66-dbf81d755c25",
      "entity_source":"live",
      "app_id":"b963b465c34e4ffb9a71922442ee0dca",
      "timestamp":"2020-05-15T06:20:07.078Z"
   }
  }'

Response

Event view example by curl

curl 'https://tracking-dev.uizadev.io/v1/events' \
  -H 'content-type: application/json' \
  -H 'accept: */*' \
  -H 'accept-language: en-US,en;q=0.9,vi;q=0.8' \
  --data-binary '
  {
   "specversion":"1.0",
   "source":"UZData/WebSDK/1.1.0",
   "type":"io.uiza.viewevent",
   "time":"2020-05-15T06:20:07.078Z",
   "data":{
      "event":"view",
      "viewer_user_id":"52cca977d68a476e0d89fecd1a066d42",
      "viewer_session_id":"729e4851-3780-7fa1-2f1c-3ba13cccb433",
      "entity_id":"b938c0a6-e9bc-4b25-9e66-dbf81d755c25",
      "entity_source":"live",
      "app_id":"b963b465c34e4ffb9a71922442ee0dca",
      "timestamp":"2020-05-15T06:20:07.078Z"
   }
  }'

Response

API Request get total live_viewer

curl 'https://development-api.uizadev.io/v1/analytics/live_viewers?app_id=b963b465c34e4ffb9a71922442ee0dca&entity_id=b938c0a6-e9bc-4b25-9e66-dbf81d755c25' \
  -H 'authority: development-api.uizadev.io' \
  -H 'accept: */*'

Response {"live_total_views":0...n}