MediaMelon
  • MediaMelon SDK Integration
  • MediaMelon SDK Events
  • MediaMelon Player SDK Integration
    • React Native
      • React Native Video v5.2.0 with Mediamelon SDK
      • React Native Video v6.4.2 with Mediamelon SDK
    • Web SDK
      • VideoJS Web with Mediamelon Analytics
      • VideoJS Web with Google DAI
      • Shaka Player Web v4
      • MediaMelon Web Kaltura Player Plugin Integration Document
      • NexPlayer Web v4
      • THEOPlayer Web
      • JWPlayer Web
      • Radiant Player Web
      • ChromeCast Player
      • HLSJS Player Web
      • HbbTV SDK
      • Comcast PDK 6
      • Bitmovin Web Player
      • HTML5 Player Web
      • Flow Player Web
      • DashJS Player Web
      • Castlabs Player Web
      • Cordova Plugin Toast (Smart TV)
      • Custom Player Web SDK
      • Plyr Player Web with MediaMelon Analytics
      • React Player SDK with IMA
    • Android SDK
      • App Analytics SDK
      • Bitmovin Android v3.73 with Content Provider Metrics
      • Exoplayer v2.13.2 integration with MediaMelon SDK
      • Exoplayer v2.17.1 with Mediamelon SDK
      • Exoplayer v2.12.2 integration with MediaMelon SDK
      • EXOPlayer-Android(V2.14.2) MediaMelon SDK with Google IMA DAI
      • EXOPlayer-Android(V2.17.1) MediaMelon SDK with Google IMA DAI
      • Exoplayer v2.11
      • Exoplayer v2.18.1 with Mediamelon SDK
      • Theoplayer v6.0.0 with Mediamelon SDK
      • Theoplayer v4.12.6 with Mediamelon SDK
      • Theoplayer v7.5.0 with Mediamelon SDK
      • Exoplayer v2.13.3 integration with MediaMelon SDK
      • Kaltura Android Player Integration with Mediamelon SDK
      • Media3 v1.3.0 and ExoPlayer 2.19.1 with MediaMelon SDK
      • Media3 v1.3.1 with MediaMelon SDK
      • MediaMelon Android Media3 v1.1.1 SDK Integration Document
      • Media3Player-Android(V1.3.0) MediaMelon SDK with Google IMA
    • Roku SDK
      • Roku SDK
      • Roku with RAF SDK
      • Roku with IMA SDK
    • iOS SDK
      • AVPlayer (Cocoapods)
      • AVPlayer with Google DAI SDK ( Framework )
      • AVPlayer Quality Of Experience SDK
      • AVPlayer Generic Framework
      • AVPlayer with Google DAI (Cocoapods)
      • Bitmovin iOS v3.44 with Content Provider Metrics
      • THEOPlayer XCFramework
      • THEOplayer (Cocoapods)
      • MediaMelon iOS Kaltura Player Plugin Integration Document
    • tvOS SDK
      • AVPlayer tvOS XCFramework
      • THEOPlayer tvOS XCFramework
    • Toast SDK
    • Custom Player C++ SDK
    • C++ SDK QoE Ads
    • Ad Integrations
      • Google IMA
      • FreeWheel
      • ServerSide.AI
  • SmartSight Analytics
    • Product Features
    • QBR Streaming
  • SmartSight API's
    • API Overview
      • Metric and Dimensions Dictionary
      • General Guidelines
      • Video Experience
      • Ad Experience
      • Smartquery Insights
      • Errors
      • Alerts
    • Use-case dictionary
Powered by GitBook
On this page
  • API Calls
  • Required Parameters
  • Optional Parameters
  • Response
  • Old QBR Metrics and Dimensions Definitions
  • Common Metrics (QBR-optimized video streams)
  • Dimension-specific Metrics (QBR-optimized video sessions)

Was this helpful?

  1. SmartSight API's

Stream Analytics - Deprecated Page

The following set of APIs are used to query analytical data from video streams

API Calls

Live and Video On-Demand (VOD) Stream Analytics

