Created
June 9, 2015 10:42
-
-
Save MickaelCruzDB/02389a81bf0bbf8b4b53 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class A: NSViewController { | |
var bgMovie: AVPlayerView = AVPlayerView() | |
var fileName: String = "Water_Demand_Forecasting" | |
@IBOutlet var player: AVPlayerView! | |
@IBOutlet var ZButton: NSButton! | |
extension NSView { | |
func bringSubviewToFront(view: NSView) { | |
view.removeFromSuperview() | |
self.view.addSubview(view) | |
} | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
player.bringSubviewToFront(ZButton) | |
player.addSubview(ZButton) | |
player.wantsLayer = true | |
playVideo(player, fileName: "Water_Demand_Forecasting") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment