I’m building an internet radio app using Unity 4.2.2 Android Pro, based on the FMOD "netstream" C# example. In the Unity editor (on my PC) my app works fine, and the URL streams without a problem. But when I deploy to the device (Samsung Galaxy S3 phone) any URL I try to play gives me an ERR_FILE_NOTFOUND result.
I’ve verified that the app permissions include full network access on the phone.
Is this some kind of issue with the URL string needing to be escaped? If so, how is this best done?
Thanks in advance.
- Arcanor asked 5 years ago
This was addressed via email@example.com, for anyone following along here is the response:
I believe the issue will be due to wide char strings being passed into FMOD. As the C# wrapper is primarily for Windows we always pass wide chars into FMOD, however Windows is the only FMOD platform that can handle wide chars. To fix this have a look at the C# wrapper, for the APIs that take strings ensure the marshaling is not set to unicode.
To do this just remove any instances of “CharSet = CharSet.Unicode”, this will default the string marshaling back to default.
Please login first to submit.