From 60f3f6a121bb94590014dee3a9e636257aaf7fb9 Mon Sep 17 00:00:00 2001 From: Benjamin Verdier Date: Fri, 27 Jul 2018 16:20:45 +0200 Subject: [PATCH] Add external reference to file in audio player --- Classes/LinphoneUI/UILinphoneAudioPlayer.h | 1 + Classes/LinphoneUI/UILinphoneAudioPlayer.m | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/LinphoneUI/UILinphoneAudioPlayer.h b/Classes/LinphoneUI/UILinphoneAudioPlayer.h index e77e5319e..ef9e5ce5a 100644 --- a/Classes/LinphoneUI/UILinphoneAudioPlayer.h +++ b/Classes/LinphoneUI/UILinphoneAudioPlayer.h @@ -12,6 +12,7 @@ @property (weak, nonatomic) IBOutlet UIButton *stopButton; @property (weak, nonatomic) IBOutlet UILabel *timeLabel; @property (weak, nonatomic) IBOutlet UIProgressView *timeProgress; +@property (weak, nonatomic) NSString *file; + (id)audioPlayerWithFilePath:(NSString *)filePath; - (void)close; diff --git a/Classes/LinphoneUI/UILinphoneAudioPlayer.m b/Classes/LinphoneUI/UILinphoneAudioPlayer.m index 542cf28d5..8595a5fc0 100644 --- a/Classes/LinphoneUI/UILinphoneAudioPlayer.m +++ b/Classes/LinphoneUI/UILinphoneAudioPlayer.m @@ -12,11 +12,12 @@ @private LinphonePlayer *player; LinphonePlayerCbs *cbs; - NSString *file; int duration; BOOL eofReached; } +@synthesize file; + #pragma mark - Factory + (id)audioPlayerWithFilePath:(NSString *)filePath {