Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(rn,audio) fix playback after API change

Saúl Ibarra Corretgé90f836040fa2
diff --git a/react/features/base/media/components/native/Audio.js b/react/features/base/media/components/native/Audio.js
index d8b6a51370..88edcfafcb 100644
--- a/react/features/base/media/components/native/Audio.js
+++ b/react/features/base/media/components/native/Audio.js
@@ -69,7 +69,13 @@ export default class Audio extends AbstractAudio {
play() {
if (this._sound) {
this._sound.setNumberOfLoops(this.props.loop ? -1 : 0);
- super.play();
+
+ // $FlowExpectedError
+ this._sound.play(success => {
+ if (!success) {
+ logger.warn(`Failed to play ${this.props.src}`);
+ }
+ });
}
}