Latest 1.0.2
Homepage https://github.com/funzin/FNVideoView
License MIT
Platforms ios 8.0, requires ARC
Authors

Play the video on the background of the view

Features

Play the video on the background of the view

GIF

How to use

  1. Add Video
    [Build Phase]→[Copy Bundle Resources]→Tapped Plus Button

AddVideo

  1. Write Code

    import FNVideoView

    when using storyboard

    @IBOutlet fileprivate var videoView: FNVideoView!
    
    override func viewDidLoad() {
        super.viewDidLoad()
    
        let url = URL(fileURLWithPath: Bundle.main.path(forResource: "movie", ofType: "mp4")!)
        self.videoView.setPlayer(videoURL: url)
        videoView.loopPlay()
    
    }

    when not using storyboard

    override func viewDidLoad() {
        super.viewDidLoad()
    
        let url = URL(fileURLWithPath: Bundle.main.path(forResource: "movie", ofType: "mp4")!)
        let videoView = FNVideoView(frame: self.view.frame, videoURL: url)
        self.view.addSubview(videoView)
        videoView.loopPlay()
    
    }

Runtime Requirements

iOS8.0 or later
Xcode 8.2 – Swift3

Installation and Setup

Installing with Carthage

Just add to your Cartfile:

github "funzin/FNVideoView"

Installing with CocoaPods

To integrate FNVideoView into your Xcode project using CocoaPods, specify it in your Podfile and run pod install.

platform :ios, '8.0'
use_frameworks!
pod "FNVideoView"

Contribution

Please file issues or submit pull requests for anything you’d like to see! We’re waiting! :)

License

FNVideoView is released under the MIT license. Go read the LICENSE file for more information.

Latest podspec

{
    "name": "FNVideoView",
    "version": "1.0.2",
    "summary": "Play the video on the background of the view",
    "description": "- Play the video on the background of the view",
    "homepage": "https://github.com/funzin/FNVideoView",
    "license": {
        "type": "MIT",
        "file": "FILE_LICENSE"
    },
    "authors": {
        "nakazawa fumito": "[email protected]"
    },
    "social_media_url": "http://twitter.com/fufunzin",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/funzin/FNVideoView.git",
        "tag": "1.0.2"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}",
        "FNVideoView/**/*.swift"
    ],
    "exclude_files": "Classes/Exclude",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This