{"id":1572,"url":"https://github.com/takuoka/VideoPager","last_synced_at":"2025-08-02T23:32:00.589Z","repository":{"id":56925966,"uuid":"68078951","full_name":"takuoka/VideoPager","owner":"takuoka","description":"Paging Video UI, and some control components is available.","archived":false,"fork":false,"pushed_at":"2016-10-10T19:19:32.000Z","size":200217,"stargazers_count":58,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-29T04:48:45.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takuoka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-13T05:59:26.000Z","updated_at":"2024-02-22T13:46:18.000Z","dependencies_parsed_at":"2022-08-21T06:20:13.231Z","dependency_job_id":null,"html_url":"https://github.com/takuoka/VideoPager","commit_stats":null,"previous_names":["entotsu/videopager"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuoka%2FVideoPager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuoka%2FVideoPager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuoka%2FVideoPager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuoka%2FVideoPager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuoka","download_url":"https://codeload.github.com/takuoka/VideoPager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503095,"owners_count":17930509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:15:50.168Z","updated_at":"2024-12-06T17:30:37.086Z","avatar_url":"https://github.com/takuoka.png","language":"Swift","funding_links":[],"categories":["Media"],"sub_categories":["Video"],"readme":"# VideoPager\n\n[![CI Status](http://img.shields.io/travis/Takuya Okamoto/VideoPager.svg?style=flat)](https://travis-ci.org/Takuya Okamoto/VideoPager)\n[![Version](https://img.shields.io/cocoapods/v/VideoPager.svg?style=flat)](http://cocoapods.org/pods/VideoPager)\n[![License](https://img.shields.io/cocoapods/l/VideoPager.svg?style=flat)](http://cocoapods.org/pods/VideoPager)\n[![Platform](https://img.shields.io/cocoapods/p/VideoPager.svg?style=flat)](http://cocoapods.org/pods/VideoPager)\n\n## Demo (GIF)\n\n\u003cimg src=\"https://github.com/entotsu/VideoPager/blob/master/sample_gif/1.gif?raw=true\" alt=\"demo\" title=\"demo\" width=\"240\" /\u003e\n\n* [**Demo2**](https://github.com/entotsu/VideoPager/blob/master/sample_gif/2.gif)\n* [**Demo3**](https://github.com/entotsu/VideoPager/blob/master/sample_gif/3.gif)\n\n## Available UI\n\n* seekSlider: UISlider\n\n* playIcon: UIImage\n\n* pauseIcon: UIImage\n\n* playButton: UIButton\n\n* progressView: UIProgressView\n\n* currentTimeLabel: UILabel\n\n* remainTimeLabel: UILabel\n\n* activityIndicator: UIActivityIndicatorView\n\n* playSpeedButton: UIButton\n\n* speedRateList: [Float]\n\n* frontSkipButton: UIButton\n\n* backSkipButton: UIButton\n\n* topShadowHeight: CGFloat\n\n* bottomShadowHeight: CGFloat\n\n* shadowOpacity: CGFloat\n\n* fadeEnabledViews: [UIView]\n\n# Simple Usage\n\n```swift\nlet videoPager = VideoPagerViewController()\n\nvideoPager.updateUrls(urls)\n```\n\n# Custom Cell\n\n```swift\nclass YourCell: VideoPagerCell {\n  // your implementation\n}\n```\n\n## VideoPagerCustomUI\nYou can easily implement control UI by conforming to [`VideoPagerCustomUI`](https://github.com/entotsu/VideoPager/blob/master/Docs/API.md#available-protocols-of-videopagercustomui).\n\n```swift\nclass YourCell: VideoPagerCell, VideoPagerCustomUI {\n\n    // VideoPagerCustomUI\n    @IBOutlet weak var playButton: UIButton!\n    @IBOutlet weak var seekSlider: UISlider!\n}\n```\n\n\n# Custom VideoPagerViewController\n\n``` swift\n\nclass CustomVideoPager: VideoPagerViewController {\n\n    required init?(coder aDecoder: NSCoder) {\n        // initialize with your cell\n        let cellNib = UINib(nibName: \"CustomCell\", bundle: nil)\n        super.init(coder: aDecoder, videoPagerCellNib: cellNib)\n    }\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        // set urls\n        updateUrls(urls)\n    }\n\n    override func configureCell(cell: VideoPagerCell, index: Int) {\n        super.configureCell(cell, index: index)\n        // you can configure your cell with this method\n        if let cell = cell as? CustomCell {\n            cell.urlLabel.text = urls[index]\n        }\n    }\n\n    override func didSelectItemAtIndex(index: Int) {\n        super.didSelectItemAtIndex(index)\n        // you can add tap action\n        activeCell?.playOrPause()\n    }\n}\n```\n\n\n# Documentation\n\n[API document is here.](https://github.com/entotsu/VideoPager/blob/master/Docs/API.md)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\niOS8.0~\n\n## Installation\n\nVideoPager is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"VideoPager\"\n```\n\nand import to your swift file.\n\n```swift\nimport VideoPager\n```\n\n## Author\n\nTakuya Okamoto, blackn.red42@gmail.com\n\n## License\n\nVideoPager is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuoka%2FVideoPager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuoka%2FVideoPager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuoka%2FVideoPager/lists"}