Skip to content

TVVLCPlayer lets you integrate easily a powerfull video player with playback control views to your tvOS apps.

License

Notifications You must be signed in to change notification settings

kodlian/TVVLCPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

165ddff · Dec 28, 2018

History

41 Commits
Dec 28, 2018
Dec 28, 2018
Dec 28, 2018
Sep 14, 2018
Dec 28, 2018
Dec 28, 2018
Dec 28, 2018
Dec 28, 2018
Dec 28, 2018
Mar 4, 2018
Dec 28, 2018
Dec 28, 2018
Mar 4, 2018
Mar 4, 2018

Repository files navigation

TVVLCPlayer

TVVLCPlayer

TVVLCPlayer lets you integrate easily a powerfull video player with playback control views to your tvOS apps. Based on TVVLCKit, it aims to replace AVPlayerViewController that can read only a limited number of formats.

Features

  • Native look & feel
  • Scrubbling with remote surface touch
  • Jump, fast forward and rewind

Installation

# Carthage
github "kodlian/TVVLCPlayer", "~> 1.1.0"
# CocoaPods
pod "TVVLCPlayer", "~> 1.1.0"

pre_install do |installer|
	# workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
	Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end

Usage

Storyboard

In your storyboard add a reference to the VLCPlayer storyboard from the org.cocoapods.TVVLCPlayer bundle. Then set a media on the playerViewController:

import TVVLCPlayer
...
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
      if let playerViewController = segue.destination as? VLCPlayerViewController {
            let media: VLCMedia = ...
            playerViewController.media = media
      }
}

In code

import TVVLCPlayer
...
let media: VLCMedia = ...
let playerViewController = VLCPlayerViewController.instantiate(media: media)

Todo

  • Audio channels selector
  • Subtitles selector
  • Info views