influencemobile / cordova-adcolony-plugin

MIT License
5 stars 8 forks source link

Upgrading to iOS SDK 2.5.1 and fix Web Audio after advert #9

Open davyboyhayes opened 9 years ago

davyboyhayes commented 9 years ago

Two issues here.

One - Upgrade to latest iOS SDK - Relatively trivial Two - When your app uses audio which is at a different sample rate to when a video is played by Ad Colony (Ad Colony adverts seem to be running at 48khz, and our own audio runs at 44.1khz), the audio in the app after the advert is all distorted. By capturing the sample rate prior to launching the video advert, and then requesting the audio rate you previously had, this fixes the broken audio.