Files
jitsi-meet/react/features/base/sounds/functions.ios.js
paweldomas 8b2ce21e1a fix(RN): bundle sound files in release build
On Android the files will be copied to the assets/sounds directory of
the SDK bundle on build time. To play the "asset:/" prefix has to be
used to locate the files correctly.

On iOS each sound file must be added to the SDK's Xcode project in order
to be bundled correctly. To playback we need to know the path of the SDK
bundle which is now exposed by the AppInfo iOS module.
2018-04-10 10:59:52 +02:00

13 lines
339 B
JavaScript

import { getSdkBundlePath } from '../../app';
/**
* Returns the location of the sounds. On iOS it's the location of the SDK
* bundle on the phone. Each sound file must be added to the SDK's XCode project
* in order to be bundled correctly.
*
* @returns {string}
*/
export function getSoundsPath() {
return getSdkBundlePath();
}