Browse Source

Fix audio & video simultaneous play

master
morethanwords 4 years ago
parent
commit
ee83d17028
  1. 2
      src/lib/lottieLoader.ts

2
src/lib/lottieLoader.ts

@ -2,6 +2,7 @@ import { isApple, mediaSizes, isSafari } from "./config"; @@ -2,6 +2,7 @@ import { isApple, mediaSizes, isSafari } from "./config";
import { logger, LogLevels } from "./logger";
import animationIntersector from "../components/animationIntersector";
import apiManager from "./mtproto/mtprotoworker";
import { copy } from "./utils";
let convert = (value: number) => {
return Math.round(Math.min(Math.max(value, 0), 1) * 255);
@ -638,6 +639,7 @@ class LottieLoader { @@ -638,6 +639,7 @@ class LottieLoader {
//params.autoplay = true;
if(toneIndex >= 1 && toneIndex <= 5) {
params.animationData = copy(params.animationData);
this.applyReplacements(params.animationData, toneIndex);
}

Loading…
Cancel
Save