1234567891011121314151617181920212223242526272829303132333435363738 |
- /*****************************************************************************
- * VideoViewController.swift
- * VLC for iOS
- *****************************************************************************
- * Copyright (c) 2018 VideoLAN. All rights reserved.
- * $Id$
- *
- * Authors: Carola Nitz <caro # videolan.org>
- *
- * Refer to the COPYING file of the official project for license.
- *****************************************************************************/
- class VLCVideoViewController: VLCMediaViewController {
- override init(services: Services) {
- super.init(services: services)
- setupUI()
- }
- private func setupUI() {
- title = NSLocalizedString("VIDEO", comment: "")
- tabBarItem = UITabBarItem(
- title: NSLocalizedString("VIDEO", comment: ""),
- image: UIImage(named: "TVShowsIcon"),
- selectedImage: UIImage(named: "TVShowsIcon"))
- tabBarItem.accessibilityIdentifier = VLCAccessibilityIdentifier.video
- }
- override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] {
- let movies = VLCMediaCategoryViewController<MLFile>(services: services, subcategory: VLCMediaSubcategories.movies)
- movies.delegate = super.self()
- let episodes = VLCMediaCategoryViewController<MLShowEpisode>(services: services, subcategory: VLCMediaSubcategories.episodes)
- episodes.delegate = super.self()
- let playlists = VLCMediaCategoryViewController<MLLabel>(services: services, subcategory: VLCMediaSubcategories.videoPlaylists)
- playlists.delegate = super.self()
- return [movies, episodes, playlists]
- }
- }
|