MBVideoPlayer
A video player on top of AVQueuePlayer with custom header, playlist items, play, pause, seek to slider, time, resize to fullscreen, forward, backward horizontal, vertical capabilities.
Portrait | Portrait Full Screen | Landscape Full Screen |
---|---|---|
![]() |
![]() |
![]() |
Features
- ✅ Support Both Horizontal and Vertical Orientation.
- ✅ Custom Header view which in configurable.
- ✅ Custom Theme which will control your player colors, fonts etc.
- ✅ Custom Configuration which will control player settings.
- ✅ Can be embedded within a view or be presented in full screen.
- ✅ option to add custom playlist with title and thumbnail.
- ✅ Include play, pause, forward, backward, fullscreen, timer and playlist functionalities.
Requirements
- iOS 13.0
- Swift 5.0
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Installation
Manually
CocoaPods
MBVideoPlayer is available through CocoaPods. To install
it, simply add the following line to your Podfile:
Usage
We can initialize it via Storyboard as well as from the code.
Using StoryBoard
First of all assign class MBVideoPlayer
to UIView in Storyboard and then make an out of it.
@IBOutlet weak var videoPlayerView: MBVideoPlayerView!
then create playlist using below code.