Full Screen Video From Video Playing in UITableViewCell
Given the following class where the video will be played in the videoContainer view, videoContainer will only be as tall as the cell it's contained in.
class VideoCell: UITableViewCell {
@IBOutlet weak var videoContainer!
let player: VLCMediaPlayer = VLCMediaPlayer()
func loadVideo(url: URL) {
player.media = VLCMedia(url: url)
player.drawable = videoContainer
}
func fullScreenTapped(sender: UIButton) {
// how do I make player.drawable full screen
}
}
When the user taps a button to make the video go full screen (fullScreenTapped) how do I modify the player to show up in full screen?