mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 14:16:59 +02:00
Custom audio call sounds
This commit is contained in:
@@ -216,6 +216,27 @@
|
||||
self.gradientMaskContainerView.hidden = self.overlayContainerView.isHidden;
|
||||
}
|
||||
|
||||
#pragma mark - Sounds
|
||||
|
||||
- (NSURL*)audioURLWithName:(NSString*)soundName
|
||||
{
|
||||
NSURL *audioUrl;
|
||||
|
||||
NSString *path = [[NSBundle mainBundle] pathForResource:soundName ofType:@"mp3"];
|
||||
if (path)
|
||||
{
|
||||
audioUrl = [NSURL fileURLWithPath:path];
|
||||
}
|
||||
|
||||
// Use by default the matrix kit sounds.
|
||||
if (!audioUrl)
|
||||
{
|
||||
audioUrl = [super audioURLWithName:soundName];
|
||||
}
|
||||
|
||||
return audioUrl;
|
||||
}
|
||||
|
||||
#pragma mark - Actions
|
||||
|
||||
- (IBAction)onButtonPressed:(id)sender
|
||||
|
||||
Reference in New Issue
Block a user