mirror of
https://github.com/yattee/yattee.git
synced 2024-11-14 01:58:24 +00:00
12 lines
370 B
Swift
12 lines
370 B
Swift
import AVKit
|
|
|
|
extension AVPlayerViewController {
|
|
func enterFullScreen(animated: Bool) {
|
|
perform(NSSelectorFromString("enterFullScreenAnimated:completionHandler:"), with: animated, with: nil)
|
|
}
|
|
|
|
func exitFullScreen(animated: Bool) {
|
|
perform(NSSelectorFromString("exitFullScreenAnimated:completionHandler:"), with: animated, with: nil)
|
|
}
|
|
}
|