Skip to content

Commit

Permalink
Removed .DS_Store from the repo. Minor cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
kperusko committed Nov 19, 2015
1 parent ac8c820 commit e524b18
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Binary file removed .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ xcuserdata
*.moved-aside
*.xcuserstate
*.xcscmblueprint
.DS_Store

## Obj-C/Swift specific
*.hmap
Expand Down
4 changes: 3 additions & 1 deletion DesignStudioExpress/Views/IntroViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class IntroViewController: UIViewController {
@IBOutlet weak var faqButton: UIButtonLightBlue!

lazy var playerLayer:AVPlayerLayer = self.initVideoPlayer()
let videoFileName = "Intro"
let videoFileType = "mp4"

override func viewDidLoad() {
super.viewDidLoad()
Expand All @@ -42,7 +44,7 @@ class IntroViewController: UIViewController {
}

func initVideoPlayer() -> AVPlayerLayer {
let videoBundle = NSBundle.mainBundle().pathForResource("Intro", ofType: "mp4")
let videoBundle = NSBundle.mainBundle().pathForResource(videoFileName, ofType: videoFileType)
let player = AVPlayer(URL: NSURL(fileURLWithPath: videoBundle!))
player.muted = true
player.allowsExternalPlayback = false
Expand Down

0 comments on commit e524b18

Please sign in to comment.