Add external reference to file in audio player

This commit is contained in:
Benjamin Verdier 2018-07-27 16:20:45 +02:00
parent 8765e4ab38
commit 60f3f6a121
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

@ -12,11 +12,12 @@
@private
LinphonePlayer *player;
LinphonePlayerCbs *cbs;
NSString *file;
int duration;
BOOL eofReached;
}
@synthesize file;
#pragma mark - Factory
+ (id)audioPlayerWithFilePath:(NSString *)filePath {