bugfixing audio sound of options flow page
This commit is contained in:
parent
4328124b9a
commit
6f8cf28105
@ -316,7 +316,7 @@ let rawData = data?.getOptionsFlowFeed?.filter(item =>
|
|||||||
let highestOpenInterestTicker;
|
let highestOpenInterestTicker;
|
||||||
|
|
||||||
let audio;
|
let audio;
|
||||||
let muted = true;
|
let muted = false;
|
||||||
let newIncomingData = false;
|
let newIncomingData = false;
|
||||||
let previousCallVolume = 0; //This is needed to play the sound only if it changes.
|
let previousCallVolume = 0; //This is needed to play the sound only if it changes.
|
||||||
let notFound = false;
|
let notFound = false;
|
||||||
@ -431,15 +431,20 @@ async function websocketRealtimeData() {
|
|||||||
if(newData?.length > rawData?.length) {
|
if(newData?.length > rawData?.length) {
|
||||||
rawData = newData;
|
rawData = newData;
|
||||||
displayedData = rawData;
|
displayedData = rawData;
|
||||||
|
audio?.play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ruleOfList?.length !== 0 || filterQuery?.length !== 0) {
|
if (ruleOfList?.length !== 0 || filterQuery?.length !== 0) {
|
||||||
shouldLoadWorker.set(true);
|
shouldLoadWorker.set(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
if (previousCallVolume !== displayCallVolume && !muted && audio) {
|
if (previousCallVolume !== displayCallVolume && !muted && audio) {
|
||||||
audio?.play();
|
audio?.play();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Error processing WebSocket message:', e);
|
console.error('Error processing WebSocket message:', e);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user