Fix audio & video simultaneous play
This commit is contained in:
parent
d244ac08bd
commit
ee83d17028
@ -2,6 +2,7 @@ import { isApple, mediaSizes, isSafari } from "./config";
|
|||||||
import { logger, LogLevels } from "./logger";
|
import { logger, LogLevels } from "./logger";
|
||||||
import animationIntersector from "../components/animationIntersector";
|
import animationIntersector from "../components/animationIntersector";
|
||||||
import apiManager from "./mtproto/mtprotoworker";
|
import apiManager from "./mtproto/mtprotoworker";
|
||||||
|
import { copy } from "./utils";
|
||||||
|
|
||||||
let convert = (value: number) => {
|
let convert = (value: number) => {
|
||||||
return Math.round(Math.min(Math.max(value, 0), 1) * 255);
|
return Math.round(Math.min(Math.max(value, 0), 1) * 255);
|
||||||
@ -638,6 +639,7 @@ class LottieLoader {
|
|||||||
//params.autoplay = true;
|
//params.autoplay = true;
|
||||||
|
|
||||||
if(toneIndex >= 1 && toneIndex <= 5) {
|
if(toneIndex >= 1 && toneIndex <= 5) {
|
||||||
|
params.animationData = copy(params.animationData);
|
||||||
this.applyReplacements(params.animationData, toneIndex);
|
this.applyReplacements(params.animationData, toneIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user