mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-02-05 21:40:21 +00:00
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.
13 lines
339 B
JavaScript
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();
|
|
}
|