Skip to content

Commit e889231

Browse files
committed
Update live.js
1 parent 0f4529d commit e889231

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

code/miniapp/live.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,14 @@ export const createLive = ({ tg, live, topic, place, telegram = false }) => {
117117
if (!on) {
118118
mode = 'news';
119119
camPage = 0;
120-
audioOn = false;
121120
}
122121
live.hidden = !on;
123122
initLivePlayers();
124123
if (on) {
125124
startLivePlayers();
125+
} else if (telegram && audioOn) {
126+
audioOn = false;
127+
remountLive();
126128
} else {
127129
if (livePlayerReady) livePlayer.stopVideo();
128130
if (secondLivePlayerReady) secondLivePlayer.stopVideo();

0 commit comments

Comments
 (0)