Closed djiangnz closed 8 years ago
Hey @lastObject ! :smile:
Ha, so the "system player" name refers to the framework that this library wraps up — System Sound Services — not to playing actual predefined sounds in AudioServices.
None of your suggestions will work because they are searching [NSBundle mainBundle]
.
I'm not sure if it's possible to play these predefined sounds on iOS — and it's probably against Apple's guidelines. At least, it probably wouldn't be a good user experience. You should really use this for your own sound effects.
In any case, SystemSoundID
is simply a UInt32
, so you could probably pass the SoundIDs listed in that wiki page to play them — but this would require access to JSQSystemSoundPlayer
private methods.
Oh, actually I just tried this and it worked.
If you assign the SoundIDs from the wiki to here, then it works. :tada:
For example:
SystemSoundID soundID = 1000; // new-mail.caf
Maybe this would be cool to support. I've opened #30 to track this.
@jessesquires
yes, that is what i want. i ll try, thanks
hi @jessesquires
i try user
jsqsystemsoundplayer
to play system alert, as http://iphonedevwiki.net/index.php/AudioServicesbut it doesn't work.
i tried,
tried
tried
this repo called system player, so i reckon it should work. thanks for you help