# How does FMOD access contents under openharmony's rawfile?

**URL:** https://qa.fmod.com/t/how-does-fmod-access-contents-under-openharmonys-rawfile/21873
**Category:** FMOD Engine
**Tags:** unity, openharmony
**Created:** [July 13, 2024, 3:41am UTC](https://qa.fmod.com/t/how-does-fmod-access-contents-under-openharmonys-rawfile/21873 "2024-07-13T03:41:39Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![longyou](https://avatars.discourse-cdn.com/v4/letter/l/d2c977/32.png) [@longyou](https://qa.fmod.com/u/longyou)
#### Post date: [July 13, 2024, 3:41am UTC](https://qa.fmod.com/t/how-does-fmod-access-contents-under-openharmonys-rawfile/21873/1 "2024-07-13T03:41:39Z")

</div>

We are now working with Tuanjie Engine (a modified unity3d) + FMOD-unity plugin-in.  
It seems that fmod can’t load file which is embedding in hap package.

The error log is below:

```auto
[FMOD] FOpenFile::open : fopen failed to open 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank', errno = 2
     FMODUnity.RuntimeManager : DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
[FMOD] RuntimeBankModel::openFile : Failed to open file 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank'
     FMODUnity.RuntimeManager : DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
     BankLoadException : [FMOD] Could not load bank 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank' : ERR_FILE_NOTFOUND : File not found.
       at FMODUnity.RuntimeManager.RegisterLoadedBank(FMODUnity.RuntimeManager + LoadedBank loadedBank, System.String bankPath, System.String bankName, System.Boolean loadSamples, FMOD.RESULT loadResult)[0x00000] in <00000000000000000000000000000000> : 0
       at FMODUnity.RuntimeManager.LoadBank(System.String bankName, System.Boolean loadSamples, System.String bankId)[0x00000] in <00000000000000000000000000000000> : 0
       at FMODUnity.RuntimeManager.LoadBanks(FMODUnity.Settings fmodSettings)[0x00000] in <00000000000000000000000000000000> : 0
       at FMODUnity.RuntimeManager.Initialize()[0x00000] in <00000000000000000000000000000000> : 0
       at FMODUnity.RuntimeManager.get_Instance()[0x00000] in <00000000000000000000000000000000> : 0
       at FMODUnity.RuntimeManager.LoadBank(System.String bankName, System.Boolean loadSamples, System.String bankId)[0x00000] in <00000000000000000000000000000000> : 0
       at FMODUnity.StudioBankLoader.Load()[0x00000] in <00000000000000000000000000000000> : 0
       at FMODUnity.StudioBankLoader.HandleGameEvent(FMODUnity.LoaderGameEvent gameEvent)[0x00000] in <00000000000000000000000000000000> : 0
     FMODUnity.RuntimeManager : LoadBanks(Settings)
     FMODUnity.RuntimeManager : Initialize()
     FMODUnity.RuntimeManager : get_Instance()
     FMODUnity.RuntimeManager : LoadBank(String, Boolean, String)
     FMODUnity.StudioBankLoader : Load()
     FMODUnity.StudioBankLoader : HandleGameEvent(LoaderGameEvent)

```

BTW, we know FMOD use “file:///android\_asset/” protocol to access embedding files on android. Is there any trick on OpenHarmony？  
Thanks

---

<div class="post-metadata">

### Author: ![li\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/li_fmod/32/6577_2.png) [@li\_fmod](https://qa.fmod.com/u/li_fmod)
#### Post date: [July 18, 2024, 3:20am UTC](https://qa.fmod.com/t/how-does-fmod-access-contents-under-openharmonys-rawfile/21873/2 "2024-07-18T03:20:15Z")

</div>

Hi,

Thank you for sharing the log.

Could I have the version number of your Tuanjie Engine and FMOD Unity plugin you are using?

Would it be possible to elaborate more on how to trigger the error? Did the error log come out within the Tuanjie Engine or when it was deployed to the OpenHarmony device?

Could you please tick API Error logging and set the Logging Level to “Log” ([Unity Integration | 8. Settings | 8.2 Initialization | 8.2.1 Logging Level](https://fmod.com/docs/2.02/unity/settings.html#logging-level)) to see if you can get more error logs from the console?

![](https://lh7-us.googleusercontent.com/docsz/AD_4nXcwnOm19l6z4PAdCrjbZIfGt8qFcsONH1vpmR1bIeGzR1ldJzkLZvzI9X8CYXKLKbsEiRtZqJE1_-N4enWE89K-4QQ80nod5GLVdL0N0cnm2hRJzeJ1HSu-vhudVKMbCHXuU7oRCG-b21pNjYrrhX0fxcVf?key=N-AZb564DTyuOilsIgHh1g)

---

<div class="post-metadata">

### Author: ![longyou](https://avatars.discourse-cdn.com/v4/letter/l/d2c977/32.png) [@longyou](https://qa.fmod.com/u/longyou)
#### Post date: [July 20, 2024, 4:48am UTC](https://qa.fmod.com/t/how-does-fmod-access-contents-under-openharmonys-rawfile/21873/3 "2024-07-20T04:48:37Z")

</div>

Hi.  
Thank you for your reply。

Here is the details:

Enviroment:

- Tuanjie 1.2.0 (2022.3.2t13)
- FMOD for Unity 2.02.22
- DevEco Studio 4.1 Release

Reproducing:

- Default configuration for FMOD
- Attach "FMOD Studio Bank Loader“  
 ![无标题](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/a/a73dd3f5187fa422ef12d43c1c689033c898aae2.png)
- Export with “Development Build“ Checked and deploy on an OpenHarmony device。

As you metioned, we had ticked API Error logging and set the Logging Level to “Log”, but the Log looks no difference from the earlier one.

```auto
07-20 12:15:47.212 15439-15439 C03F01/NAPI pid-15439 I [(native_module_manager.cpp:576)(LoadNativeModule)] key is default/fmodL
07-20 12:15:47.213 15439-15439 A0FF0D/fmod pid-15439 I FMOD_NAPI_RegisterCallback : Registering FMOD module properties
07-20 12:15:47.222 15439-15439 A00001/Tuanjie pid-15439 I fmod_init
07-20 12:15:49.699 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] System::create : Header version = 2.02.22. Current version = 2.02.22.
07-20 12:15:49.699 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.701 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] SystemI::setOutputInternal : Setting output to 'FMOD OpenHarmony Audio Output'
07-20 12:15:49.701 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.702 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] Manager::init : maxchannels = 128 studioflags = 00000008 flags 00000000 extradriverdata 0.
07-20 12:15:49.702 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.704 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] SystemI::init : Initialize version=20222 (142841), maxchannels=128, flags=0x00020000
07-20 12:15:49.704 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.752 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] OHAudio_Init : Output buffer size: 1114 samples, DSP buffer: 1024 * 4.
07-20 12:15:49.752 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.756 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] Thread::initThread : Init FMOD stream thread. Affinity: 0x4000000000000003, Priority: 0xFFFF7FFB, Stack Size: 98304, Semaphore: No, Sleep Time: 10, Looping: Yes.
07-20 12:15:49.756 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.758 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] SystemI::DSPCodecPoolRegister : register codec pool for pool type 7
07-20 12:15:49.758 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.783 15439-15558 A00001/Tuanjie com.Defau...yproject W [FMOD] OutputRingBuffer::read : Insufficient buffer size detected, requested 35664 bytes, buffer size is 32768 bytes.
07-20 12:15:49.783 15439-15558 A00001/Tuanjie com.Defau...yproject W FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.784 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] Thread::initThread : Init FMOD mixer thread. Affinity: 0x4000000000000001, Priority: 0xFFFF7FFA, Stack Size: 81920, Semaphore: Yes, Sleep Time: 0, Looping: Yes.
07-20 12:15:49.784 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.787 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] AsyncManager::init : manager 0x5c4e8d7808 isAsync 1 updatePeriod 0.02
07-20 12:15:49.787 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.790 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] Thread::initThread : Init FMOD Studio update thread. Affinity: 0x4000000000000002, Priority: 0xFFFF7FFD, Stack Size: 98304, Semaphore: No, Sleep Time: 1, Looping: No.
07-20 12:15:49.790 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.790 15439-15558 A00001/Tuanjie com.Defau...yproject W [FMOD] OutputRingBuffer::read : Insufficient buffer size detected, requested 35664 bytes, buffer size is 32768 bytes.
07-20 12:15:49.790 15439-15558 A00001/Tuanjie com.Defau...yproject W FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.792 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] AsyncManager::init : done
07-20 12:15:49.792 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.793 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] PlaybackSystem::init :
07-20 12:15:49.793 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.795 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] Thread::initThread : Init FMOD Studio sample load thread. Affinity: 0x4000000000000003, Priority: 0xFFFF7FFD, Stack Size: 98304, Semaphore: No, Sleep Time: 1, Looping: No.
07-20 12:15:49.795 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.797 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] PlaybackSystem::init : done
07-20 12:15:49.797 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.798 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] Thread::initThread : Init FMOD Studio bank load thread. Affinity: 0x4000000000000003, Priority: 0xFFFF7FFD, Stack Size: 98304, Semaphore: No, Sleep Time: 1, Looping: No.
07-20 12:15:49.798 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.800 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] Manager::init : done.
07-20 12:15:49.800 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.826 15439-15558 A00001/Tuanjie com.Defau...yproject W [FMOD] OutputRingBuffer::read : Insufficient buffer size detected, requested 35664 bytes, buffer size is 32768 bytes.
07-20 12:15:49.826 15439-15558 A00001/Tuanjie com.Defau...yproject W FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.837 15439-15563 A00001/Tuanjie com.Defau...yproject E [FMOD] FOpenFile::open : fopen failed to open 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank', errno = 2
07-20 12:15:49.837 15439-15563 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.839 15439-15563 A00001/Tuanjie com.Defau...yproject E [FMOD] RuntimeBankModel::openFile : Failed to open file 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank'
07-20 12:15:49.839 15439-15563 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.905 15439-15558 A00001/Tuanjie com.Defau...yproject W [FMOD] OutputRingBuffer::read : Insufficient buffer size detected, requested 35664 bytes, buffer size is 32768 bytes.
07-20 12:15:49.905 15439-15558 A00001/Tuanjie com.Defau...yproject W FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.993 15439-15462 A00001/Tuanjie com.Defau...yproject E [FMOD] System::loadBankFile(jar:file://rawfile/Data/StreamingAssets/Master.strings.bank, 0, 0x5c465a5b90) returned ERR_FILE_NOTFOUND for STUDIO_SYSTEM (0x1FFF1F).
07-20 12:15:49.993 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:ERROR_CALLBACK(IntPtr, SYSTEM_CALLBACK_TYPE, IntPtr, IntPtr, IntPtr)
07-20 12:15:50.006 15439-15558 A00001/Tuanjie com.Defau...yproject W [FMOD] OutputRingBuffer::read : Insufficient buffer size detected, requested 35664 bytes, buffer size is 32768 bytes.
07-20 12:15:50.006 15439-15558 A00001/Tuanjie com.Defau...yproject W FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E BankLoadException: [FMOD] Could not load bank 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank' : ERR_FILE_NOTFOUND : File not found.
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.RegisterLoadedBank (FMODUnity.RuntimeManager+LoadedBank loadedBank, System.String bankPath, System.String bankName, System.Boolean loadSamples, FMOD.RESULT loadResult) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.LoadBank (System.String bankName, System.Boolean loadSamples, System.String bankId) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.LoadBanks (FMODUnity.Settings fmodSettings) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.Initialize () [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.get_Instance () [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.LoadBank (System.String bankName, System.Boolean loadSamples, System.String bankId) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.StudioBankLoader.Load () [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.StudioBankLoader.HandleGameEvent (FMODUnity.LoaderGameEvent gameEvent) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:LoadBanks(Settings)
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:Initialize()
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:get_Instance()
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:LoadBank(String, Boolean, String)
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.StudioBankLoader:Load()
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.StudioBankLoader:HandleGameEvent(LoaderGameEvent)
07-20 12:15:50.044 15439-15563 A00001/Tuanjie com.Defau...yproject E [FMOD] FOpenFile::open : fopen failed to open 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank', errno = 2
07-20 12:15:50.044 15439-15563 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:50.047 15439-15563 A00001/Tuanjie com.Defau...yproject E [FMOD] RuntimeBankModel::openFile : Failed to open file 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank'
07-20 12:15:50.047 15439-15563 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:50.112 15439-15558 A00001/Tuanjie com.Defau...yproject W [FMOD] OutputRingBuffer::read : Insufficient buffer size detected, requested 35664 bytes, buffer size is 32768 bytes.
07-20 12:15:50.112 15439-15558 A00001/Tuanjie com.Defau...yproject W FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:50.194 15439-15558 A00001/Tuanjie com.Defau...yproject W [FMOD] OutputRingBuffer::read : Insufficient buffer size detected, requested 35664 bytes, buffer size is 32768 bytes.
07-20 12:15:50.194 15439-15558 A00001/Tuanjie com.Defau...yproject W FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:50.198 15439-15462 A00001/Tuanjie com.Defau...yproject E [FMOD] System::loadBankFile(jar:file://rawfile/Data/StreamingAssets/Master.strings.bank, 0, 0x5c465a5dc0) returned ERR_FILE_NOTFOUND for STUDIO_SYSTEM (0x1FFF1F).
07-20 12:15:50.198 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:ERROR_CALLBACK(IntPtr, SYSTEM_CALLBACK_TYPE, IntPtr, IntPtr, IntPtr)
07-20 12:15:50.207 15439-15462 A00001/Tuanjie com.Defau...yproject E BankLoadException: [FMOD] Could not load bank 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank' : ERR_FILE_NOTFOUND : File not found.
07-20 12:15:50.207 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.RegisterLoadedBank (FMODUnity.RuntimeManager+LoadedBank loadedBank, System.String bankPath, System.String bankName, System.Boolean loadSamples, FMOD.RESULT loadResult) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.207 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.LoadBank (System.String bankName, System.Boolean loadSamples, System.String bankId) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.207 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.StudioBankLoader.Load () [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.207 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.StudioBankLoader.HandleGameEvent (FMODUnity.LoaderGameEvent gameEvent) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.207 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.StudioBankLoader:Load()
07-20 12:15:50.207 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.StudioBankLoader:HandleGameEvent(LoaderGameEvent)

```

The doc ([https://www.fmod.com/docs/2.02/api/platforms-openharmony.html#javascript](https://www.fmod.com/docs/2.02/api/platforms-openharmony.html#javascript)) says “initializing the FMOD JavaScript interface will allow loading assets from the App package”. We have done this in this project but still can’t load embedded assets.  
In Tuanjie Engine, “Application.streamingAssetsPath” returns “ **jar: file://rawfile/Data/StreamingAssets** ”. We doubt that path does not meet the FMOD’s requirements for loading embedded assets.

---

<div class="post-metadata">

### Author: ![li\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/li_fmod/32/6577_2.png) [@li\_fmod](https://qa.fmod.com/u/li_fmod)
#### Post date: [July 24, 2024, 2:26am UTC](https://qa.fmod.com/t/how-does-fmod-access-contents-under-openharmonys-rawfile/21873/4 "2024-07-24T02:26:28Z")

</div>

Thank you for providing the detailed information and bringing this issue to our attention. We have passed on the issue to our development team to investigate further.

Could I grab the version number of your OpenHarmony version and SDK API?

In the meantime, Ccould you please try replacing the `PlatformOpenHarmony.cs` which is located at `Assets\Plugins\FMOD\platforms\openharmony\src` with  
[PlatformOpenHarmony.cs.txt](https://qa.fmod.com/uploads/short-url/kdgNLTVTaYnTPQwlEBldMYj2Cor.txt) (2.9 KB), please delete the `.txt` before adding it to your Unity project.

Please let me know if the issue persists.

---

<div class="post-metadata">

### Author: ![longyou](https://avatars.discourse-cdn.com/v4/letter/l/d2c977/32.png) [@longyou](https://qa.fmod.com/u/longyou)
#### Post date: [July 27, 2024, 4:44am UTC](https://qa.fmod.com/t/how-does-fmod-access-contents-under-openharmonys-rawfile/21873/5 "2024-07-27T04:44:04Z")

</div>

Hi there！

Our project is built with SDK 4.1.7.5 targeting API 11, and tested on HarmonyOS Next Beta (NEXT.0.0.26 Developer Beta 1).

The PlatformOpenHarmony.cs attached is exactly same as the one in the Plugin. So the issue persists.

Thanks and look forward forward to the development team resolving it.

---

<div class="post-metadata">

### Author: ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)
#### Post date: [July 31, 2024, 12:06am UTC](https://qa.fmod.com/t/how-does-fmod-access-contents-under-openharmonys-rawfile/21873/6 "2024-07-31T00:06:47Z")

</div>

Thank you for the information. Apologies, here is the updated file:  
[PlatformOpenHarmony.cs.txt](https://qa.fmod.com/uploads/short-url/bHn5AkerbHrsQoz1ITT5XMjTvho.txt) (3.0 KB)

---

<div class="post-metadata">

### Author: ![cuczzz](https://avatars.discourse-cdn.com/v4/letter/c/8dc957/32.png) [@cuczzz](https://qa.fmod.com/u/cuczzz)
#### Post date: [September 11, 2025, 9:34am UTC](https://qa.fmod.com/t/how-does-fmod-access-contents-under-openharmonys-rawfile/21873/7 "2025-09-11T09:34:28Z")

</div>

@longyou Has it been solved？