GET /mm-apis/qbrData/vod/{customerId}

Content-Type: application/jsonRetrieves analytics of live and on-demand video streams sourced from video players.

QBR-enabled Packager Analytics

GET /mm-apis/qbrData/live/{customerId}

Content-Type: application/jsonRetrieves analytics of QBR-enabled streams sourced from Packagers/Transcoders. Available only when the encoder has been configured with the MediaMelon QBR SDK.

Required Parameters

The following request parameters are common to both APIs and are required for all queries.

Request Parameter

Data Type

Data Format

Description

Example

dimension

String

Comma-separated

Required. The attribute(s) of video stream, such as the playback asset.

dimmension=asset

metrics

String

Comma-separated

Quantifiable attributes of a dimension, such as the number of times an asset was played.

metrics=viewercount

period

String

Comma-separated key-value pairs

The time range to be queried, with start and end in epoch timestamps.

period=start=1495599056, end=1495599116

Optional Parameters

The following request parameters are common to both APIs and are optional.

Request Parameter

Data Type

Data Format

Description

Example

agg

Integer

One of 0 or 1

agg=1

aggby

String

Single value

aggby=device

count

Integer

One of 0 or 1

count=0

filter

String

Commma-separated key-value pairs

filter=city=Bengaluru | SanDiego, device= Smartphone

[Returns data for Smartphone devices in Bengaluru and San Diego cities.]

limit

Integer

Single value

limit=10

offset

Integer

Single value

offset=17

orderas

String

One of ASC or DESC

orderas=ASC

orderby

String

Single value

orderby=country

Response

The response is a JSON object containing the following fields.

Response Field

Data Type

Description

totalcount

Integer

The total number of records in the result set.

pagecount

Integer

The number of records returned in the current result set. Will be the size of page in paginated requests. By default, returns all records.

response

Array

The response is an array of objects, where each object contains key-value pairs of the metrics that are queried for.

Sample Request and Response

https://smartsight.mediamelon.com/api/mm-apis/qbrData/vod/123456?period=start%3D1499773995%2Cend%3D1499775795&metrics=assetid&dimension=asset&agg=1&aggby=assetid

{“totalcount”:8,”pagecount”:8,”response”:[{“assetid”:”X-Men”},{“assetid”:”PrisonBreak”},{“assetid”:”Simpsons”},{“assetid”:”GameOfThrones”},{“assetid”:”RaceCar”},{“assetid”:”TearsOfSteel”},{“assetid”:”BigBuckBunny”},{“assetid”:”RickAndMorty”}]}

Old QBR Metrics and Dimensions Definitions

Common Metrics (QBR-optimized video streams)

These metrics are available for QBR-enabled streams.

Metric
SmartSight UI
Description

Metric

SmartSight UI

Description

cbrbitrate

Bitrate

Original (CBR) bitrate in Mbps

countqualimp

n/a

Count of instances where QBR selected a higher quality segment vs CBR

countqualred

n/a

Count of instances where QBR selected a lower quality segment vs CBR

pctbitssaved

Bits Saved

Percentage of bandwidth saved by QBR

qbrbitrate

QBR Bitrate

QBR bitrate in Mbps

qualcbr

Original Avg iMOS

Original (CBR) quality score (iMOS value)

qualperbitcbr

Original Quality Density

Original (CBR) quality density

qualperbitqbr

QBR Quality Density

QBR quality density

qualqbr

QBR iMOS

QBR quality score (iMOS value)

qbrsize

QBR Traffic

Actual data downloaded (in MB) with QBR optimization; equal to cbrsize when QBR not used

Dimension-specific Metrics (QBR-optimized video sessions)

These metrics are available for QBR-enabled streams.

Metric
Dimension
Description

Metric

Dimension

Description

profile

profile

Representation index of the video being played

res

res

Stream resolution of the video being played

Last updated 7 months ago

Was this helpful?

See

See

See

See

See

See

See

See

Aggregation
Aggregation
Aggregation
Filtering
Pagination
Pagination
Sorting
Sorting