Created
June 30, 2015 02:42
-
-
Save nwalter08/6cfa30e042ec3585143f 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
// | |
// ViewController.swift | |
// AllredTube | |
// | |
// Created by Nick Walter on 6/29/15. | |
// Copyright (c) 2015 Nick Walter. All rights reserved. | |
// | |
import UIKit | |
class ViewController: UIViewController, YouTubePlayerDelegate { | |
@IBOutlet weak var thePlayer: YouTubePlayerView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. | |
self.thePlayer.delegate = self | |
self.thePlayer.loadVideoID("VnoWu05natE") | |
} | |
func playerReady(videoPlayer: YouTubePlayerView) { | |
self.thePlayer.play() | |
} | |
func playerQualityChanged(videoPlayer: YouTubePlayerView, playbackQuality: YouTubePlaybackQuality) { | |
} | |
func playerStateChanged(videoPlayer: YouTubePlayerView, playerState: YouTubePlayerState) { | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment