playbackBufferEmpty and spinner

added playbackBufferEmpty logic, moved spinner show/hide to separate
methods.
This commit is contained in:
Erekle
2016-04-29 20:49:14 +04:00
parent 399703dbb2
commit 2c2a73dc83
3 changed files with 43 additions and 18 deletions

View File

@@ -110,6 +110,8 @@
if(videoNode == self.guitarVideoNode){
if(videoNode.playerState == ASVideoNodePlayerStatePlaying){
[videoNode pause];
}else if(videoNode.playerState == ASVideoNodePlayerStateLoading) {
[videoNode pause];
}else{
[videoNode play];
}