-
-
Save krizzu/c85aee741f6ff0da6f2a8958af127a7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension VideoGalleryViewController: ControlsViewControllerDelegate { | |
var hasNextVideo: Bool { | |
get { | |
return currentVideoIndex < videos.count - 1 | |
} | |
} | |
func playNextVideo() { | |
trackSkippedVideo() | |
updateActiveVideo(currentVideoIndex + 1) | |
} | |
func handleExitFullScreenButtonPressed() { | |
if isIphone { | |
handleFullscreenRotation() | |
} else { | |
dismissFullscreenViewController() | |
} | |
} | |
func handleEnterFullScreenButtonPressed() { | |
if isIphone { | |
handleFullscreenRotation() | |
} else { | |
showFullscreenViewController() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment