You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example url: mediaItems/20/stats?streamChunkPeriod=60&streamChunkStart=0&streamNumChunks=4
streamChunkPeriod: number of seconds each chunk represents (defaults to something sensible)
streamChunkStart: chunk number to start at (defaults to 0)
streamNumChunks: the number of chunks to retrieve (defaults to getting all chunks)
also vodChunkPeriod etc..
{stream: {// these totals are the totals this media item has had over all timetotals: {views: 100,uniqueViews: 20},// chunks are from the most recent live stream this media item has hadchunks: {chunkPeriod: 60,chunkStart: 0,data: [{views: 20,uniqueViews: 19,numWatching: 20},{views: 50,uniqueViews: 1,numWatching: 30},{views: 30,uniqueViews: 0,numWatching: 90}]}},vod: {// same as Live except the live format uses the time values were // recorded in the chunks whereas for VOD it can use the actual// time positions in the video// chunks map to the most recent upload for this media item}}
This can use the
playback_history
table (#583) to determine:This should be available at a /mediaItems/{id}/stats endpoint and also /mediaItems/stats for global stats.
The text was updated successfully, but these errors were encountered: