[object Object] Icon

Encoding
Learn how to create, start, manage and modify Encodings

[object Object] Icon

Player
Learn how to create, start, manage and modify Players

[object Object] Icon

Analytics
Learn how to create, start, manage and modify Analyticss

Docs Home
User shortcuts for search
Focus by pressing f
Hide results by pressing Esc
Navigate via   keys

Mon Jan 07 2019

Total Hours Watched Metric

The Bitmovin Dashboard's metric Total Hours Watched is the total time people spent watching. This means that it's the sum of all the time users spent in the playing state. Thus the corresponding API query is:

1queryBuilder
2 .sum('PLAYED')
3 .licenseKey('YOUR_LICENSE_KEY')
4 .between(fromDate, toDate)
5 .filter('PLAYED', 'GT', 0)
6 .query();

As all Bitmovin Analytics queries it supports .groupBy and .interval.

Give us feedback