pass readyState to buffer analytics api
This commit is contained in:
parent
1ff2dec93f
commit
fac2050485
2 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,7 @@ type Analytics = {
|
|||
duration: number,
|
||||
userIdHash: string,
|
||||
playerPoweredBy: string,
|
||||
readyState: number,
|
||||
}
|
||||
) => void,
|
||||
emailProvidedEvent: () => void,
|
||||
|
@ -222,6 +223,7 @@ const analytics: Analytics = {
|
|||
position: data.timeAtBuffer,
|
||||
duration: data.bufferDuration,
|
||||
player: data.playerPoweredBy,
|
||||
readyState: data.readyState,
|
||||
stream_duration: data.duration,
|
||||
stream_bitrate: data.bitRate,
|
||||
},
|
||||
|
|
|
@ -511,6 +511,7 @@ export function doAnalyticsBuffer(uri, bufferData) {
|
|||
userIdHash,
|
||||
duration: fileDurationInSeconds,
|
||||
playerPoweredBy: bufferData.playerPoweredBy,
|
||||
readyState: bufferData.readyState,
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue