ZFPlayer alternatives and similar libraries
Based on the "Video" category.
Alternatively, view ZFPlayer alternatives based on common mentions on social networks and blogs.
-
LFLiveKit
LaiFeng IOS Live Kit,H264 and AAC Hard coding,support GPUImage Beauty, rtmp transmission,weak network lost frame,Dynamic switching rate -
BMPlayer
A video player for iOS, based on AVPlayer, support the horizontal, vertical screen. support adjust volume, brightness and seek by slide, support subtitles. -
Swift-YouTube-Player
Swift library for embedding and controlling YouTube videos in your iOS applications via WKWebView! -
YoutubeKit
YoutubeKit is a video player that fully supports Youtube IFrame API and YoutubeDataAPI for easily create a Youtube app -
VGPlayer
DISCONTINUED. A simple iOS video player in Swift,Support play local and network,Background playback mode. -
VIMVideoPlayer
DISCONTINUED. Deprecated: Please use [PlayerKit]( https://github.com/vimeo/PlayerKit) instead. -
AVAnimator
AVAnimator is an iOS library that makes it easy to implement non-trivial animated/video content in iOS -
ABMediaView
Media view which subclasses UIImageView, and can display & load images, videos, GIFs, and audio and from the web, and has functionality to minimize from fullscreen, as well as show GIF previews for videos.
InfluxDB - Power Real-Time Data Analytics at Scale
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ZFPlayer or a related project?
README
Before this, you used ZFPlayer, are you worried about encapsulating avplayer instead of using or modifying the source code to support other players, the control layer is not easy to customize, and so on? In order to solve these problems, I have wrote this player template, for player SDK you can conform the ZFPlayerMediaPlayback
protocol, for control view you can conform the ZFPlayerMediaControl
protocol, can custom the player and control view.
🔨 Requirements
- iOS 7+
- Xcode 8+
📲 Installation
ZFPlayer is available through CocoaPods. To install it,use player template simply add the following line to your Podfile:
pod 'ZFPlayer', '~> 4.0'
Use default controlView simply add the following line to your Podfile:
pod 'ZFPlayer/ControlView', '~> 4.0'
Use AVPlayer simply add the following line to your Podfile:
pod 'ZFPlayer/AVPlayer', '~> 4.0'
Use ijkplayer simply add the following line to your Podfile:
pod 'ZFPlayer/ijkplayer', '~> 4.0'
IJKMediaFramework SDK support cocoapods
🐒 Usage
ZFPlayerController
Main classes,normal style initialization and list style initialization (tableView, collection,scrollView)
Normal style initialization
ZFPlayerController *player = [ZFPlayerController playerWithPlayerManager:playerManager containerView:containerView];
ZFPlayerController *player = [[ZFPlayerController alloc] initwithPlayerManager:playerManager containerView:containerView];
List style initialization
ZFPlayerController *player = [ZFPlayerController playerWithScrollView:tableView playerManager:playerManager containerViewTag:containerViewTag];
ZFPlayerController *player = [ZFPlayerController alloc] initWithScrollView:tableView playerManager:playerManager containerViewTag:containerViewTag];
ZFPlayerController *player = [ZFPlayerController playerWithScrollView:scrollView playerManager:playerManager containerView:containerView];
ZFPlayerController *player = [ZFPlayerController alloc] initWithScrollView:tableView playerManager:playerManager containerView:containerView];
ZFPlayerMediaPlayback
For the playerMnager,you must conform ZFPlayerMediaPlayback
protocol,custom playermanager can supports any player SDK,such as AVPlayer
,MPMoviePlayerController
,ijkplayer
,vlc
,PLPlayerKit
,KSYMediaPlayer
and so on,you can reference the ZFAVPlayerManager
class.
Class<ZFPlayerMediaPlayback> *playerManager = ...;
ZFPlayerMediaControl
This class is used to display the control layer, and you must conform the ZFPlayerMediaControl protocol, you can reference the ZFPlayerControlView
class.
UIView<ZFPlayerMediaControl> *controlView = ...;
player.controlView = controlView;
📷 Screenshots
Reference
👨🏻💻 Author
- Weibo: @任子丰
- Email: [email protected]
- QQ群: 123449304
👮🏻 License
ZFPlayer is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the ZFPlayer README section above
are relevant to that project's source code only.