-
Notifications
You must be signed in to change notification settings - Fork 765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i can't play audio in cordova 12 #389
Comments
Try to use XCode 14.2 on an older version of OSX. I tried to port a cordova ios 7 project that had working audio with XCode 14.2 to XCode 15 during the last weeks but found no way to play audio using this plugin with that XCode version. If you don't want to reinstall your mac you could install the older OSX/XCode versions inside a virtual machine. |
did you belive that i need to downgrade my macos to 13.6? i think to downgrade only my xcode to 14.3, |
do you try with xcode 15.1 beta? |
I am using the Xcode 15.1 release. I did not test this using the new 15.2 beta in case you are referring to that version. As for your questions about using XCode 14.3 with the latest OSX version, I can't really help you. I tried to use XCode 14.2 on sonoma by calling the executable from the command line which disables the OSX version check but it failed compiling the project, didn't allow you to use external swift libraries and crashed on code completition. |
do you search any forks of this project?
i see one fork that was updated 1 week ago.
i see that modified te soundcontroller.m in ios src directory.
2024-01-08 8:34 GMT-08:00, Malte Köhrer ***@***.***>:
…> do you try with xcode 15.1 beta? the latest beta.
I am using the Xcode 15.1 release. I did not test this using the new 15.2
beta in case you are referring to that version.
As for your questions about using XCode 14.3 with the latest OSX version, I
can't really help you. I tried to use XCode 14.2 on sonoma by calling the
executable from the command line which disables the OSX version check but it
failed compiling the project, didn't allow you to use external swift
libraries and crashed on code completition.
--
Reply to this email directly or view it on GitHub:
#389 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
aditionally i found a way to open xcode 14 in macos in stackoverflow. https://stackoverflow.com/questions/76958016/is-there-a-way-to-run-xcode-14-on-macos-sonoma |
I finally figured out why audio didn't play back for me. This was caused by cordova-plugin-media 7.0 and is not related to XCode 15.1. It seems I accidently updated cordova-plugin-media to 7 while fixing another bug that really was caused by XCode 15. #362 changed the behaviour for parsing file paths. You now need to use paths starting with / instead of "relative" paths or simple filenames. If the file is in www/assets/sounds/theme.mp3 you now need to load it from "/assets/sounds/theme.mp3". Previously you could load it by using "assets/sounds/theme.mp3" but this won't work anymore with that pull request. The documentation isn't fully up to date yet, it still says "order of file search: When only a file name or simple path is provided, iOS searches in the www directory for the file, then in the application's documents/tmp directory:". That's not the case anymore. |
what cordova version do you use? |
my theme is in www/sounds, so i wrote |
can you giveme one example please? i'm use cordova 12.0, maybe do you use cordova 11.1? |
I use Cordova 12/Cordova iOs 7/Cordova Media Plugin 7. The path is looking good. Did you start the playback of the Media?
This is directly copied from my project and works for me:
Note: getAssetPath() would just return /sounds/ for iOs if this was your project. |
getaccetpath is a cordova function or is your function. |
can you test my code in one of your projects? only a test? |
one thing that i see is that event.setVolume(0.9); now is an int. but before this property i had to write like a string. example |
hello, when i tried to replay a local file.mp3 i can't.
i am using cordova plugin media the latest version xcode 15 and macos sonoma 14.1
i tried compile in iphone SE 3rd generation with ios 16.6.1
i loaded file in "sounds/file.mp3"
the file is located in www/sounds/file.mp3
the succes funtion is invoqued, like the audio was playing.
i am using ios platform 7.0.0
thanx, my english is so bad.
The text was updated successfully, but these errors were encountered: