Skip to main content

PlayerMetrics

public class PlayerMetrics

An object containing the different metrics gathered by the QUANTEEC plugin since the last time they were sent to the QUANTEEC analytics server.

Summary​

Public fields​

intB_manifest
intbestQuality
Stringdevice
doubleMB_peer
doubleMB_peer_city
doubleMB_peer_country
doubleMB_peer_ip
doubleMB_peer_region
Stringnetwork
intotherQualities
HashMap<String, QualityEntry>quality
intsec_peer
intsec_rebuf
intsec_server
inttimeHQ
inttimeLQ
inttimestamp
intvideo_id

Public fields​

B_manifest​

public int B_manifest

Size of manifest data downloaded in byte.

bestQuality​

public int bestQuality

The quantity of data downloaded in the best quality the video can offer.

device​

public String device

The type of device running the QUANTEEC plugin. Four types of devices are recognized: phones, tablets, laptops, TVs.

MB_peer​

public double MB_peer

The quantity of data in MegaByte downloaded from other viewers.

Since 1.9.5, this field is a double instead of int for better precision.

MB_peer_city​

public double MB_peer_city

The quantity of data in MegaByte downloaded from other viewers in the same city (but not behind the same IP address).

Since 1.9.5, this field is a double instead of int for better precision.

MB_peer_country​

public double MB_peer_country

The quantity of data in MegaByte downloaded from other viewers in the same country (but not in the same city or region).

Since 1.9.5, this field is a double instead of int for better precision.

MB_peer_ip​

public double MB_peer_ip

The quantity of data in MegaByte downloaded from other viewers behind the same IP address.

Since 1.9.5, this field is a double instead of int for better precision.

MB_peer_region​

public double MB_peer_region

The quantity of data in MegaByte downloaded from other viewers in the same region (but not in the same city).

Since 1.9.5, this field is a double instead of int for better precision.

MB_server​

public double MB_server

The quantity of data in MegaByte downloaded from the CDN.

Since 1.9.5, this field is a double instead of int for better precision.

network​

public String network

The network type of the user device. This field can be set to two values: 'cellular' or 'wi-fi'. It must be noted that 'wi-fi' also considers the viewers connected in ethernet.

otherQualities​

public int otherQualities

The quantity of data downloaded in other qualities than the best one.

quality​

public HashMap<String, QualityEntry> quality

Downloaded data by quality (SD, HD, FullHD, 2K, 4K, 8K and audio). Each PlayerMetrics.QualityEntry has public double MB_peer and double MB_server fields for data received from peers and the CDN, respectively. The entries start at zero and are reset for each analytics interval.

Since 1.9.4, this field replaces HashMap<String, Integer> qualities. Code that reads qualities must use quality and select MB_peer or MB_server, then recompile. The serialized analytics key also changes from qualities to quality.

Since 1.9.5, the MB_peer and MB_server fields in QualityEntry are doubles instead of ints for better precision.

sec_peer​

public int sec_peer

The seconds of video downloaded from other peers.

sec_rebuf​

public int sec_rebuf

The number of seconds the video has been in rebuffering mode.

sec_server​

public int sec_server

The seconds of video downloaded from CDN.

timeHQ​

public int timeHQ

The duration of video in seconds downloaded in HD (720p and better).

timeLQ​

public int timeLQ

The duration of video in seconds downloaded in SD (less than 720p).

timestamp​

public long timestamp

Indicates the moment the player metrics have been gathered and sent to the QUANTEEC analytics server.

video_id​

public String video_id

The video_id attached to the video played by the player.