diff --git a/HyseteriaSamples/HyseteriaSamples.xcodeproj/project.xcworkspace/xcshareddata/HyseteriaSamples.xccheckout b/HyseteriaSamples/HyseteriaSamples.xcodeproj/project.xcworkspace/xcshareddata/HyseteriaSamples.xccheckout new file mode 100644 index 0000000..90f8f87 --- /dev/null +++ b/HyseteriaSamples/HyseteriaSamples.xcodeproj/project.xcworkspace/xcshareddata/HyseteriaSamples.xccheckout @@ -0,0 +1,41 @@ + + + + + IDESourceControlProjectFavoriteDictionaryKey + + IDESourceControlProjectIdentifier + 7AE0F113-DE32-477D-9922-892545828212 + IDESourceControlProjectName + HyseteriaSamples + IDESourceControlProjectOriginsDictionary + + 64A8F64E623EB3EEC13CC1B62654DF0D190B87A8 + github.com:StreetVoice/HysteriaPlayer.git + + IDESourceControlProjectPath + HyseteriaSamples/HyseteriaSamples.xcodeproj + IDESourceControlProjectRelativeInstallPathDictionary + + 64A8F64E623EB3EEC13CC1B62654DF0D190B87A8 + ../../.. + + IDESourceControlProjectURL + github.com:StreetVoice/HysteriaPlayer.git + IDESourceControlProjectVersion + 111 + IDESourceControlProjectWCCIdentifier + 64A8F64E623EB3EEC13CC1B62654DF0D190B87A8 + IDESourceControlProjectWCConfigurations + + + IDESourceControlRepositoryExtensionIdentifierKey + public.vcs.git + IDESourceControlWCCIdentifierKey + 64A8F64E623EB3EEC13CC1B62654DF0D190B87A8 + IDESourceControlWCCName + HysteriaPlayer + + + + diff --git a/HysteriaPlayer/HysteriaPlayer.m b/HysteriaPlayer/HysteriaPlayer.m index 141f972..0440cee 100644 --- a/HysteriaPlayer/HysteriaPlayer.m +++ b/HysteriaPlayer/HysteriaPlayer.m @@ -666,7 +666,6 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object AVPlayerItem *newPlayerItem = [change objectForKey:NSKeyValueChangeNewKey]; AVPlayerItem *lastPlayerItem = [change objectForKey:NSKeyValueChangeOldKey]; if (lastPlayerItem != (id)[NSNull null]) { - self.isInEmptySound = NO; @try { [lastPlayerItem removeObserver:self forKeyPath:@"loadedTimeRanges" context:nil]; [lastPlayerItem removeObserver:self forKeyPath:@"status" context:nil]; @@ -680,6 +679,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object if ([self.delegate respondsToSelector:@selector(hysteriaPlayerCurrentItemChanged:)]) { [self.delegate hysteriaPlayerCurrentItemChanged:newPlayerItem]; } + self.isInEmptySound = NO; } }