Skip to content

Conversation

@sravan-s
Copy link
Contributor

@sravan-s sravan-s commented Jun 6, 2023

Race condition occurs when two audio files are requested from
backend clear previous player and play only the last arrived file

Cleanup - Do not need to fetch audio file if its already in cache

Fixes: https://sendbird.atlassian.net/browse/UIKIT-3952

@sravan-s sravan-s self-assigned this Jun 6, 2023
Race condition occurs when two audio files are requested from backend
Clear previous player and play only the last arrived file

Cleanup - Do not need to fetch audio file if its already in cache
@sravan-s sravan-s force-pushed the fix/UIKIT-3952/double_press branch from 37948b1 to 0ed66b8 Compare June 6, 2023 09:15
@sravan-s sravan-s requested a review from AhyoungRyu June 7, 2023 01:57
resolve(audioFile);
logger.info('VoicePlayer: Use the audioFile instance.');
resolve(audioFile);
return;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there is audioFile, no need to fetch from backend

@sravan-s sravan-s merged commit c5f43a5 into main Jun 7, 2023
@sravan-s sravan-s deleted the fix/UIKIT-3952/double_press branch June 7, 2023 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants