From ea9e40b17a3fbd048051230bb8c7744368cb1e48 Mon Sep 17 00:00:00 2001 From: Thong Nguyen Date: Sat, 8 Nov 2014 19:45:26 +0000 Subject: [PATCH] Added progress for live streams in AudioPlayerView --- ExampleApp/ExampleApp/AudioPlayerView.m | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ExampleApp/ExampleApp/AudioPlayerView.m b/ExampleApp/ExampleApp/AudioPlayerView.m index a0c823f..e7498cf 100644 --- a/ExampleApp/ExampleApp/AudioPlayerView.m +++ b/ExampleApp/ExampleApp/AudioPlayerView.m @@ -94,7 +94,7 @@ [stopButton setTitle:@"Stop" forState:UIControlStateNormal]; muteButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; - muteButton.frame = CGRectMake((320 - size.width) - 30, 420, size.width, size.height); + muteButton.frame = CGRectMake((320 - size.width) - 30, 430, size.width, size.height); [muteButton addTarget:self action:@selector(muteButtonPressed) forControlEvents:UIControlEventTouchUpInside]; [muteButton setTitle:@"Mute" forState:UIControlStateNormal]; @@ -180,6 +180,17 @@ return; } + if (audioPlayer.currentlyPlayingQueueItemId == nil) + { + slider.value = 0; + slider.minimumValue = 0; + slider.maximumValue = 0; + + label.text = @""; + + return; + } + if (audioPlayer.duration != 0) { slider.minimumValue = 0;