fix(player): fix extending session info

This commit is contained in:
sylenien 2022-11-03 13:00:00 +01:00 committed by Delirium
parent e323a96267
commit 71c56c4462
2 changed files with 2 additions and 2 deletions

View file

@ -34,8 +34,9 @@ function LivePlayer ({
}) {
useEffect(() => {
if (!loadingCredentials) {
const sessionWithAgentData = {
...session,
...session.toJS(),
agentInfo: {
email: userEmail,
name: userName,

View file

@ -29,7 +29,6 @@ document.addEventListener("visibilitychange", function() {
});
export function init(session, config, live = false) {
// const live = session.live;
const endTime = !live && session.duration.valueOf();
instance = new Player(session, config, live);