|
@@ -119,8 +119,8 @@ NSURL * MKRUrlWithString(NSString *string){
|
|
|
[self preparePlay];
|
|
|
}else{
|
|
|
if (self.state == MKRAVPlayerStateStopped || self.state == MKRAVPlayerStatePause) {
|
|
|
- self.state = MKRAVPlayerStatePlaying;
|
|
|
[self.player play];
|
|
|
+ self.state = MKRAVPlayerStatePlaying;
|
|
|
}else if (self.state == MKRAVPlayerStateBuffering){
|
|
|
if (!self.shouldAutoPlay) {
|
|
|
[self.player play];
|
|
@@ -198,10 +198,10 @@ NSURL * MKRUrlWithString(NSString *string){
|
|
|
}
|
|
|
|
|
|
- (void)pause{
|
|
|
+ [self.player pause];
|
|
|
if (self.state == MKRAVPlayerStatePlaying) {
|
|
|
self.state = MKRAVPlayerStatePause;
|
|
|
}
|
|
|
- [self.player pause];
|
|
|
}
|
|
|
|
|
|
- (void)resetPlayer{
|