mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
@@ -283,11 +283,12 @@ export const InCallView: FC<InCallViewProps> = ({
|
|||||||
return prefetchSounds({
|
return prefetchSounds({
|
||||||
waiting: { mp3: genericSoundMp3, ogg: genericSoundOgg },
|
waiting: { mp3: genericSoundMp3, ogg: genericSoundOgg },
|
||||||
decline: { mp3: leftCallSoundMp3, ogg: leftCallSoundOgg },
|
decline: { mp3: leftCallSoundMp3, ogg: leftCallSoundOgg },
|
||||||
// do we want a timeout sound?
|
// Do we want a timeout sound?
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// configure this to sth that fits to the pickup waiting sound.
|
// configure this to sth that fits to the pickup waiting sound.
|
||||||
const PICKUP_SOUND_INTERVAL = 1000;
|
// 1600 is in sync with the animation.
|
||||||
|
const PICKUP_SOUND_INTERVAL = 1600;
|
||||||
|
|
||||||
const pickupPhaseAudio = useAudioContext({
|
const pickupPhaseAudio = useAudioContext({
|
||||||
sounds: pickupPhaseSoundCache,
|
sounds: pickupPhaseSoundCache,
|
||||||
@@ -373,7 +374,7 @@ export const InCallView: FC<InCallViewProps> = ({
|
|||||||
onLeave();
|
onLeave();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
}, [callPickupState, onLeave, pickupPhaseAudio]);
|
||||||
|
|
||||||
// When waiting for pickup, loop a waiting sound
|
// When waiting for pickup, loop a waiting sound
|
||||||
useEffect((): void | (() => void) => {
|
useEffect((): void | (() => void) => {
|
||||||
@@ -418,7 +419,9 @@ export const InCallView: FC<InCallViewProps> = ({
|
|||||||
size={AvatarSize.XL}
|
size={AvatarSize.XL}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Text size="md">{text}</Text>
|
<Text size="md" className={waitingStyles.text}>
|
||||||
|
{text}
|
||||||
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -24,10 +24,14 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
inset: -12px;
|
inset: -12px;
|
||||||
border-radius: 9999px;
|
border-radius: 9999px;
|
||||||
border: 2px solid rgba(255, 255, 255, 0.6);
|
border: 12px solid rgba(255, 255, 255, 0.6);
|
||||||
animation: pulse 1.6s ease-out infinite;
|
animation: pulse 1.6s ease-out infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
color: var(--cpd-color-text-on-solid-primary);
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes pulse {
|
@keyframes pulse {
|
||||||
0% {
|
0% {
|
||||||
transform: scale(0.95);
|
transform: scale(0.95);
|
||||||
|
|||||||
@@ -116,6 +116,7 @@ export const widget = ((): WidgetHelpers | null => {
|
|||||||
EventType.Reaction,
|
EventType.Reaction,
|
||||||
EventType.RoomRedaction,
|
EventType.RoomRedaction,
|
||||||
ElementCallReactionEventType,
|
ElementCallReactionEventType,
|
||||||
|
EventType.RTCDecline,
|
||||||
];
|
];
|
||||||
|
|
||||||
const sendState = [
|
const sendState = [
|
||||||
|
|||||||
Reference in New Issue
Block a user