Skip to content
/ bell Public

A wrapper of AVFoundation's audio part to provide a more convent play control, used by diumoo as audio core

License

Notifications You must be signed in to change notification settings

diumoo/bell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Bell

A simple wrapper of the AVFoundation's audio part to provide more convenient play controlling and volume fade-in/out effect.

It has been used as the audio core of diumoo

#Usage

Bell is easy to use:

// play an url
[[BellPlayer sharedPlayer] playURL:@"http://url/for/audio/file"];

// play an url with an NSDictionary as user info, this userInfo can be used as the identity of the song, 
[[BellPlayer sharedPlayer] playURL:@"http://url/for/audio/file"
                          userInfo:@{
                                    @"song_id":@"id of the song",
                                    @"subject":@"subject of the song",
                                    }];

// pause
[[BellPlayer sharedPlayer] pause];

// play/resume
[[BellPlayer sharedplayer] play];

BellPlayer will handle audio fade-in/ fade-out effect for you, you can change the duration of fading by set the value of fadingDuration :

[Bellplayer sharedplayer].fadingDuration = 3.0;

#License see LICENSE

About

A wrapper of AVFoundation's audio part to provide a more convent play control, used by diumoo as audio core

Resources

License

Stars

Watchers

Forks

Packages

No packages published