libgdx iOS robovm no sound unknown ext audio - ios

Tearing my hair out trying to get some sound working on my 99% completed game.
I am using libgdx 1.6.1 eclipse juno with the latest robovm plugin for eclipse, I am testing on my iPhone 4s (I have apple dev status).
I am using mp3s but have converted to ogg to test my problem. Unfortunately, The same problem came back so I switched back to MP3's.
The Sound work fine in desktop and android versions based on the same core code.
The error i am getting is the following:
2015-08-03 20:24:51.953 IOSLauncher[2219:286610] OAL Error:
-[OALAudioFile initWithUrl:reduceToMono:]: Could not open url file:///private/var/mobile/Containers/Bundle/Application/AEB5D1A2-B3C7-41A6-9414-351CE311EE47/IOSLauncher.app/sounds/g1.mp3
(error code 0x7768743f: Unknown ext audio error) 2015-08-03
20:24:51.955 IOSLauncher[2219:286610] OAL Error: -[OALSimpleAudio
internalPreloadEffect:reduceToMono:]: Could not load effect
/private/var/mobile/Containers/Bundle/Application/AEB5D1A2-B3C7-41A6-9414-351CE311EE47/IOSLauncher.app/sounds/g1.mp3
Any help would be appreciated and I can provide lots more info if needed!
Thanks
Phil

Ok I have solved my issue by a process of elimination.
In my iOS project the only place iOS picks up the sounds is in the directory /data/sounds
It now works fully with the mp3s I have and no other changes were needed.It works on the iOS simulator and on the real device.
My game project linked the sounds to the android project through assets which clearly does not work in iOS!
I hope this helps someone!
Thanks Phil.

Related

opentok streaming error in Xcode 9.0: OT.Publisher.onStreamAvailableError

I am using opentok in my Hybrid ionic app for live streaming.
I am facing issue that I am unable to see live streaming in ios app, although its working on my android app which is already published on Google Play,
Now I need to publish my ios app but I am stuck with these errors showing in Xcode
"ERROR: OT.Publisher.onStreamAvailableError OT_MEDIA_ERR_ABORTED: Argument 1 ('mediaStream') to webkitAudioContext.createMediaStreamSource must be an instance of MediaStream"
"ERROR: OT.exception :: title: Unable to Publish (1500) msg: GetUserMedia"
Device I am using is iPhone 6 (OS 11.0, Safari 11.0)
I had same problem.
For me, problem was in publisher options for OT.initPublisher.
Option "resolution" was redundant. It crashed everythin for ios only, I commented it -ant everything is ok now. Good luck!
You can use the Cordova OpenTok Plugin to add live video to your Ionic applications:
https://github.com/opentok/cordova-plugin-opentok/
The plugin allows you to publish, subscribe, and use the OpenTok Signaling API on both iOS and Android. For Ionic samples, take a look at the following repo: https://github.com/opentok/opentok-ionic-samples

Audio Playback Error - XCODE 7 (Swift 2.0)

I am new to XCODE and Swift 2.0 programming. When I try to test the added audio my app I gives me the error below.
-See screenshot for error-
Screenshot of Xcode 7 Simulator error when trying to play Sound
Can someone please assist me in fixing this so that I can test my app in the simulator.
Thank you.
Issue was with SoundFlower. Removed SoundFlower and sound started to work again.

MPMediaLibrary.DidChangeNotification not working

This question is related to Xamarin.iOS.
I have been trying since many days to get MPMediaLibrary.Notifications.ObserveDidChange to work without success. I tried almost everything. Suspecting something bad with Objective-C binding, I tried direct objc calls too using Messaging API. Finally, I built a Native Library and made sure that it works by testing it with pure objective-c app. Native one with Objective-C works without problem. However, the same Library when used with Xamarin.iOS doesn't get MPMediaLibraryDidChangeNotification. I have created in-built selector etc within Native library so that I just call a 'C' function without argument and it works with objective-c app. However, when used with Xamarin, the same doesn't work. I have taken care of calling beginGeneratingLibraryChangeNotifications().
Some people may suspect that My selector/delgate is not being called because of wrong use. However, every other notification is able to call my selector except this one. So syntax is not an issue, I suppose.
After all the efforts, I presume that there is something wrong in Xamarin settings, which is stopping me from getting MPMediaLibraryDidChangeNotification . I really dont know what exactly is it. So my question is - Can you guys get this notification ?
My test phone - iPhone6-8.0.2, Xamarin Studio Version 5.5.3 (build 6) Installation UUID: d84b8c6d-f992-4f19-8a35-c14bcd08420e Runtime: Mono 3.10.0 ((detached/e204655) GTK+ 2.24.23 (Raleigh theme) Package version: 310000023 Apple Developer Tools Xcode 6.1 (6604) Build 6A1052d Xamarin.iOS Version: 8.4.0.16 (Indie Edition) Hash: 80e9ff7 Branch: Build date: 2014-10-22 15:09:12-0400
Thanks, Vinay
For the Record, I am posting the answer.
Since 64 bit transition, The MediaLibrary change notification is stopped for 32 bit apps. If you build your app for 64 bit iOS, everything is fine. However, 64 bit devices with 32 bit applications won't receive these notification. I have tested it thoroughly on iPhone6. So I think this is iOS bug, which Apple needs to rectify. All the Music Player applications on App Store are unable to update library anymore since they are 32 bit.
For Xamarin Users, use Unified API for proper notification support.

Cordova.js errors

I'm getting the following errors when testing my app on chrome:
GET file:///www/cordova_plugins.js net::ERR_FILE_NOT_FOUND cordova.js:6189
OPTIONS file:///!gap_exec?1397986793096 net::ERR_FILE_NOT_FOUND cordova.js:1034
deviceready has not fired after 5 seconds. cordova.js:5720
Channel not fired: onCordovaConnectionReady cordova.js:5720
Channel not fired: onCordovaInfoReady
People are asking similar questions, but I can't seem to get the error to go away. Currently I'm developing on iOS and I am not using any plugins. Can anyone shed some light on this?
you can not test your application on chrome. cordova.js file will be embedded after building the project. try building and deploying your app on the device or emulator.

NullPointerException on Running

I have been working with the streaming media start to finish project,which i got from
http://supportforums.blackberry.com/t5/Java-Development/Streaming-media-Start-to-finish/ta-p/488255 ...
the project has been working fine till i put in a Playcontrol it worked but when i click on play it gives an error,i had to clean the simulator because it gave me this error i.e
Error inside JVM: Access violation reading from 0x0000000C.
On fixing that by cleaning the simulator i ran the streaming media code and it complied perfectly but when i click on the app itself it gives a NullPointerException.
Could this be from the PlayerClass i implemented CustomButtons or from the simulator itself? i can post the PlayerClass Code here if anyone offers to assist
Please i need help!
Thanks

Resources