Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

10 years ago by joshg86

Hello there!

I am new to impact, but really enjoying the engine!

I am having problems with background music playing on iOS devices. works perfectly in chrome/desktop safari. I have my music and sfx encoded as both .ogg and .mp3. And i should also say all the sound effects are working perfectly. just no background music in iOS

here is what i'm doing as far as the music goes:


MyGame0 = ig.Game.extend({

bgtune: new ig.Sound( 'media/music/8_bit_music.*', false ),


init: function() {


ig.music.add( 'media/music/8_bit_music.*' );

ig.music.play();

}
});


Thanks so much for your help! much appreciated!

-J

10 years ago by joshg86

worth noting i'm trying this out, coding in brackets, and testing via adobe edge inspect for brackets to an iPhone 5s running iOS 7.0.4

thanks again in advance! : )

10 years ago by dungeonmaster

Do you see any error message in the XCODE Console?

10 years ago by joshg86

hi dungeonmaster, cheers for the reply!

currently, whilst testing this I haven't touched xCode yet. I'm just running it in-browser straight out of Adobe Brackets / Edge Inspect

This will eventually be running out of a phonegap app so will have an Xcode side to compile it in the end.

Is this something that should be done in the xCode project? Is it a Safari thing?

Thanks mate,
Page 1 of 1
« first « previous next › last »