Latest | 1.0.2 |
---|---|
Homepage | https://github.com/josipbernat/JBSoundRouter |
License | MIT |
Platforms | ios 8.0, requires ARC |
Authors |
Simple class for routing sounds to speaker / phone speaker. Made because to solve webRTC routing problems.
Installation with CocoaPods
CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like JBMessage in your projects.
Podfile
platform :ios, '8.0'
pod 'JBSoundRouter'
Note
After a bit of strugling I’ve realized that integration with CocoaPods isn’t so stabile. Please avoid it until 0.36 goes out of beta.
Objective-C
If your want to use JBSoundRouter inside Objective-C class please import JBSoundRouterDefines in your Project-Bridging-Header.h
#import "JBSoundRouterDefines.h"
Swap to regular (the one near Lightening connector) speaker
Swift
JBSoundRouter.routeSound(JBSoundRoute.Speaker)
Objective-C
[JBSoundRouter routeSound:JBSoundRouteSpeaker];
Swap to phone (ear) speake
Swift
JBSoundRouter.routeSound(JBSoundRoute.PhoneSpeaker)
Objective-C
[JBSoundRouter routeSound:JBSoundRoutePhoneSpeaker];
Latest podspec
{ "name": "JBSoundRouter", "version": "1.0.2", "summary": "Simple class for routing sounds to speaker / phone speaker. Made because to solve webRTC routing problems.", "homepage": "https://github.com/josipbernat/JBSoundRouter", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "Josip Bernat": "[email protected]" }, "social_media_url": "http://twitter.com/josipbernat", "platforms": { "ios": "8.0" }, "source": { "git": "https://github.com/josipbernat/JBSoundRouter.git", "tag": "v1.0.2" }, "source_files": "JBSoundRouter/JBSoundRouter/**/*.{h,m,swift}", "requires_arc": true }
Mon, 29 Feb 2016 23:46:02 +0000