Move resizeMode to prop from style (at request of @vjeux) and add pause

prop
This commit is contained in:
Brent Vatne
2015-04-05 10:17:03 -07:00
parent b8df485c79
commit 011ecff875
4 changed files with 22 additions and 9 deletions

View File

@@ -34,6 +34,15 @@
_playerLayer.videoGravity = mode;
}
- (void)setPause:(BOOL)wantsToPause
{
if (wantsToPause) {
[_player pause];
} else {
[_player play];
}
}
- (void)playerItemDidReachEnd:(NSNotification *)notification {
AVPlayerItem *item = [notification object];