Progress and seek now supported

This commit is contained in:
Thong Nguyen
2014-01-31 12:22:22 +00:00
parent 511185c929
commit e7a952d248
3 changed files with 185 additions and 275 deletions
+3 -5
View File
@@ -70,6 +70,8 @@
[queueShortFileButton addTarget:self action:@selector(queueShortFileButtonTouched) forControlEvents:UIControlEventTouchUpInside];
[queueShortFileButton setTitle:@"Queue short file" forState:UIControlStateNormal];
size = CGSizeMake(90, 50);
playButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
playButton.frame = CGRectMake(30, 380, size.width, size.height);
[playButton addTarget:self action:@selector(playButtonPressed) forControlEvents:UIControlEventTouchUpInside];
@@ -190,10 +192,6 @@
return;
}
[audioPlayer dispose];
return;
if (audioPlayer.state == STKAudioPlayerStatePaused)
{
[audioPlayer resume];
@@ -259,7 +257,7 @@
[self updateControls];
}
-(void) audioPlayer:(STKAudioPlayer*)audioPlayer didEncounterError:(STKAudioPlayerErrorCode)errorCode
-(void) audioPlayer:(STKAudioPlayer*)audioPlayer unexpectedError:(STKAudioPlayerErrorCode)errorCode
{
[self updateControls];
}