mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +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.
10 lines
209 B
JavaScript
10 lines
209 B
JavaScript
/**
|
|
* Returns the location of the sounds. On Web it's the relative path to
|
|
* the sounds folder placed in the source root.
|
|
*
|
|
* @returns {string}
|
|
*/
|
|
export function getSoundsPath() {
|
|
return 'sounds';
|
|
}
|