fix(player): fix extending session info
This commit is contained in:
parent
e323a96267
commit
71c56c4462
2 changed files with 2 additions and 2 deletions
|
|
@ -34,8 +34,9 @@ function LivePlayer ({
|
|||
}) {
|
||||
useEffect(() => {
|
||||
if (!loadingCredentials) {
|
||||
|
||||
const sessionWithAgentData = {
|
||||
...session,
|
||||
...session.toJS(),
|
||||
agentInfo: {
|
||||
email: userEmail,
|
||||
name: userName,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue