├── .gitignore ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── FDFullscreenPopGesture │ │ ├── FDFullscreenPopGesture │ │ │ ├── UINavigationController+FDFullscreenPopGesture.h │ │ │ └── UINavigationController+FDFullscreenPopGesture.m │ │ ├── LICENSE │ │ └── README.md │ ├── Headers │ │ ├── Private │ │ │ ├── FDFullscreenPopGesture │ │ │ │ └── UINavigationController+FDFullscreenPopGesture.h │ │ │ ├── MJRefresh │ │ │ │ ├── MJRefresh.h │ │ │ │ ├── MJRefreshAutoFooter.h │ │ │ │ ├── MJRefreshAutoGifFooter.h │ │ │ │ ├── MJRefreshAutoNormalFooter.h │ │ │ │ ├── MJRefreshAutoStateFooter.h │ │ │ │ ├── MJRefreshBackFooter.h │ │ │ │ ├── MJRefreshBackGifFooter.h │ │ │ │ ├── MJRefreshBackNormalFooter.h │ │ │ │ ├── MJRefreshBackStateFooter.h │ │ │ │ ├── MJRefreshComponent.h │ │ │ │ ├── MJRefreshConfig.h │ │ │ │ ├── MJRefreshConst.h │ │ │ │ ├── MJRefreshFooter.h │ │ │ │ ├── MJRefreshGifHeader.h │ │ │ │ ├── MJRefreshHeader.h │ │ │ │ ├── MJRefreshNormalHeader.h │ │ │ │ ├── MJRefreshStateHeader.h │ │ │ │ ├── NSBundle+MJRefresh.h │ │ │ │ ├── UIScrollView+MJExtension.h │ │ │ │ ├── UIScrollView+MJRefresh.h │ │ │ │ └── UIView+MJExtension.h │ │ │ └── ZFPlayer │ │ │ │ ├── UIImageView+ZFCache.h │ │ │ │ ├── UIScrollView+ZFPlayer.h │ │ │ │ ├── UIView+ZFFrame.h │ │ │ │ ├── ZFAVPlayerManager.h │ │ │ │ ├── ZFFloatView.h │ │ │ │ ├── ZFIJKPlayerManager.h │ │ │ │ ├── ZFKVOController.h │ │ │ │ ├── ZFLandScapeControlView.h │ │ │ │ ├── ZFLandscapeRotationManager.h │ │ │ │ ├── ZFLandscapeRotationManager_iOS15.h │ │ │ │ ├── ZFLandscapeRotationManager_iOS16.h │ │ │ │ ├── ZFLandscapeViewController.h │ │ │ │ ├── ZFLandscapeViewController_iOS15.h │ │ │ │ ├── ZFLandscapeWindow.h │ │ │ │ ├── ZFLoadingView.h │ │ │ │ ├── ZFNetworkSpeedMonitor.h │ │ │ │ ├── ZFOrientationObserver.h │ │ │ │ ├── ZFPersentInteractiveTransition.h │ │ │ │ ├── ZFPlayer.h │ │ │ │ ├── ZFPlayerConst.h │ │ │ │ ├── ZFPlayerControlView.h │ │ │ │ ├── ZFPlayerController.h │ │ │ │ ├── ZFPlayerGestureControl.h │ │ │ │ ├── ZFPlayerLogManager.h │ │ │ │ ├── ZFPlayerMediaControl.h │ │ │ │ ├── ZFPlayerMediaPlayback.h │ │ │ │ ├── ZFPlayerNotification.h │ │ │ │ ├── ZFPlayerStatusBar.h │ │ │ │ ├── ZFPlayerView.h │ │ │ │ ├── ZFPortraitControlView.h │ │ │ │ ├── ZFPortraitViewController.h │ │ │ │ ├── ZFPresentTransition.h │ │ │ │ ├── ZFReachabilityManager.h │ │ │ │ ├── ZFSliderView.h │ │ │ │ ├── ZFSmallFloatControlView.h │ │ │ │ ├── ZFSpeedLoadingView.h │ │ │ │ ├── ZFUtilities.h │ │ │ │ └── ZFVolumeBrightnessView.h │ │ └── Public │ │ │ ├── FDFullscreenPopGesture │ │ │ └── UINavigationController+FDFullscreenPopGesture.h │ │ │ ├── MJRefresh │ │ │ ├── MJRefresh.h │ │ │ ├── MJRefreshAutoFooter.h │ │ │ ├── MJRefreshAutoGifFooter.h │ │ │ ├── MJRefreshAutoNormalFooter.h │ │ │ ├── MJRefreshAutoStateFooter.h │ │ │ ├── MJRefreshBackFooter.h │ │ │ ├── MJRefreshBackGifFooter.h │ │ │ ├── MJRefreshBackNormalFooter.h │ │ │ ├── MJRefreshBackStateFooter.h │ │ │ ├── MJRefreshComponent.h │ │ │ ├── MJRefreshConfig.h │ │ │ ├── MJRefreshConst.h │ │ │ ├── MJRefreshFooter.h │ │ │ ├── MJRefreshGifHeader.h │ │ │ ├── MJRefreshHeader.h │ │ │ ├── MJRefreshNormalHeader.h │ │ │ ├── MJRefreshStateHeader.h │ │ │ ├── NSBundle+MJRefresh.h │ │ │ ├── UIScrollView+MJExtension.h │ │ │ ├── UIScrollView+MJRefresh.h │ │ │ └── UIView+MJExtension.h │ │ │ └── ZFPlayer │ │ │ ├── UIImageView+ZFCache.h │ │ │ ├── UIScrollView+ZFPlayer.h │ │ │ ├── UIView+ZFFrame.h │ │ │ ├── ZFAVPlayerManager.h │ │ │ ├── ZFFloatView.h │ │ │ ├── ZFIJKPlayerManager.h │ │ │ ├── ZFKVOController.h │ │ │ ├── ZFLandScapeControlView.h │ │ │ ├── ZFLandscapeRotationManager.h │ │ │ ├── ZFLandscapeRotationManager_iOS15.h │ │ │ ├── ZFLandscapeRotationManager_iOS16.h │ │ │ ├── ZFLandscapeViewController.h │ │ │ ├── ZFLandscapeViewController_iOS15.h │ │ │ ├── ZFLandscapeWindow.h │ │ │ ├── ZFLoadingView.h │ │ │ ├── ZFNetworkSpeedMonitor.h │ │ │ ├── ZFOrientationObserver.h │ │ │ ├── ZFPersentInteractiveTransition.h │ │ │ ├── ZFPlayer.h │ │ │ ├── ZFPlayerConst.h │ │ │ ├── ZFPlayerControlView.h │ │ │ ├── ZFPlayerController.h │ │ │ ├── ZFPlayerGestureControl.h │ │ │ ├── ZFPlayerLogManager.h │ │ │ ├── ZFPlayerMediaControl.h │ │ │ ├── ZFPlayerMediaPlayback.h │ │ │ ├── ZFPlayerNotification.h │ │ │ ├── ZFPlayerStatusBar.h │ │ │ ├── ZFPlayerView.h │ │ │ ├── ZFPortraitControlView.h │ │ │ ├── ZFPortraitViewController.h │ │ │ ├── ZFPresentTransition.h │ │ │ ├── ZFReachabilityManager.h │ │ │ ├── ZFSliderView.h │ │ │ ├── ZFSmallFloatControlView.h │ │ │ ├── ZFSpeedLoadingView.h │ │ │ ├── ZFUtilities.h │ │ │ └── ZFVolumeBrightnessView.h │ ├── Local Podspecs │ │ └── ZFPlayer.podspec.json │ ├── MJRefresh │ │ ├── LICENSE │ │ ├── MJRefresh │ │ │ ├── Base │ │ │ │ ├── MJRefreshAutoFooter.h │ │ │ │ ├── MJRefreshAutoFooter.m │ │ │ │ ├── MJRefreshBackFooter.h │ │ │ │ ├── MJRefreshBackFooter.m │ │ │ │ ├── MJRefreshComponent.h │ │ │ │ ├── MJRefreshComponent.m │ │ │ │ ├── MJRefreshFooter.h │ │ │ │ ├── MJRefreshFooter.m │ │ │ │ ├── MJRefreshHeader.h │ │ │ │ └── MJRefreshHeader.m │ │ │ ├── Custom │ │ │ │ ├── Footer │ │ │ │ │ ├── Auto │ │ │ │ │ │ ├── MJRefreshAutoGifFooter.h │ │ │ │ │ │ ├── MJRefreshAutoGifFooter.m │ │ │ │ │ │ ├── MJRefreshAutoNormalFooter.h │ │ │ │ │ │ ├── MJRefreshAutoNormalFooter.m │ │ │ │ │ │ ├── MJRefreshAutoStateFooter.h │ │ │ │ │ │ └── MJRefreshAutoStateFooter.m │ │ │ │ │ └── Back │ │ │ │ │ │ ├── MJRefreshBackGifFooter.h │ │ │ │ │ │ ├── MJRefreshBackGifFooter.m │ │ │ │ │ │ ├── MJRefreshBackNormalFooter.h │ │ │ │ │ │ ├── MJRefreshBackNormalFooter.m │ │ │ │ │ │ ├── MJRefreshBackStateFooter.h │ │ │ │ │ │ └── MJRefreshBackStateFooter.m │ │ │ │ └── Header │ │ │ │ │ ├── MJRefreshGifHeader.h │ │ │ │ │ ├── MJRefreshGifHeader.m │ │ │ │ │ ├── MJRefreshNormalHeader.h │ │ │ │ │ ├── MJRefreshNormalHeader.m │ │ │ │ │ ├── MJRefreshStateHeader.h │ │ │ │ │ └── MJRefreshStateHeader.m │ │ │ ├── MJRefresh.bundle │ │ │ │ ├── arrow@2x.png │ │ │ │ ├── en.lproj │ │ │ │ │ └── Localizable.strings │ │ │ │ ├── ko.lproj │ │ │ │ │ └── Localizable.strings │ │ │ │ ├── ru.lproj │ │ │ │ │ └── Localizable.strings │ │ │ │ ├── uk.lproj │ │ │ │ │ └── Localizable.strings │ │ │ │ ├── zh-Hans.lproj │ │ │ │ │ └── Localizable.strings │ │ │ │ └── zh-Hant.lproj │ │ │ │ │ └── Localizable.strings │ │ │ ├── MJRefresh.h │ │ │ ├── MJRefreshConfig.h │ │ │ ├── MJRefreshConfig.m │ │ │ ├── MJRefreshConst.h │ │ │ ├── MJRefreshConst.m │ │ │ ├── NSBundle+MJRefresh.h │ │ │ ├── NSBundle+MJRefresh.m │ │ │ ├── UIScrollView+MJExtension.h │ │ │ ├── UIScrollView+MJExtension.m │ │ │ ├── UIScrollView+MJRefresh.h │ │ │ ├── UIScrollView+MJRefresh.m │ │ │ ├── UIView+MJExtension.h │ │ │ └── UIView+MJExtension.m │ │ └── README.md │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ ├── project.pbxproj │ │ └── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── Target Support Files │ │ ├── FDFullscreenPopGesture │ │ ├── FDFullscreenPopGesture-dummy.m │ │ ├── FDFullscreenPopGesture-prefix.pch │ │ ├── FDFullscreenPopGesture.debug.xcconfig │ │ ├── FDFullscreenPopGesture.release.xcconfig │ │ └── FDFullscreenPopGesture.xcconfig │ │ ├── MJRefresh │ │ ├── MJRefresh-dummy.m │ │ ├── MJRefresh-prefix.pch │ │ ├── MJRefresh.debug.xcconfig │ │ ├── MJRefresh.release.xcconfig │ │ └── MJRefresh.xcconfig │ │ ├── Pods-ZFPlayer_Example │ │ ├── Info.plist │ │ ├── Pods-ZFPlayer_Example-acknowledgements.markdown │ │ ├── Pods-ZFPlayer_Example-acknowledgements.plist │ │ ├── Pods-ZFPlayer_Example-dummy.m │ │ ├── Pods-ZFPlayer_Example-frameworks.sh │ │ ├── Pods-ZFPlayer_Example-resources.sh │ │ ├── Pods-ZFPlayer_Example-umbrella.h │ │ ├── Pods-ZFPlayer_Example.debug.xcconfig │ │ ├── Pods-ZFPlayer_Example.modulemap │ │ └── Pods-ZFPlayer_Example.release.xcconfig │ │ └── ZFPlayer │ │ ├── Info.plist │ │ ├── ZFPlayer-dummy.m │ │ ├── ZFPlayer-prefix.pch │ │ ├── ZFPlayer-umbrella.h │ │ ├── ZFPlayer.debug.xcconfig │ │ ├── ZFPlayer.modulemap │ │ ├── ZFPlayer.release.xcconfig │ │ └── ZFPlayer.xcconfig ├── Tests │ ├── Tests-Info.plist │ ├── Tests-Prefix.pch │ ├── Tests.m │ └── en.lproj │ │ └── InfoPlist.strings ├── ZFPlayer.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── xcshareddata │ │ └── xcschemes │ │ └── ZFPlayer-Example.xcscheme ├── ZFPlayer.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── ZFPlayer │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── CollectionView │ ├── Controller │ │ ├── ZFCollectionViewController.h │ │ ├── ZFCollectionViewController.m │ │ ├── ZFCollectionViewListController.h │ │ ├── ZFCollectionViewListController.m │ │ ├── ZFDouyinCollectionViewController.h │ │ ├── ZFDouyinCollectionViewController.m │ │ ├── ZFHorizontalCollectionViewController.h │ │ └── ZFHorizontalCollectionViewController.m │ └── View │ │ ├── ZFCollectionViewCell.h │ │ ├── ZFCollectionViewCell.m │ │ ├── ZFDouyinCollectionViewCell.h │ │ └── ZFDouyinCollectionViewCell.m │ ├── CustomControlView │ ├── Controller │ │ ├── ZFCustomControlViewViewController.h │ │ └── ZFCustomControlViewViewController.m │ └── View │ │ ├── ZFCustomControlView.h │ │ └── ZFCustomControlView.m │ ├── FullScreenViewController │ ├── ZFFullScreenViewController.h │ └── ZFFullScreenViewController.m │ ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ ├── comment.imageset │ │ ├── Contents.json │ │ └── comment.png │ ├── defaultUserIcon.imageset │ │ ├── Contents.json │ │ ├── defaultUserIcon.png │ │ ├── defaultUserIcon@2x.png │ │ └── defaultUserIcon@3x.png │ ├── icon_play_pause.imageset │ │ ├── Contents.json │ │ ├── icon_play_pause@2x.png │ │ └── icon_play_pause@3x.png │ ├── icon_titlebar_whiteback.imageset │ │ ├── Contents.json │ │ ├── icon_titlebar_whiteback@2x.png │ │ └── icon_titlebar_whiteback@3x.png │ ├── img_video_loading.imageset │ │ ├── Contents.json │ │ ├── img_video_loading@2x.png │ │ └── img_video_loading@3x.png │ ├── like.imageset │ │ ├── Contents.json │ │ └── like.png │ ├── loading_bgView.imageset │ │ ├── Contents.json │ │ └── loading_bgView.png │ ├── logo.imageset │ │ ├── Contents.json │ │ └── logo.png │ ├── new_allPause_44x44_.imageset │ │ ├── Contents.json │ │ ├── new_allPause_44x44_@2x.png │ │ └── new_allPause_44x44_@3x.png │ ├── new_allPlay_44x44_.imageset │ │ ├── Contents.json │ │ ├── new_allPlay_44x44_@2x.png │ │ └── new_allPlay_44x44_@3x.png │ ├── share.imageset │ │ ├── Contents.json │ │ └── share.png │ ├── zfplayer_back.imageset │ │ ├── Contents.json │ │ ├── zfplayer_back@2x.png │ │ └── zfplayer_back@3x.png │ └── zfplayer_rotaiton.imageset │ │ ├── Contents.json │ │ ├── zfplayer_rotaiton@2x.png │ │ └── zfplayer_rotaiton@3x.png │ ├── Main │ ├── ZFTableSectionModel.h │ ├── ZFTableSectionModel.m │ ├── ZFViewController.h │ └── ZFViewController.m │ ├── Normal │ ├── ZFNormalViewController.h │ └── ZFNormalViewController.m │ ├── Other │ ├── ZFADViewController.h │ └── ZFADViewController.m │ ├── Rotation │ ├── Keyboard │ │ ├── ZFKeyboardViewController.h │ │ └── ZFKeyboardViewController.m │ └── RotationVC │ │ ├── ZFRotationViewController.h │ │ ├── ZFRotationViewController.m │ │ └── ZFRotationViewController.xib │ ├── ScrollView │ ├── ZFScrollViewViewController.h │ └── ZFScrollViewViewController.m │ ├── TableView │ ├── Controller │ │ ├── ZFAutoPlayerViewController.h │ │ ├── ZFAutoPlayerViewController.m │ │ ├── ZFDouYinViewController.h │ │ ├── ZFDouYinViewController.m │ │ ├── ZFLightTableViewController.h │ │ ├── ZFLightTableViewController.m │ │ ├── ZFMixViewController.h │ │ ├── ZFMixViewController.m │ │ ├── ZFNotAutoPlayViewController.h │ │ ├── ZFNotAutoPlayViewController.m │ │ ├── ZFPlayerDetailViewController.h │ │ ├── ZFPlayerDetailViewController.m │ │ ├── ZFSmallPlayViewController.h │ │ ├── ZFSmallPlayViewController.m │ │ ├── ZFTableHeaderViewController.h │ │ ├── ZFTableHeaderViewController.m │ │ ├── ZFWChatViewController.h │ │ └── ZFWChatViewController.m │ ├── Model │ │ ├── ZFTableData.h │ │ ├── ZFTableData.m │ │ └── data.json │ ├── Other │ │ ├── NSString+Size.h │ │ ├── NSString+Size.m │ │ ├── ZFDouYinCellDelegate.h │ │ ├── ZFTableViewCellLayout.h │ │ └── ZFTableViewCellLayout.m │ └── View │ │ ├── ZFADControlView.h │ │ ├── ZFADControlView.m │ │ ├── ZFDouYinCell.h │ │ ├── ZFDouYinCell.m │ │ ├── ZFDouYinControlView.h │ │ ├── ZFDouYinControlView.m │ │ ├── ZFOtherCell.h │ │ ├── ZFOtherCell.m │ │ ├── ZFTableHeaderView.h │ │ ├── ZFTableHeaderView.m │ │ ├── ZFTableViewCell.h │ │ ├── ZFTableViewCell.m │ │ ├── ZFWeChatControlView.h │ │ └── ZFWeChatControlView.m │ ├── ZFAppDelegate.h │ ├── ZFAppDelegate.m │ ├── ZFPlayer-Info.plist │ ├── ZFPlayer-Prefix.pch │ ├── en.lproj │ └── InfoPlist.strings │ └── main.m ├── LICENSE ├── README.md ├── ZFPlayer.podspec ├── ZFPlayer └── Classes │ ├── AVPlayer │ ├── ZFAVPlayerManager.h │ └── ZFAVPlayerManager.m │ ├── ControlView │ ├── UIImageView+ZFCache.h │ ├── UIImageView+ZFCache.m │ ├── UIView+ZFFrame.h │ ├── UIView+ZFFrame.m │ ├── ZFLandScapeControlView.h │ ├── ZFLandScapeControlView.m │ ├── ZFLoadingView.h │ ├── ZFLoadingView.m │ ├── ZFNetworkSpeedMonitor.h │ ├── ZFNetworkSpeedMonitor.m │ ├── ZFPlayer.bundle │ │ ├── ZFPlayer_back_full@2x.png │ │ ├── ZFPlayer_back_full@3x.png │ │ ├── ZFPlayer_battery_lightning.png │ │ ├── ZFPlayer_bottom_shadow.png │ │ ├── ZFPlayer_brightness_high@2x.png │ │ ├── ZFPlayer_brightness_high@3x.png │ │ ├── ZFPlayer_brightness_low@2x.png │ │ ├── ZFPlayer_brightness_low@3x.png │ │ ├── ZFPlayer_close@2x.png │ │ ├── ZFPlayer_close@3x.png │ │ ├── ZFPlayer_closeWatch@2x.png │ │ ├── ZFPlayer_closeWatch@3x.png │ │ ├── ZFPlayer_fast_backward@2x.png │ │ ├── ZFPlayer_fast_backward@3x.png │ │ ├── ZFPlayer_fast_forward@2x.png │ │ ├── ZFPlayer_fast_forward@3x.png │ │ ├── ZFPlayer_fullscreen@2x.png │ │ ├── ZFPlayer_fullscreen@3x.png │ │ ├── ZFPlayer_lock-nor@2x.png │ │ ├── ZFPlayer_lock-nor@3x.png │ │ ├── ZFPlayer_muted@2x.png │ │ ├── ZFPlayer_muted@3x.png │ │ ├── ZFPlayer_next@2x.png │ │ ├── ZFPlayer_next@3x.png │ │ ├── ZFPlayer_pause@2x.png │ │ ├── ZFPlayer_pause@3x.png │ │ ├── ZFPlayer_play@2x.png │ │ ├── ZFPlayer_play@3x.png │ │ ├── ZFPlayer_shrinkscreen@2x.png │ │ ├── ZFPlayer_shrinkscreen@3x.png │ │ ├── ZFPlayer_slider.png │ │ ├── ZFPlayer_slider@2x.png │ │ ├── ZFPlayer_slider@3x.png │ │ ├── ZFPlayer_top_shadow.png │ │ ├── ZFPlayer_unlock-nor@2x.png │ │ ├── ZFPlayer_unlock-nor@3x.png │ │ ├── ZFPlayer_volume_high@2x.png │ │ ├── ZFPlayer_volume_high@3x.png │ │ ├── ZFPlayer_volume_low@2x.png │ │ ├── ZFPlayer_volume_low@3x.png │ │ ├── new_allPause_44x44_@2x.png │ │ ├── new_allPause_44x44_@3x.png │ │ ├── new_allPlay_44x44_@2x.png │ │ └── new_allPlay_44x44_@3x.png │ ├── ZFPlayerControlView.h │ ├── ZFPlayerControlView.m │ ├── ZFPlayerStatusBar.h │ ├── ZFPlayerStatusBar.m │ ├── ZFPortraitControlView.h │ ├── ZFPortraitControlView.m │ ├── ZFSliderView.h │ ├── ZFSliderView.m │ ├── ZFSmallFloatControlView.h │ ├── ZFSmallFloatControlView.m │ ├── ZFSpeedLoadingView.h │ ├── ZFSpeedLoadingView.m │ ├── ZFUtilities.h │ ├── ZFUtilities.m │ ├── ZFVolumeBrightnessView.h │ └── ZFVolumeBrightnessView.m │ ├── Core │ ├── UIScrollView+ZFPlayer.h │ ├── UIScrollView+ZFPlayer.m │ ├── UIViewController+ZFPlayerRotation.m │ ├── ZFFloatView.h │ ├── ZFFloatView.m │ ├── ZFKVOController.h │ ├── ZFKVOController.m │ ├── ZFLandscapeRotationManager.h │ ├── ZFLandscapeRotationManager.m │ ├── ZFLandscapeRotationManager_iOS15.h │ ├── ZFLandscapeRotationManager_iOS15.m │ ├── ZFLandscapeRotationManager_iOS16.h │ ├── ZFLandscapeRotationManager_iOS16.m │ ├── ZFLandscapeViewController.h │ ├── ZFLandscapeViewController.m │ ├── ZFLandscapeViewController_iOS15.h │ ├── ZFLandscapeViewController_iOS15.m │ ├── ZFLandscapeWindow.h │ ├── ZFLandscapeWindow.m │ ├── ZFOrientationObserver.h │ ├── ZFOrientationObserver.m │ ├── ZFPersentInteractiveTransition.h │ ├── ZFPersentInteractiveTransition.m │ ├── ZFPlayer.h │ ├── ZFPlayerConst.h │ ├── ZFPlayerController.h │ ├── ZFPlayerController.m │ ├── ZFPlayerGestureControl.h │ ├── ZFPlayerGestureControl.m │ ├── ZFPlayerLogManager.h │ ├── ZFPlayerLogManager.m │ ├── ZFPlayerMediaControl.h │ ├── ZFPlayerMediaPlayback.h │ ├── ZFPlayerNotification.h │ ├── ZFPlayerNotification.m │ ├── ZFPlayerView.h │ ├── ZFPlayerView.m │ ├── ZFPortraitViewController.h │ ├── ZFPortraitViewController.m │ ├── ZFPresentTransition.h │ ├── ZFPresentTransition.m │ ├── ZFReachabilityManager.h │ └── ZFReachabilityManager.m │ └── ijkplayer │ ├── ZFIJKPlayerManager.h │ └── ZFIJKPlayerManager.m └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | platform:ios, '8.0' 3 | 4 | target 'ZFPlayer_Example' do 5 | pod 'FDFullscreenPopGesture' 6 | pod 'MJRefresh' 7 | pod 'ZFPlayer', :path => '../' 8 | 9 | end 10 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - FDFullscreenPopGesture (1.1) 3 | - MJRefresh (3.4.3) 4 | - ZFPlayer (4.1.4): 5 | - ZFPlayer/AVPlayer (= 4.1.4) 6 | - ZFPlayer/ControlView (= 4.1.4) 7 | - ZFPlayer/Core (= 4.1.4) 8 | - ZFPlayer/ijkplayer (= 4.1.4) 9 | - ZFPlayer/AVPlayer (4.1.4): 10 | - ZFPlayer/Core 11 | - ZFPlayer/ControlView (4.1.4): 12 | - ZFPlayer/Core 13 | - ZFPlayer/Core (4.1.4) 14 | - ZFPlayer/ijkplayer (4.1.4): 15 | - ZFPlayer/Core 16 | 17 | DEPENDENCIES: 18 | - FDFullscreenPopGesture 19 | - MJRefresh 20 | - ZFPlayer (from `../`) 21 | 22 | SPEC REPOS: 23 | https://github.com/CocoaPods/Specs.git: 24 | - FDFullscreenPopGesture 25 | - MJRefresh 26 | 27 | EXTERNAL SOURCES: 28 | ZFPlayer: 29 | :path: "../" 30 | 31 | SPEC CHECKSUMS: 32 | FDFullscreenPopGesture: a8a620179e3d9c40e8e00256dcee1c1a27c6d0f0 33 | MJRefresh: 53e3e3219f204425ee6d3e62e8733d3295944cd6 34 | ZFPlayer: 92b1348740af355d416833383ae46170223f1302 35 | 36 | PODFILE CHECKSUM: a3fcbbaf309343c1c9575737d409bf95b447eef9 37 | 38 | COCOAPODS: 1.11.1 39 | -------------------------------------------------------------------------------- /Example/Pods/FDFullscreenPopGesture/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /Example/Pods/FDFullscreenPopGesture/README.md: -------------------------------------------------------------------------------- 1 | # FDFullscreenPopGesture 2 | An UINavigationController's category to enable fullscreen pop gesture in an iOS7+ system style with AOP. 3 | 4 | # Overview 5 | 6 | ![snapshot](https://raw.githubusercontent.com/forkingdog/FDFullscreenPopGesture/master/Snapshots/snapshot0.gif) 7 | 8 | 这个扩展来自 @J_雨 同学的这个很天才的思路,他的文章地址:[http://www.jianshu.com/p/d39f7d22db6c](http://www.jianshu.com/p/d39f7d22db6c) 9 | 10 | # Usage 11 | 12 | **AOP**, just add 2 files and **no need** for any setups, all navigation controllers will be able to use fullscreen pop gesture automatically. 13 | 14 | To disable this pop gesture of a navigation controller: 15 | 16 | ``` objc 17 | navigationController.fd_fullscreenPopGestureRecognizer.enabled = NO; 18 | ``` 19 | 20 | To disable this pop gesture of a view controller: 21 | 22 | ``` objc 23 | viewController.fd_interactivePopDisabled = YES; 24 | ``` 25 | 26 | Require at least iOS **7.0**. 27 | 28 | # View Controller Based Navigation Bar Appearance 29 | 30 | It handles navigation bar transition properly when using fullscreen gesture to push or pop a view controller: 31 | 32 | - with bar -> without bar 33 | - without bar -> with bar 34 | - without bar -> without bar 35 | 36 | ![snapshot with bar states](https://raw.githubusercontent.com/forkingdog/FDFullscreenPopGesture/master/Snapshots/snapshot1.gif) 37 | 38 | This opmiziation is enabled by default, from now on you don't need to call **UINavigationController**'s `-setNavigationBarHidden:animated:` method, instead, use view controller's specific API to hide its bar: 39 | 40 | ``` objc 41 | - (void)viewDidLoad { 42 | [super viewDidLoad]; 43 | self.fd_prefersNavigationBarHidden = NO; 44 | } 45 | ``` 46 | 47 | And this property is **YES** by default. 48 | 49 | # Installation 50 | 51 | Use cocoapods 52 | 53 | ``` ruby 54 | pod 'FDFullscreenPopGesture', '1.1' 55 | ``` 56 | # Release Notes 57 | 58 | **1.1** - View controller based navigation bar appearance and transition. 59 | **1.0** - Fullscreen pop gesture. 60 | 61 | # License 62 | MIT 63 | -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/FDFullscreenPopGesture/UINavigationController+FDFullscreenPopGesture.h: -------------------------------------------------------------------------------- 1 | ../../../FDFullscreenPopGesture/FDFullscreenPopGesture/UINavigationController+FDFullscreenPopGesture.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefresh.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/MJRefresh.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshAutoFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Base/MJRefreshAutoFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshAutoGifFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshAutoNormalFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshAutoStateFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshBackFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Base/MJRefreshBackFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshBackGifFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshBackNormalFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshBackStateFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshComponent.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Base/MJRefreshComponent.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshConfig.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/MJRefreshConfig.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshConst.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/MJRefreshConst.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Base/MJRefreshFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshGifHeader.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Header/MJRefreshGifHeader.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshHeader.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Base/MJRefreshHeader.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshNormalHeader.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Header/MJRefreshNormalHeader.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/MJRefreshStateHeader.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Header/MJRefreshStateHeader.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/NSBundle+MJRefresh.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/NSBundle+MJRefresh.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/UIScrollView+MJExtension.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/UIScrollView+MJExtension.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/UIScrollView+MJRefresh.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/UIScrollView+MJRefresh.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/MJRefresh/UIView+MJExtension.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/UIView+MJExtension.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/UIImageView+ZFCache.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/UIImageView+ZFCache.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/UIScrollView+ZFPlayer.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/UIScrollView+ZFPlayer.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/UIView+ZFFrame.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/UIView+ZFFrame.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFAVPlayerManager.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/AVPlayer/ZFAVPlayerManager.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFFloatView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFFloatView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFIJKPlayerManager.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ijkplayer/ZFIJKPlayerManager.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFKVOController.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFKVOController.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFLandScapeControlView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFLandScapeControlView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFLandscapeRotationManager.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFLandscapeRotationManager.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFLandscapeRotationManager_iOS15.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFLandscapeRotationManager_iOS15.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFLandscapeRotationManager_iOS16.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFLandscapeRotationManager_iOS16.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFLandscapeViewController.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFLandscapeViewController.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFLandscapeViewController_iOS15.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFLandscapeViewController_iOS15.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFLandscapeWindow.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFLandscapeWindow.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFLoadingView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFLoadingView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFNetworkSpeedMonitor.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFNetworkSpeedMonitor.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFOrientationObserver.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFOrientationObserver.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPersentInteractiveTransition.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPersentInteractiveTransition.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPlayer.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayer.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPlayerConst.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerConst.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPlayerControlView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFPlayerControlView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPlayerController.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerController.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPlayerGestureControl.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerGestureControl.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPlayerLogManager.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerLogManager.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPlayerMediaControl.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerMediaControl.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPlayerMediaPlayback.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerMediaPlayback.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPlayerNotification.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerNotification.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPlayerStatusBar.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFPlayerStatusBar.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPlayerView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPortraitControlView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFPortraitControlView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPortraitViewController.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPortraitViewController.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFPresentTransition.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPresentTransition.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFReachabilityManager.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFReachabilityManager.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFSliderView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFSliderView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFSmallFloatControlView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFSmallFloatControlView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFSpeedLoadingView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFSpeedLoadingView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFUtilities.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFUtilities.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/ZFPlayer/ZFVolumeBrightnessView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFVolumeBrightnessView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/FDFullscreenPopGesture/UINavigationController+FDFullscreenPopGesture.h: -------------------------------------------------------------------------------- 1 | ../../../FDFullscreenPopGesture/FDFullscreenPopGesture/UINavigationController+FDFullscreenPopGesture.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefresh.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/MJRefresh.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshAutoFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Base/MJRefreshAutoFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshAutoGifFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshAutoNormalFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshAutoStateFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshBackFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Base/MJRefreshBackFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshBackGifFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshBackNormalFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshBackStateFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshComponent.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Base/MJRefreshComponent.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshConfig.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/MJRefreshConfig.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshConst.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/MJRefreshConst.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshFooter.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Base/MJRefreshFooter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshGifHeader.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Header/MJRefreshGifHeader.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshHeader.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Base/MJRefreshHeader.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshNormalHeader.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Header/MJRefreshNormalHeader.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/MJRefreshStateHeader.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/Custom/Header/MJRefreshStateHeader.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/NSBundle+MJRefresh.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/NSBundle+MJRefresh.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/UIScrollView+MJExtension.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/UIScrollView+MJExtension.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/UIScrollView+MJRefresh.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/UIScrollView+MJRefresh.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/MJRefresh/UIView+MJExtension.h: -------------------------------------------------------------------------------- 1 | ../../../MJRefresh/MJRefresh/UIView+MJExtension.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/UIImageView+ZFCache.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/UIImageView+ZFCache.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/UIScrollView+ZFPlayer.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/UIScrollView+ZFPlayer.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/UIView+ZFFrame.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/UIView+ZFFrame.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFAVPlayerManager.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/AVPlayer/ZFAVPlayerManager.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFFloatView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFFloatView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFIJKPlayerManager.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ijkplayer/ZFIJKPlayerManager.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFKVOController.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFKVOController.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFLandScapeControlView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFLandScapeControlView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFLandscapeRotationManager.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFLandscapeRotationManager.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFLandscapeRotationManager_iOS15.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFLandscapeRotationManager_iOS15.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFLandscapeRotationManager_iOS16.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFLandscapeRotationManager_iOS16.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFLandscapeViewController.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFLandscapeViewController.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFLandscapeViewController_iOS15.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFLandscapeViewController_iOS15.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFLandscapeWindow.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFLandscapeWindow.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFLoadingView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFLoadingView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFNetworkSpeedMonitor.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFNetworkSpeedMonitor.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFOrientationObserver.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFOrientationObserver.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPersentInteractiveTransition.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPersentInteractiveTransition.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPlayer.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayer.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPlayerConst.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerConst.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPlayerControlView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFPlayerControlView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPlayerController.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerController.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPlayerGestureControl.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerGestureControl.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPlayerLogManager.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerLogManager.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPlayerMediaControl.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerMediaControl.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPlayerMediaPlayback.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerMediaPlayback.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPlayerNotification.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerNotification.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPlayerStatusBar.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFPlayerStatusBar.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPlayerView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPlayerView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPortraitControlView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFPortraitControlView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPortraitViewController.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPortraitViewController.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFPresentTransition.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFPresentTransition.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFReachabilityManager.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/Core/ZFReachabilityManager.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFSliderView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFSliderView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFSmallFloatControlView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFSmallFloatControlView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFSpeedLoadingView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFSpeedLoadingView.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFUtilities.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFUtilities.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ZFPlayer/ZFVolumeBrightnessView.h: -------------------------------------------------------------------------------- 1 | ../../../../../ZFPlayer/Classes/ControlView/ZFVolumeBrightnessView.h -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/ZFPlayer.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ZFPlayer", 3 | "version": "4.1.4", 4 | "summary": "A good player made by renzifeng", 5 | "homepage": "https://github.com/renzifeng/ZFPlayer", 6 | "license": { 7 | "type": "MIT", 8 | "file": "LICENSE" 9 | }, 10 | "authors": { 11 | "renzifeng": "zifeng1300@gmail.com" 12 | }, 13 | "source": { 14 | "git": "https://github.com/renzifeng/ZFPlayer.git", 15 | "tag": "4.1.4" 16 | }, 17 | "social_media_url": "http://weibo.com/zifeng1300", 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "requires_arc": true, 22 | "static_framework": true, 23 | "pod_target_xcconfig": { 24 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]": "arm64" 25 | }, 26 | "user_target_xcconfig": { 27 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]": "arm64" 28 | }, 29 | "subspecs": [ 30 | { 31 | "name": "Core", 32 | "source_files": "ZFPlayer/Classes/Core/**/*", 33 | "public_header_files": "ZFPlayer/Classes/Core/**/*.h", 34 | "frameworks": [ 35 | "UIKit", 36 | "MediaPlayer", 37 | "AVFoundation" 38 | ] 39 | }, 40 | { 41 | "name": "ControlView", 42 | "source_files": "ZFPlayer/Classes/ControlView/**/*.{h,m}", 43 | "public_header_files": "ZFPlayer/Classes/ControlView/**/*.h", 44 | "resources": "ZFPlayer/Classes/ControlView/ZFPlayer.bundle", 45 | "dependencies": { 46 | "ZFPlayer/Core": [ 47 | 48 | ] 49 | } 50 | }, 51 | { 52 | "name": "AVPlayer", 53 | "source_files": "ZFPlayer/Classes/AVPlayer/**/*.{h,m}", 54 | "public_header_files": "ZFPlayer/Classes/AVPlayer/**/*.h", 55 | "dependencies": { 56 | "ZFPlayer/Core": [ 57 | 58 | ] 59 | } 60 | }, 61 | { 62 | "name": "ijkplayer", 63 | "source_files": "ZFPlayer/Classes/ijkplayer/*.{h,m}", 64 | "public_header_files": "ZFPlayer/Classes/ijkplayer/*.h", 65 | "dependencies": { 66 | "ZFPlayer/Core": [ 67 | 68 | ] 69 | } 70 | } 71 | ] 72 | } 73 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2015 MJRefresh (https://github.com/CoderMJLee/MJRefresh) 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshAutoFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshAutoFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshFooter.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface MJRefreshAutoFooter : MJRefreshFooter 14 | /** 是否自动刷新(默认为YES) */ 15 | @property (assign, nonatomic, getter=isAutomaticallyRefresh) BOOL automaticallyRefresh; 16 | 17 | /** 当底部控件出现多少时就自动刷新(默认为1.0,也就是底部控件完全出现时,才会自动刷新) */ 18 | @property (assign, nonatomic) CGFloat appearencePercentTriggerAutoRefresh MJRefreshDeprecated("请使用triggerAutomaticallyRefreshPercent属性"); 19 | 20 | /** 当底部控件出现多少时就自动刷新(默认为1.0,也就是底部控件完全出现时,才会自动刷新) */ 21 | @property (assign, nonatomic) CGFloat triggerAutomaticallyRefreshPercent; 22 | 23 | /** 自动触发次数, 默认为 1, 仅在拖拽 ScrollView 时才生效, 24 | 25 | 如果为 -1, 则为无限触发 26 | */ 27 | @property (nonatomic) NSInteger autoTriggerTimes; 28 | @end 29 | 30 | NS_ASSUME_NONNULL_END 31 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshBackFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshBackFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshFooter.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface MJRefreshBackFooter : MJRefreshFooter 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshFooter.h: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | // MJRefreshFooter.h 4 | // MJRefreshExample 5 | // 6 | // Created by MJ Lee on 15/3/5. 7 | // Copyright (c) 2015年 小码哥. All rights reserved. 8 | // 上拉刷新控件 9 | 10 | #import "MJRefreshComponent.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface MJRefreshFooter : MJRefreshComponent 15 | /** 创建footer */ 16 | + (instancetype)footerWithRefreshingBlock:(MJRefreshComponentAction)refreshingBlock; 17 | /** 创建footer */ 18 | + (instancetype)footerWithRefreshingTarget:(id)target refreshingAction:(SEL)action; 19 | 20 | /** 提示没有更多的数据 */ 21 | - (void)endRefreshingWithNoMoreData; 22 | - (void)noticeNoMoreData MJRefreshDeprecated("使用endRefreshingWithNoMoreData"); 23 | 24 | /** 重置没有更多的数据(消除没有更多数据的状态) */ 25 | - (void)resetNoMoreData; 26 | 27 | /** 忽略多少scrollView的contentInset的bottom */ 28 | @property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetBottom; 29 | 30 | /** 自动根据有无数据来显示和隐藏(有数据就显示,没有数据隐藏。默认是NO) */ 31 | @property (assign, nonatomic, getter=isAutomaticallyHidden) BOOL automaticallyHidden MJRefreshDeprecated("已废弃此属性,开发者请自行控制footer的显示和隐藏"); 32 | @end 33 | 34 | NS_ASSUME_NONNULL_END 35 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshFooter.m: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | // MJRefreshFooter.m 4 | // MJRefreshExample 5 | // 6 | // Created by MJ Lee on 15/3/5. 7 | // Copyright (c) 2015年 小码哥. All rights reserved. 8 | // 9 | 10 | #import "MJRefreshFooter.h" 11 | #include "UIScrollView+MJRefresh.h" 12 | 13 | @interface MJRefreshFooter() 14 | 15 | @end 16 | 17 | @implementation MJRefreshFooter 18 | #pragma mark - 构造方法 19 | + (instancetype)footerWithRefreshingBlock:(MJRefreshComponentAction)refreshingBlock 20 | { 21 | MJRefreshFooter *cmp = [[self alloc] init]; 22 | cmp.refreshingBlock = refreshingBlock; 23 | return cmp; 24 | } 25 | + (instancetype)footerWithRefreshingTarget:(id)target refreshingAction:(SEL)action 26 | { 27 | MJRefreshFooter *cmp = [[self alloc] init]; 28 | [cmp setRefreshingTarget:target refreshingAction:action]; 29 | return cmp; 30 | } 31 | 32 | #pragma mark - 重写父类的方法 33 | - (void)prepare 34 | { 35 | [super prepare]; 36 | 37 | // 设置自己的高度 38 | self.mj_h = MJRefreshFooterHeight; 39 | 40 | // 默认不会自动隐藏 41 | // self.automaticallyHidden = NO; 42 | } 43 | 44 | #pragma mark - 公共方法 45 | - (void)endRefreshingWithNoMoreData 46 | { 47 | MJRefreshDispatchAsyncOnMainQueue(self.state = MJRefreshStateNoMoreData;) 48 | } 49 | 50 | - (void)noticeNoMoreData 51 | { 52 | [self endRefreshingWithNoMoreData]; 53 | } 54 | 55 | - (void)resetNoMoreData 56 | { 57 | MJRefreshDispatchAsyncOnMainQueue(self.state = MJRefreshStateIdle;) 58 | } 59 | 60 | - (void)setAutomaticallyHidden:(BOOL)automaticallyHidden 61 | { 62 | _automaticallyHidden = automaticallyHidden; 63 | } 64 | @end 65 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Base/MJRefreshHeader.h: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | // MJRefreshHeader.h 4 | // MJRefreshExample 5 | // 6 | // Created by MJ Lee on 15/3/4. 7 | // Copyright (c) 2015年 小码哥. All rights reserved. 8 | // 下拉刷新控件:负责监控用户下拉的状态 9 | 10 | #import "MJRefreshComponent.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface MJRefreshHeader : MJRefreshComponent 15 | /** 创建header */ 16 | + (instancetype)headerWithRefreshingBlock:(MJRefreshComponentAction)refreshingBlock; 17 | /** 创建header */ 18 | + (instancetype)headerWithRefreshingTarget:(id)target refreshingAction:(SEL)action; 19 | 20 | /** 这个key用来存储上一次下拉刷新成功的时间 */ 21 | @property (copy, nonatomic) NSString *lastUpdatedTimeKey; 22 | /** 上一次下拉刷新成功的时间 */ 23 | @property (strong, nonatomic, readonly, nullable) NSDate *lastUpdatedTime; 24 | 25 | /** 忽略多少scrollView的contentInset的top */ 26 | @property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetTop; 27 | 28 | /** 默认是关闭状态, 如果遇到 CollectionView 的动画异常问题可以尝试打开 */ 29 | @property (nonatomic) BOOL isCollectionViewAnimationBug; 30 | @end 31 | 32 | NS_ASSUME_NONNULL_END 33 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoGifFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshAutoGifFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshAutoStateFooter.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface MJRefreshAutoGifFooter : MJRefreshAutoStateFooter 14 | @property (weak, nonatomic, readonly) UIImageView *gifView; 15 | 16 | /** 设置state状态下的动画图片images 动画持续时间duration*/ 17 | - (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state; 18 | - (void)setImages:(NSArray *)images forState:(MJRefreshState)state; 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshAutoNormalFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshAutoStateFooter.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface MJRefreshAutoNormalFooter : MJRefreshAutoStateFooter 14 | @property (weak, nonatomic, readonly) UIActivityIndicatorView *loadingView; 15 | 16 | /** 菊花的样式 */ 17 | @property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle MJRefreshDeprecated("first deprecated in 3.2.2 - Use `loadingView` property"); 18 | @end 19 | 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoNormalFooter.m: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshAutoNormalFooter.m 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshAutoNormalFooter.h" 10 | 11 | @interface MJRefreshAutoNormalFooter() 12 | @property (weak, nonatomic) UIActivityIndicatorView *loadingView; 13 | @end 14 | 15 | @implementation MJRefreshAutoNormalFooter 16 | #pragma mark - 懒加载子控件 17 | - (UIActivityIndicatorView *)loadingView 18 | { 19 | if (!_loadingView) { 20 | UIActivityIndicatorView *loadingView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:_activityIndicatorViewStyle]; 21 | loadingView.hidesWhenStopped = YES; 22 | [self addSubview:_loadingView = loadingView]; 23 | } 24 | return _loadingView; 25 | } 26 | 27 | - (void)setActivityIndicatorViewStyle:(UIActivityIndicatorViewStyle)activityIndicatorViewStyle 28 | { 29 | _activityIndicatorViewStyle = activityIndicatorViewStyle; 30 | 31 | [self.loadingView removeFromSuperview]; 32 | self.loadingView = nil; 33 | [self setNeedsLayout]; 34 | } 35 | #pragma mark - 重写父类的方法 36 | - (void)prepare 37 | { 38 | [super prepare]; 39 | 40 | #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 41 | if (@available(iOS 13.0, *)) { 42 | _activityIndicatorViewStyle = UIActivityIndicatorViewStyleMedium; 43 | return; 44 | } 45 | #endif 46 | 47 | _activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray; 48 | } 49 | 50 | - (void)placeSubviews 51 | { 52 | [super placeSubviews]; 53 | 54 | if (self.loadingView.constraints.count) return; 55 | 56 | // 圈圈 57 | CGFloat loadingCenterX = self.mj_w * 0.5; 58 | if (!self.isRefreshingTitleHidden) { 59 | loadingCenterX -= self.stateLabel.mj_textWidth * 0.5 + self.labelLeftInset; 60 | } 61 | CGFloat loadingCenterY = self.mj_h * 0.5; 62 | self.loadingView.center = CGPointMake(loadingCenterX, loadingCenterY); 63 | } 64 | 65 | - (void)setState:(MJRefreshState)state 66 | { 67 | MJRefreshCheckState 68 | 69 | // 根据状态做事情 70 | if (state == MJRefreshStateNoMoreData || state == MJRefreshStateIdle) { 71 | [self.loadingView stopAnimating]; 72 | } else if (state == MJRefreshStateRefreshing) { 73 | [self.loadingView startAnimating]; 74 | } 75 | } 76 | 77 | @end 78 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshAutoStateFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/6/13. 6 | // Copyright © 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshAutoFooter.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface MJRefreshAutoStateFooter : MJRefreshAutoFooter 14 | /** 文字距离圈圈、箭头的距离 */ 15 | @property (assign, nonatomic) CGFloat labelLeftInset; 16 | /** 显示刷新状态的label */ 17 | @property (weak, nonatomic, readonly) UILabel *stateLabel; 18 | 19 | /** 设置state状态下的文字 */ 20 | - (void)setTitle:(NSString *)title forState:(MJRefreshState)state; 21 | 22 | /** 隐藏刷新状态的文字 */ 23 | @property (assign, nonatomic, getter=isRefreshingTitleHidden) BOOL refreshingTitleHidden; 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackGifFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshBackGifFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshBackStateFooter.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface MJRefreshBackGifFooter : MJRefreshBackStateFooter 14 | @property (weak, nonatomic, readonly) UIImageView *gifView; 15 | 16 | /** 设置state状态下的动画图片images 动画持续时间duration*/ 17 | - (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state; 18 | - (void)setImages:(NSArray *)images forState:(MJRefreshState)state; 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackNormalFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshBackNormalFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshBackStateFooter.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface MJRefreshBackNormalFooter : MJRefreshBackStateFooter 14 | @property (weak, nonatomic, readonly) UIImageView *arrowView; 15 | @property (weak, nonatomic, readonly) UIActivityIndicatorView *loadingView; 16 | 17 | /** 菊花的样式 */ 18 | @property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle MJRefreshDeprecated("first deprecated in 3.2.2 - Use `loadingView` property"); 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshBackStateFooter.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/6/13. 6 | // Copyright © 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshBackFooter.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface MJRefreshBackStateFooter : MJRefreshBackFooter 14 | /** 文字距离圈圈、箭头的距离 */ 15 | @property (assign, nonatomic) CGFloat labelLeftInset; 16 | /** 显示刷新状态的label */ 17 | @property (weak, nonatomic, readonly) UILabel *stateLabel; 18 | /** 设置state状态下的文字 */ 19 | - (void)setTitle:(NSString *)title forState:(MJRefreshState)state; 20 | 21 | /** 获取state状态下的title */ 22 | - (NSString *)titleForState:(MJRefreshState)state; 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.m: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshBackStateFooter.m 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/6/13. 6 | // Copyright © 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshBackStateFooter.h" 10 | 11 | @interface MJRefreshBackStateFooter() 12 | { 13 | /** 显示刷新状态的label */ 14 | __unsafe_unretained UILabel *_stateLabel; 15 | } 16 | /** 所有状态对应的文字 */ 17 | @property (strong, nonatomic) NSMutableDictionary *stateTitles; 18 | @end 19 | 20 | @implementation MJRefreshBackStateFooter 21 | #pragma mark - 懒加载 22 | - (NSMutableDictionary *)stateTitles 23 | { 24 | if (!_stateTitles) { 25 | self.stateTitles = [NSMutableDictionary dictionary]; 26 | } 27 | return _stateTitles; 28 | } 29 | 30 | - (UILabel *)stateLabel 31 | { 32 | if (!_stateLabel) { 33 | [self addSubview:_stateLabel = [UILabel mj_label]]; 34 | } 35 | return _stateLabel; 36 | } 37 | 38 | #pragma mark - 公共方法 39 | - (void)setTitle:(NSString *)title forState:(MJRefreshState)state 40 | { 41 | if (title == nil) return; 42 | self.stateTitles[@(state)] = title; 43 | self.stateLabel.text = self.stateTitles[@(self.state)]; 44 | } 45 | 46 | - (NSString *)titleForState:(MJRefreshState)state { 47 | return self.stateTitles[@(state)]; 48 | } 49 | 50 | #pragma mark - 重写父类的方法 51 | - (void)prepare 52 | { 53 | [super prepare]; 54 | 55 | // 初始化间距 56 | self.labelLeftInset = MJRefreshLabelLeftInset; 57 | 58 | // 初始化文字 59 | [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshBackFooterIdleText] forState:MJRefreshStateIdle]; 60 | [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshBackFooterPullingText] forState:MJRefreshStatePulling]; 61 | [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshBackFooterRefreshingText] forState:MJRefreshStateRefreshing]; 62 | [self setTitle:[NSBundle mj_localizedStringForKey:MJRefreshBackFooterNoMoreDataText] forState:MJRefreshStateNoMoreData]; 63 | } 64 | 65 | - (void)placeSubviews 66 | { 67 | [super placeSubviews]; 68 | 69 | if (self.stateLabel.constraints.count) return; 70 | 71 | // 状态标签 72 | self.stateLabel.frame = self.bounds; 73 | } 74 | 75 | - (void)setState:(MJRefreshState)state 76 | { 77 | MJRefreshCheckState 78 | 79 | // 设置状态文字 80 | self.stateLabel.text = self.stateTitles[@(state)]; 81 | } 82 | @end 83 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshGifHeader.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshGifHeader.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshStateHeader.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface MJRefreshGifHeader : MJRefreshStateHeader 14 | @property (weak, nonatomic, readonly) UIImageView *gifView; 15 | 16 | /** 设置state状态下的动画图片images 动画持续时间duration*/ 17 | - (void)setImages:(NSArray *)images duration:(NSTimeInterval)duration forState:(MJRefreshState)state; 18 | - (void)setImages:(NSArray *)images forState:(MJRefreshState)state; 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshNormalHeader.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshNormalHeader.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshStateHeader.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface MJRefreshNormalHeader : MJRefreshStateHeader 14 | @property (weak, nonatomic, readonly) UIImageView *arrowView; 15 | @property (weak, nonatomic, readonly) UIActivityIndicatorView *loadingView; 16 | 17 | 18 | /** 菊花的样式 */ 19 | @property (assign, nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle MJRefreshDeprecated("first deprecated in 3.2.2 - Use `loadingView` property"); 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/Custom/Header/MJRefreshStateHeader.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshStateHeader.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 15/4/24. 6 | // Copyright (c) 2015年 小码哥. All rights reserved. 7 | // 8 | 9 | #import "MJRefreshHeader.h" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface MJRefreshStateHeader : MJRefreshHeader 14 | #pragma mark - 刷新时间相关 15 | /** 利用这个block来决定显示的更新时间文字 */ 16 | @property (copy, nonatomic, nullable) NSString *(^lastUpdatedTimeText)(NSDate * _Nullable lastUpdatedTime); 17 | /** 显示上一次刷新时间的label */ 18 | @property (weak, nonatomic, readonly) UILabel *lastUpdatedTimeLabel; 19 | 20 | #pragma mark - 状态相关 21 | /** 文字距离圈圈、箭头的距离 */ 22 | @property (assign, nonatomic) CGFloat labelLeftInset; 23 | /** 显示刷新状态的label */ 24 | @property (weak, nonatomic, readonly) UILabel *stateLabel; 25 | /** 设置state状态下的文字 */ 26 | - (void)setTitle:(NSString *)title forState:(MJRefreshState)state; 27 | @end 28 | 29 | NS_ASSUME_NONNULL_END 30 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/arrow@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/arrow@2x.png -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/en.lproj/Localizable.strings -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/ko.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | "MJRefreshHeaderIdleText" = "아래로 당겨 새로고침"; 2 | "MJRefreshHeaderPullingText" = "놓으면 새로고침"; 3 | "MJRefreshHeaderRefreshingText" = "로딩중..."; 4 | 5 | "MJRefreshAutoFooterIdleText" = "탭 또는 위로 당겨 로드함"; 6 | "MJRefreshAutoFooterRefreshingText" = "로딩중..."; 7 | "MJRefreshAutoFooterNoMoreDataText" = "더이상 데이터 없음"; 8 | 9 | "MJRefreshBackFooterIdleText" = "위로 당겨 더 로드 가능"; 10 | "MJRefreshBackFooterPullingText" = "놓으면 더 로드됨."; 11 | "MJRefreshBackFooterRefreshingText" = "로딩중..."; 12 | "MJRefreshBackFooterNoMoreDataText" = "더이상 데이터 없음"; 13 | 14 | "MJRefreshHeaderLastTimeText" = "마지막 업데이트: "; 15 | "MJRefreshHeaderDateTodayText" = "오늘"; 16 | "MJRefreshHeaderNoneLastDateText" = "기록 없음"; 17 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/ru.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/ru.lproj/Localizable.strings -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/uk.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/uk.lproj/Localizable.strings -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/zh-Hans.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/zh-Hans.lproj/Localizable.strings -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefresh.bundle/zh-Hant.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | "MJRefreshHeaderIdleText" = "下拉可以刷新"; 2 | "MJRefreshHeaderPullingText" = "鬆開立即刷新"; 3 | "MJRefreshHeaderRefreshingText" = "正在刷新數據中..."; 4 | 5 | "MJRefreshAutoFooterIdleText" = "點擊或上拉加載更多"; 6 | "MJRefreshAutoFooterRefreshingText" = "正在加載更多的數據..."; 7 | "MJRefreshAutoFooterNoMoreDataText" = "已經全部加載完畢"; 8 | 9 | "MJRefreshBackFooterIdleText" = "上拉可以加載更多"; 10 | "MJRefreshBackFooterPullingText" = "鬆開立即加載更多"; 11 | "MJRefreshBackFooterRefreshingText" = "正在加載更多的數據..."; 12 | "MJRefreshBackFooterNoMoreDataText" = "已經全部加載完畢"; 13 | 14 | "MJRefreshHeaderLastTimeText" = "最後更新:"; 15 | "MJRefreshHeaderDateTodayText" = "今天"; 16 | "MJRefreshHeaderNoneLastDateText" = "無記錄"; 17 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefresh.h: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | 4 | #import "UIScrollView+MJRefresh.h" 5 | #import "UIScrollView+MJExtension.h" 6 | #import "UIView+MJExtension.h" 7 | 8 | #import "MJRefreshNormalHeader.h" 9 | #import "MJRefreshGifHeader.h" 10 | 11 | #import "MJRefreshBackNormalFooter.h" 12 | #import "MJRefreshBackGifFooter.h" 13 | #import "MJRefreshAutoNormalFooter.h" 14 | #import "MJRefreshAutoGifFooter.h" -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefreshConfig.h: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshConfig.h 3 | // 4 | // Created by Frank on 2018/11/27. 5 | // Copyright © 2018 小码哥. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface MJRefreshConfig : NSObject 13 | 14 | /** 默认使用的语言版本, 默认为 nil. 将随系统的语言自动改变 */ 15 | @property (copy, nonatomic, nullable) NSString *languageCode; 16 | 17 | /** @return Singleton Config instance */ 18 | + (instancetype)defaultConfig; 19 | 20 | - (instancetype)init NS_UNAVAILABLE; 21 | + (instancetype)new NS_UNAVAILABLE; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefreshConfig.m: -------------------------------------------------------------------------------- 1 | // 2 | // MJRefreshConfig.m 3 | // 4 | // Created by Frank on 2018/11/27. 5 | // Copyright © 2018 小码哥. All rights reserved. 6 | // 7 | 8 | #import "MJRefreshConfig.h" 9 | 10 | @implementation MJRefreshConfig 11 | 12 | static MJRefreshConfig *mj_RefreshConfig = nil; 13 | 14 | + (instancetype)defaultConfig { 15 | static dispatch_once_t onceToken; 16 | dispatch_once(&onceToken, ^{ 17 | mj_RefreshConfig = [[self alloc] init]; 18 | }); 19 | return mj_RefreshConfig; 20 | } 21 | 22 | 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/MJRefreshConst.m: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | #import 4 | 5 | const CGFloat MJRefreshLabelLeftInset = 25; 6 | const CGFloat MJRefreshHeaderHeight = 54.0; 7 | const CGFloat MJRefreshFooterHeight = 44.0; 8 | const CGFloat MJRefreshFastAnimationDuration = 0.25; 9 | const CGFloat MJRefreshSlowAnimationDuration = 0.4; 10 | 11 | NSString *const MJRefreshKeyPathContentOffset = @"contentOffset"; 12 | NSString *const MJRefreshKeyPathContentInset = @"contentInset"; 13 | NSString *const MJRefreshKeyPathContentSize = @"contentSize"; 14 | NSString *const MJRefreshKeyPathPanState = @"state"; 15 | 16 | NSString *const MJRefreshHeaderLastUpdatedTimeKey = @"MJRefreshHeaderLastUpdatedTimeKey"; 17 | 18 | NSString *const MJRefreshHeaderIdleText = @"MJRefreshHeaderIdleText"; 19 | NSString *const MJRefreshHeaderPullingText = @"MJRefreshHeaderPullingText"; 20 | NSString *const MJRefreshHeaderRefreshingText = @"MJRefreshHeaderRefreshingText"; 21 | 22 | NSString *const MJRefreshAutoFooterIdleText = @"MJRefreshAutoFooterIdleText"; 23 | NSString *const MJRefreshAutoFooterRefreshingText = @"MJRefreshAutoFooterRefreshingText"; 24 | NSString *const MJRefreshAutoFooterNoMoreDataText = @"MJRefreshAutoFooterNoMoreDataText"; 25 | 26 | NSString *const MJRefreshBackFooterIdleText = @"MJRefreshBackFooterIdleText"; 27 | NSString *const MJRefreshBackFooterPullingText = @"MJRefreshBackFooterPullingText"; 28 | NSString *const MJRefreshBackFooterRefreshingText = @"MJRefreshBackFooterRefreshingText"; 29 | NSString *const MJRefreshBackFooterNoMoreDataText = @"MJRefreshBackFooterNoMoreDataText"; 30 | 31 | NSString *const MJRefreshHeaderLastTimeText = @"MJRefreshHeaderLastTimeText"; 32 | NSString *const MJRefreshHeaderDateTodayText = @"MJRefreshHeaderDateTodayText"; 33 | NSString *const MJRefreshHeaderNoneLastDateText = @"MJRefreshHeaderNoneLastDateText"; -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/NSBundle+MJRefresh.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSBundle+MJRefresh.h 3 | // MJRefreshExample 4 | // 5 | // Created by MJ Lee on 16/6/13. 6 | // Copyright © 2016年 小码哥. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface NSBundle (MJRefresh) 14 | + (instancetype)mj_refreshBundle; 15 | + (UIImage *)mj_arrowImage; 16 | + (NSString *)mj_localizedStringForKey:(NSString *)key value:(nullable NSString *)value; 17 | + (NSString *)mj_localizedStringForKey:(NSString *)key; 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/UIScrollView+MJExtension.h: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | // UIScrollView+Extension.h 4 | // MJRefreshExample 5 | // 6 | // Created by MJ Lee on 14-5-28. 7 | // Copyright (c) 2014年 小码哥. All rights reserved. 8 | // 9 | 10 | #import 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface UIScrollView (MJExtension) 15 | @property (readonly, nonatomic) UIEdgeInsets mj_inset; 16 | 17 | @property (assign, nonatomic) CGFloat mj_insetT; 18 | @property (assign, nonatomic) CGFloat mj_insetB; 19 | @property (assign, nonatomic) CGFloat mj_insetL; 20 | @property (assign, nonatomic) CGFloat mj_insetR; 21 | 22 | @property (assign, nonatomic) CGFloat mj_offsetX; 23 | @property (assign, nonatomic) CGFloat mj_offsetY; 24 | 25 | @property (assign, nonatomic) CGFloat mj_contentW; 26 | @property (assign, nonatomic) CGFloat mj_contentH; 27 | @end 28 | 29 | NS_ASSUME_NONNULL_END 30 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/UIScrollView+MJRefresh.h: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | // UIScrollView+MJRefresh.h 4 | // MJRefreshExample 5 | // 6 | // Created by MJ Lee on 15/3/4. 7 | // Copyright (c) 2015年 小码哥. All rights reserved. 8 | // 给ScrollView增加下拉刷新、上拉刷新的功能 9 | 10 | #import 11 | #import "MJRefreshConst.h" 12 | 13 | @class MJRefreshHeader, MJRefreshFooter; 14 | 15 | NS_ASSUME_NONNULL_BEGIN 16 | 17 | @interface UIScrollView (MJRefresh) 18 | /** 下拉刷新控件 */ 19 | @property (strong, nonatomic, nullable) MJRefreshHeader *mj_header; 20 | @property (strong, nonatomic, nullable) MJRefreshHeader *header MJRefreshDeprecated("使用mj_header"); 21 | /** 上拉刷新控件 */ 22 | @property (strong, nonatomic, nullable) MJRefreshFooter *mj_footer; 23 | @property (strong, nonatomic, nullable) MJRefreshFooter *footer MJRefreshDeprecated("使用mj_footer"); 24 | 25 | #pragma mark - other 26 | - (NSInteger)mj_totalDataCount; 27 | 28 | @end 29 | 30 | NS_ASSUME_NONNULL_END 31 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/UIView+MJExtension.h: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | // UIView+Extension.h 4 | // MJRefreshExample 5 | // 6 | // Created by MJ Lee on 14-5-28. 7 | // Copyright (c) 2014年 小码哥. All rights reserved. 8 | // 9 | 10 | #import 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface UIView (MJExtension) 15 | @property (assign, nonatomic) CGFloat mj_x; 16 | @property (assign, nonatomic) CGFloat mj_y; 17 | @property (assign, nonatomic) CGFloat mj_w; 18 | @property (assign, nonatomic) CGFloat mj_h; 19 | @property (assign, nonatomic) CGSize mj_size; 20 | @property (assign, nonatomic) CGPoint mj_origin; 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /Example/Pods/MJRefresh/MJRefresh/UIView+MJExtension.m: -------------------------------------------------------------------------------- 1 | // 代码地址: https://github.com/CoderMJLee/MJRefresh 2 | // 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 3 | // UIView+Extension.m 4 | // MJRefreshExample 5 | // 6 | // Created by MJ Lee on 14-5-28. 7 | // Copyright (c) 2014年 小码哥. All rights reserved. 8 | // 9 | 10 | #import "UIView+MJExtension.h" 11 | 12 | @implementation UIView (MJExtension) 13 | - (void)setMj_x:(CGFloat)mj_x 14 | { 15 | CGRect frame = self.frame; 16 | frame.origin.x = mj_x; 17 | self.frame = frame; 18 | } 19 | 20 | - (CGFloat)mj_x 21 | { 22 | return self.frame.origin.x; 23 | } 24 | 25 | - (void)setMj_y:(CGFloat)mj_y 26 | { 27 | CGRect frame = self.frame; 28 | frame.origin.y = mj_y; 29 | self.frame = frame; 30 | } 31 | 32 | - (CGFloat)mj_y 33 | { 34 | return self.frame.origin.y; 35 | } 36 | 37 | - (void)setMj_w:(CGFloat)mj_w 38 | { 39 | CGRect frame = self.frame; 40 | frame.size.width = mj_w; 41 | self.frame = frame; 42 | } 43 | 44 | - (CGFloat)mj_w 45 | { 46 | return self.frame.size.width; 47 | } 48 | 49 | - (void)setMj_h:(CGFloat)mj_h 50 | { 51 | CGRect frame = self.frame; 52 | frame.size.height = mj_h; 53 | self.frame = frame; 54 | } 55 | 56 | - (CGFloat)mj_h 57 | { 58 | return self.frame.size.height; 59 | } 60 | 61 | - (void)setMj_size:(CGSize)mj_size 62 | { 63 | CGRect frame = self.frame; 64 | frame.size = mj_size; 65 | self.frame = frame; 66 | } 67 | 68 | - (CGSize)mj_size 69 | { 70 | return self.frame.size; 71 | } 72 | 73 | - (void)setMj_origin:(CGPoint)mj_origin 74 | { 75 | CGRect frame = self.frame; 76 | frame.origin = mj_origin; 77 | self.frame = frame; 78 | } 79 | 80 | - (CGPoint)mj_origin 81 | { 82 | return self.frame.origin; 83 | } 84 | @end 85 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - FDFullscreenPopGesture (1.1) 3 | - MJRefresh (3.4.3) 4 | - ZFPlayer (4.1.4): 5 | - ZFPlayer/AVPlayer (= 4.1.4) 6 | - ZFPlayer/ControlView (= 4.1.4) 7 | - ZFPlayer/Core (= 4.1.4) 8 | - ZFPlayer/ijkplayer (= 4.1.4) 9 | - ZFPlayer/AVPlayer (4.1.4): 10 | - ZFPlayer/Core 11 | - ZFPlayer/ControlView (4.1.4): 12 | - ZFPlayer/Core 13 | - ZFPlayer/Core (4.1.4) 14 | - ZFPlayer/ijkplayer (4.1.4): 15 | - ZFPlayer/Core 16 | 17 | DEPENDENCIES: 18 | - FDFullscreenPopGesture 19 | - MJRefresh 20 | - ZFPlayer (from `../`) 21 | 22 | SPEC REPOS: 23 | https://github.com/CocoaPods/Specs.git: 24 | - FDFullscreenPopGesture 25 | - MJRefresh 26 | 27 | EXTERNAL SOURCES: 28 | ZFPlayer: 29 | :path: "../" 30 | 31 | SPEC CHECKSUMS: 32 | FDFullscreenPopGesture: a8a620179e3d9c40e8e00256dcee1c1a27c6d0f0 33 | MJRefresh: 53e3e3219f204425ee6d3e62e8733d3295944cd6 34 | ZFPlayer: 92b1348740af355d416833383ae46170223f1302 35 | 36 | PODFILE CHECKSUM: a3fcbbaf309343c1c9575737d409bf95b447eef9 37 | 38 | COCOAPODS: 1.11.1 39 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FDFullscreenPopGesture/FDFullscreenPopGesture-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_FDFullscreenPopGesture : NSObject 3 | @end 4 | @implementation PodsDummy_FDFullscreenPopGesture 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FDFullscreenPopGesture/FDFullscreenPopGesture-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FDFullscreenPopGesture/FDFullscreenPopGesture.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/FDFullscreenPopGesture 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/FDFullscreenPopGesture" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/FDFullscreenPopGesture" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/FDFullscreenPopGesture 9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FDFullscreenPopGesture/FDFullscreenPopGesture.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/FDFullscreenPopGesture 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/FDFullscreenPopGesture" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/FDFullscreenPopGesture" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/FDFullscreenPopGesture 9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/FDFullscreenPopGesture/FDFullscreenPopGesture.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/FDFullscreenPopGesture 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/FDFullscreenPopGesture" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/FDFullscreenPopGesture" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/FDFullscreenPopGesture 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MJRefresh/MJRefresh-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_MJRefresh : NSObject 3 | @end 4 | @implementation PodsDummy_MJRefresh 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MJRefresh/MJRefresh-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MJRefresh/MJRefresh.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/MJRefresh" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/MJRefresh" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/MJRefresh 9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MJRefresh/MJRefresh.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/MJRefresh" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/MJRefresh" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/MJRefresh 9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/MJRefresh/MJRefresh.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/MJRefresh" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/MJRefresh" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/MJRefresh 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZFPlayer_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZFPlayer_Example/Pods-ZFPlayer_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ZFPlayer_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ZFPlayer_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZFPlayer_Example/Pods-ZFPlayer_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_ZFPlayer_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_ZFPlayer_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZFPlayer_Example/Pods-ZFPlayer_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/FDFullscreenPopGesture" "${PODS_ROOT}/Headers/Public/MJRefresh" "${PODS_ROOT}/Headers/Public/ZFPlayer" 5 | LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FDFullscreenPopGesture" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" "${PODS_CONFIGURATION_BUILD_DIR}/ZFPlayer" 6 | OTHER_LDFLAGS = $(inherited) -ObjC -l"FDFullscreenPopGesture" -l"MJRefresh" -l"ZFPlayer" -framework "AVFoundation" -framework "MediaPlayer" -framework "UIKit" 7 | PODS_BUILD_DIR = ${BUILD_DIR} 8 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 9 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZFPlayer_Example/Pods-ZFPlayer_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_ZFPlayer_Example { 2 | umbrella header "Pods-ZFPlayer_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ZFPlayer_Example/Pods-ZFPlayer_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/FDFullscreenPopGesture" "${PODS_ROOT}/Headers/Public/MJRefresh" "${PODS_ROOT}/Headers/Public/ZFPlayer" 5 | LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/FDFullscreenPopGesture" "${PODS_CONFIGURATION_BUILD_DIR}/MJRefresh" "${PODS_CONFIGURATION_BUILD_DIR}/ZFPlayer" 6 | OTHER_LDFLAGS = $(inherited) -ObjC -l"FDFullscreenPopGesture" -l"MJRefresh" -l"ZFPlayer" -framework "AVFoundation" -framework "MediaPlayer" -framework "UIKit" 7 | PODS_BUILD_DIR = ${BUILD_DIR} 8 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 9 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZFPlayer/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 3.0.3 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZFPlayer/ZFPlayer-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_ZFPlayer : NSObject 3 | @end 4 | @implementation PodsDummy_ZFPlayer 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZFPlayer/ZFPlayer-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZFPlayer/ZFPlayer-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "ZFAVPlayerManager.h" 14 | #import "UIImageView+ZFCache.h" 15 | #import "UIView+ZFFrame.h" 16 | #import "ZFLandScapeControlView.h" 17 | #import "ZFLoadingView.h" 18 | #import "ZFPlayerControlView.h" 19 | #import "ZFPortraitControlView.h" 20 | #import "ZFSliderView.h" 21 | #import "ZFSmallFloatControlView.h" 22 | #import "ZFUtilities.h" 23 | #import "ZFVolumeBrightnessView.h" 24 | #import "UIScrollView+ZFPlayer.h" 25 | #import "UIViewController+ZFPlayerRotation.h" 26 | #import "ZFFloatView.h" 27 | #import "ZFKVOController.h" 28 | #import "ZFOrientationObserver.h" 29 | #import "ZFPlayer.h" 30 | #import "ZFPlayerController.h" 31 | #import "ZFPlayerGestureControl.h" 32 | #import "ZFPlayerMediaControl.h" 33 | #import "ZFPlayerMediaPlayback.h" 34 | #import "ZFPlayerNotification.h" 35 | #import "ZFPlayerView.h" 36 | #import "ZFReachabilityManager.h" 37 | #import "KSMediaPlayerManager.h" 38 | 39 | FOUNDATION_EXPORT double ZFPlayerVersionNumber; 40 | FOUNDATION_EXPORT const unsigned char ZFPlayerVersionString[]; 41 | 42 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZFPlayer/ZFPlayer.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/ZFPlayer 3 | EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ZFPlayer" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/ZFPlayer" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT} 9 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 10 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 11 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 12 | SKIP_INSTALL = YES 13 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 14 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZFPlayer/ZFPlayer.modulemap: -------------------------------------------------------------------------------- 1 | framework module ZFPlayer { 2 | umbrella header "ZFPlayer-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZFPlayer/ZFPlayer.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/ZFPlayer 3 | EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ZFPlayer" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/ZFPlayer" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT} 9 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 10 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 11 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 12 | SKIP_INSTALL = YES 13 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 14 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ZFPlayer/ZFPlayer.xcconfig: -------------------------------------------------------------------------------- 1 | ARCHS[sdk=iphonesimulator*] = $(ARCHS_STANDARD_64_BIT) 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/ZFPlayer 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ZFPlayer" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/ZFPlayer" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Prefix.pch: -------------------------------------------------------------------------------- 1 | // The contents of this file are implicitly included at the beginning of every test case source file. 2 | 3 | #ifdef __OBJC__ 4 | 5 | 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /Example/Tests/Tests.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZFPlayerTests.m 3 | // ZFPlayerTests 4 | // 5 | // Created by renzifeng on 05/23/2018. 6 | // Copyright (c) 2018 renzifeng. All rights reserved. 7 | // 8 | 9 | @import XCTest; 10 | 11 | @interface Tests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation Tests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | // XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | 36 | -------------------------------------------------------------------------------- /Example/Tests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/ZFPlayer.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/ZFPlayer.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/ZFPlayer.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/ZFPlayer.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/ZFPlayer.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/ZFPlayer/CollectionView/Controller/ZFCollectionViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFCollectionViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 任子丰 on 2018/6/21. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ZFCollectionViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/ZFPlayer/CollectionView/Controller/ZFCollectionViewListController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFCollectionViewListController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2018/7/19. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ZFCollectionViewListController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/ZFPlayer/CollectionView/Controller/ZFDouyinCollectionViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFDouyinCollectionViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2019/6/4. 6 | // Copyright © 2019 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface ZFDouyinCollectionViewController : UIViewController 15 | 16 | @property (nonatomic, assign) ZFPlayerScrollViewDirection scrollViewDirection; 17 | 18 | - (void)playTheIndex:(NSInteger)index; 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /Example/ZFPlayer/CollectionView/Controller/ZFHorizontalCollectionViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFHorizontalCollectionViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2018/11/22. 6 | // Copyright © 2018 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface ZFHorizontalCollectionViewController : UIViewController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Example/ZFPlayer/CollectionView/View/ZFCollectionViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFCollectionViewCell.h 3 | // Player 4 | // 5 | // Created by 任子丰 on 17/3/22. 6 | // Copyright © 2017年 任子丰. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ZFTableData.h" 11 | 12 | @interface ZFCollectionViewCell : UICollectionViewCell 13 | @property (nonatomic, strong) UIImageView *coverImageView; 14 | @property (nonatomic, strong) UIButton *playBtn; 15 | /// 播放按钮block 16 | @property (nonatomic, copy ) void(^playBlock)(UIButton *sender); 17 | 18 | @property (nonatomic, strong) ZFTableData *data; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Example/ZFPlayer/CollectionView/View/ZFCollectionViewCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZFCollectionViewCell.m 3 | // Player 4 | // 5 | // Created by 任子丰 on 17/3/22. 6 | // Copyright © 2017年 任子丰. All rights reserved. 7 | // 8 | 9 | #import "ZFCollectionViewCell.h" 10 | #import 11 | 12 | @implementation ZFCollectionViewCell 13 | 14 | - (instancetype)initWithFrame:(CGRect)frame { 15 | self = [super initWithFrame:frame]; 16 | if (self) { 17 | self.coverImageView.tag = kPlayerViewTag; 18 | [self.contentView addSubview:self.coverImageView]; 19 | [self.coverImageView addSubview:self.playBtn]; 20 | } 21 | return self; 22 | } 23 | 24 | - (void)layoutSubviews { 25 | [super layoutSubviews]; 26 | self.coverImageView.frame = self.contentView.bounds; 27 | self.playBtn.frame = CGRectMake(0, 0, 44, 44); 28 | self.playBtn.center = self.coverImageView.center; 29 | } 30 | 31 | - (void)setData:(ZFTableData *)data { 32 | _data = data; 33 | [self.coverImageView setImageWithURLString:data.thumbnail_url placeholder:[UIImage imageNamed:@"loading_bgView"]]; 34 | } 35 | 36 | - (UIImageView *)coverImageView { 37 | if (!_coverImageView) { 38 | _coverImageView = [[UIImageView alloc] init]; 39 | _coverImageView.userInteractionEnabled = YES; 40 | _coverImageView.tag = kPlayerViewTag; 41 | _coverImageView.contentMode = UIViewContentModeScaleAspectFill; 42 | _coverImageView.clipsToBounds = YES; 43 | } 44 | return _coverImageView; 45 | } 46 | 47 | 48 | - (void)playBtnClick:(UIButton *)sender { 49 | if (self.playBlock) { 50 | self.playBlock(sender); 51 | } 52 | } 53 | 54 | - (UIButton *)playBtn { 55 | if (!_playBtn) { 56 | _playBtn = [UIButton buttonWithType:UIButtonTypeCustom]; 57 | [_playBtn setImage:[UIImage imageNamed:@"new_allPlay_44x44_"] forState:UIControlStateNormal]; 58 | [_playBtn addTarget:self action:@selector(playBtnClick:) forControlEvents:UIControlEventTouchUpInside]; 59 | } 60 | return _playBtn; 61 | } 62 | @end 63 | -------------------------------------------------------------------------------- /Example/ZFPlayer/CollectionView/View/ZFDouyinCollectionViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFDouyinCollectionViewCell.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2019/6/4. 6 | // Copyright © 2019 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ZFTableData.h" 11 | #import "ZFDouYinCellDelegate.h" 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface ZFDouyinCollectionViewCell : UICollectionViewCell 16 | 17 | @property (nonatomic, strong) ZFTableData *data; 18 | 19 | @property (nonatomic, weak) id delegate; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /Example/ZFPlayer/CustomControlView/Controller/ZFCustomControlViewViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFCustomControlViewViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2019/6/5. 6 | // Copyright © 2019 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface ZFCustomControlViewViewController : UIViewController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Example/ZFPlayer/CustomControlView/View/ZFCustomControlView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFCustomControlView.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2019/6/5. 6 | // Copyright © 2019 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import "ZFSpeedLoadingView.h" 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface ZFCustomControlView : UIView 16 | 17 | /// 控制层自动隐藏的时间,默认2.5秒 18 | @property (nonatomic, assign) NSTimeInterval autoHiddenTimeInterval; 19 | 20 | /// 控制层显示、隐藏动画的时长,默认0.25秒 21 | @property (nonatomic, assign) NSTimeInterval autoFadeTimeInterval; 22 | 23 | /** 24 | 设置标题、封面、全屏模式 25 | 26 | @param title 视频的标题 27 | @param coverUrl 视频的封面,占位图默认是灰色的 28 | @param fullScreenMode 全屏模式 29 | */ 30 | - (void)showTitle:(NSString *)title coverURLString:(NSString *)coverUrl fullScreenMode:(ZFFullScreenMode)fullScreenMode; 31 | 32 | @end 33 | 34 | NS_ASSUME_NONNULL_END 35 | -------------------------------------------------------------------------------- /Example/ZFPlayer/FullScreenViewController/ZFFullScreenViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFFullScreenViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2018/8/29. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ZFFullScreenViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/comment.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "comment.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/comment.imageset/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/comment.imageset/comment.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/defaultUserIcon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "defaultUserIcon.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "defaultUserIcon@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "defaultUserIcon@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/defaultUserIcon.imageset/defaultUserIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/defaultUserIcon.imageset/defaultUserIcon.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/defaultUserIcon.imageset/defaultUserIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/defaultUserIcon.imageset/defaultUserIcon@2x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/defaultUserIcon.imageset/defaultUserIcon@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/defaultUserIcon.imageset/defaultUserIcon@3x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/icon_play_pause.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "icon_play_pause@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "icon_play_pause@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/icon_play_pause.imageset/icon_play_pause@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/icon_play_pause.imageset/icon_play_pause@2x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/icon_play_pause.imageset/icon_play_pause@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/icon_play_pause.imageset/icon_play_pause@3x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/icon_titlebar_whiteback.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "icon_titlebar_whiteback@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "icon_titlebar_whiteback@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/icon_titlebar_whiteback.imageset/icon_titlebar_whiteback@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/icon_titlebar_whiteback.imageset/icon_titlebar_whiteback@2x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/icon_titlebar_whiteback.imageset/icon_titlebar_whiteback@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/icon_titlebar_whiteback.imageset/icon_titlebar_whiteback@3x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/img_video_loading.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "img_video_loading@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "img_video_loading@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/img_video_loading.imageset/img_video_loading@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/img_video_loading.imageset/img_video_loading@2x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/img_video_loading.imageset/img_video_loading@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/img_video_loading.imageset/img_video_loading@3x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/like.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "like.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/like.imageset/like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/like.imageset/like.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/loading_bgView.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "loading_bgView.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/loading_bgView.imageset/loading_bgView.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/loading_bgView.imageset/loading_bgView.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/logo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "logo.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/logo.imageset/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/logo.imageset/logo.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/new_allPause_44x44_.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "new_allPause_44x44_@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "new_allPause_44x44_@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/new_allPause_44x44_.imageset/new_allPause_44x44_@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/new_allPause_44x44_.imageset/new_allPause_44x44_@2x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/new_allPause_44x44_.imageset/new_allPause_44x44_@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/new_allPause_44x44_.imageset/new_allPause_44x44_@3x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/new_allPlay_44x44_.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "new_allPlay_44x44_@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "new_allPlay_44x44_@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/new_allPlay_44x44_.imageset/new_allPlay_44x44_@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/new_allPlay_44x44_.imageset/new_allPlay_44x44_@2x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/new_allPlay_44x44_.imageset/new_allPlay_44x44_@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/new_allPlay_44x44_.imageset/new_allPlay_44x44_@3x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/share.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "share.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/share.imageset/share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/share.imageset/share.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/zfplayer_back.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "zfplayer_back@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "zfplayer_back@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/zfplayer_back.imageset/zfplayer_back@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/zfplayer_back.imageset/zfplayer_back@2x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/zfplayer_back.imageset/zfplayer_back@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/zfplayer_back.imageset/zfplayer_back@3x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/zfplayer_rotaiton.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "filename" : "zfplayer_rotaiton@2x.png", 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "filename" : "zfplayer_rotaiton@3x.png", 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "author" : "xcode", 20 | "version" : 1 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/zfplayer_rotaiton.imageset/zfplayer_rotaiton@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/zfplayer_rotaiton.imageset/zfplayer_rotaiton@2x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Images.xcassets/zfplayer_rotaiton.imageset/zfplayer_rotaiton@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/Example/ZFPlayer/Images.xcassets/zfplayer_rotaiton.imageset/zfplayer_rotaiton@3x.png -------------------------------------------------------------------------------- /Example/ZFPlayer/Main/ZFTableSectionModel.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFTableSectionModel.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2019/6/4. 6 | // Copyright © 2019 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface ZFTableItem : NSObject 14 | 15 | @property (nonatomic, copy) NSString *title; 16 | @property (nonatomic, copy) NSString *subTitle; 17 | @property (nonatomic, copy) NSString *viewControllerName; 18 | 19 | + (instancetype)itemWithTitle:(NSString *)title subTitle:(NSString *)subTitle viewControllerName:(NSString *)name; 20 | 21 | @end 22 | 23 | @interface ZFTableSectionModel : NSObject 24 | 25 | @property (nonatomic, copy) NSString *title; 26 | @property (nonatomic, copy) NSArray *items; 27 | 28 | + (instancetype)sectionModeWithTitle:(NSString *)title items:(NSArray *)items; 29 | 30 | @end 31 | 32 | NS_ASSUME_NONNULL_END 33 | -------------------------------------------------------------------------------- /Example/ZFPlayer/Main/ZFTableSectionModel.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZFTableSectionModel.m 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2019/6/4. 6 | // Copyright © 2019 紫枫. All rights reserved. 7 | // 8 | 9 | #import "ZFTableSectionModel.h" 10 | 11 | @implementation ZFTableItem 12 | 13 | + (instancetype)itemWithTitle:(NSString *)title subTitle:(NSString *)subTitle viewControllerName:(NSString *)name { 14 | ZFTableItem *model = [[self alloc] init]; 15 | model.title = title; 16 | model.subTitle = subTitle; 17 | model.viewControllerName = name; 18 | return model; 19 | } 20 | 21 | @end 22 | 23 | @implementation ZFTableSectionModel 24 | 25 | + (instancetype)sectionModeWithTitle:(NSString *)title items:(NSArray *)items { 26 | ZFTableSectionModel *sectionModel = [[self alloc] init]; 27 | sectionModel.title = title; 28 | sectionModel.items = items; 29 | return sectionModel; 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Example/ZFPlayer/Main/ZFViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 任子丰 on 2018/6/7. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ZFViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/ZFPlayer/Normal/ZFNormalViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFNormalViewController.h 3 | // ZFPlayer 4 | // 5 | // Created by 紫枫 on 2018/3/21. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ZFNormalViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /Example/ZFPlayer/Other/ZFADViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFADViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2019/6/5. 6 | // Copyright © 2019 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface ZFADViewController : UIViewController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Example/ZFPlayer/Rotation/Keyboard/ZFKeyboardViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFKeyboardViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2018/5/25. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ZFKeyboardViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/ZFPlayer/Rotation/RotationVC/ZFRotationViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFRotationViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2019/6/4. 6 | // Copyright © 2019 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface ZFRotationViewController : UIViewController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Example/ZFPlayer/ScrollView/ZFScrollViewViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFScrollViewViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2019/6/5. 6 | // Copyright © 2019 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface ZFScrollViewViewController : UIViewController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/Controller/ZFAutoPlayerViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFAutoPlayerViewController.h 3 | // ZFPlayer 4 | // 5 | // Created by 紫枫 on 2018/5/14. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ZFAutoPlayerViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/Controller/ZFDouYinViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFDouYinViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2018/6/4. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ZFDouYinViewController : UIViewController 12 | 13 | - (void)playTheIndex:(NSInteger)index; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/Controller/ZFLightTableViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFLightTableViewController.h 3 | // ZFPlayer 4 | // 5 | // Created by 任子丰 on 2018/4/1. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ZFLightTableViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/Controller/ZFMixViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFMixViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 任子丰 on 2018/6/21. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ZFMixViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/Controller/ZFNotAutoPlayViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFNotAutoPlayViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2018/5/28. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ZFNotAutoPlayViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/Controller/ZFPlayerDetailViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFPlayerDetailViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2018/9/12. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface ZFPlayerDetailViewController : UIViewController 13 | 14 | @property (nonatomic, strong) ZFPlayerController *player; 15 | 16 | @property (nonatomic, copy) void(^detailVCPopCallback)(); 17 | 18 | @property (nonatomic, copy) void(^detailVCPlayCallback)(); 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/Controller/ZFSmallPlayViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFSmallPlayViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2018/5/28. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ZFSmallPlayViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/Controller/ZFTableHeaderViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFTableHeaderViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2018/10/30. 6 | // Copyright © 2018 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface ZFTableHeaderViewController : UIViewController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/Controller/ZFWChatViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFWChatViewController.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2020/7/11. 6 | // Copyright © 2020 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface ZFWChatViewController : UIViewController 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/Model/ZFTableData.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFTableData.h 3 | // ZFPlayer 4 | // 5 | // Created by 紫枫 on 2018/4/24. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface ZFTableData : NSObject 13 | @property (nonatomic, copy) NSString *nick_name; 14 | @property (nonatomic, copy) NSString *head; 15 | @property (nonatomic, assign) NSInteger agree_num; 16 | @property (nonatomic, assign) NSInteger share_num; 17 | @property (nonatomic, assign) NSInteger post_num; 18 | @property (nonatomic, copy) NSString *title; 19 | @property (nonatomic, assign) CGFloat thumbnail_width; 20 | @property (nonatomic, assign) CGFloat thumbnail_height; 21 | @property (nonatomic, assign) CGFloat video_duration; 22 | @property (nonatomic, assign) CGFloat video_width; 23 | @property (nonatomic, assign) CGFloat video_height; 24 | @property (nonatomic, copy) NSString *thumbnail_url; 25 | @property (nonatomic, copy) NSString *video_url; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/Model/ZFTableData.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZFTableData.m 3 | // ZFPlayer 4 | // 5 | // Created by 紫枫 on 2018/4/24. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import "ZFTableData.h" 10 | 11 | @implementation ZFTableData 12 | 13 | - (void)setValue:(id)value forUndefinedKey:(NSString *)key {} 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/Other/NSString+Size.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+Size.h 3 | // createImg 4 | // 5 | // Created by 紫枫 on 2018/4/3. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSString (Size) 12 | /** 13 | 根据字体、行数、行间距和指定的宽度constrainedWidth计算文本占据的size 14 | @param font 字体 15 | @param numberOfLines 显示文本行数,值为0不限制行数 16 | @param lineSpacing 行间距 17 | @param constrainedWidth 文本指定的宽度 18 | @return 返回文本占据的size 19 | */ 20 | - (CGSize)textSizeWithFont:(UIFont*)font 21 | numberOfLines:(NSInteger)numberOfLines 22 | lineSpacing:(CGFloat)lineSpacing 23 | constrainedWidth:(CGFloat)constrainedWidth; 24 | 25 | /** 26 | 根据字体、行数、行间距和指定的宽度constrainedWidth计算文本占据的size 27 | @param font 字体 28 | @param numberOfLines 显示文本行数,值为0不限制行数 29 | @param constrainedWidth 文本指定的宽度 30 | @return 返回文本占据的size 31 | */ 32 | - (CGSize)textSizeWithFont:(UIFont*)font 33 | numberOfLines:(NSInteger)numberOfLines 34 | constrainedWidth:(CGFloat)constrainedWidth; 35 | 36 | /// 计算字符串长度(一行时候) 37 | - (CGSize)textSizeWithFont:(UIFont*)font 38 | limitWidth:(CGFloat)maxWidth; 39 | 40 | - (CGSize)textSizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size lineBreakMode:(NSLineBreakMode)lineBreakMode; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/Other/ZFDouYinCellDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFDouYinCellDelegate.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 任子丰 on 2020/7/28. 6 | // Copyright © 2020 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @protocol ZFDouYinCellDelegate 14 | 15 | - (void)zf_douyinRotation; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/Other/ZFTableViewCellLayout.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFTableViewCellLayout.h 3 | // ZFPlayer 4 | // 5 | // Created by 紫枫 on 2018/5/22. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ZFTableData.h" 11 | 12 | @interface ZFTableViewCellLayout : NSObject 13 | @property (nonatomic, strong) ZFTableData *data; 14 | @property (nonatomic, readonly) CGRect headerRect; 15 | @property (nonatomic, readonly) CGRect nickNameRect; 16 | @property (nonatomic, readonly) CGRect videoRect; 17 | @property (nonatomic, readonly) CGRect playBtnRect; 18 | @property (nonatomic, readonly) CGRect titleLabelRect; 19 | @property (nonatomic, readonly) CGRect maskViewRect; 20 | @property (nonatomic, readonly) CGFloat height; 21 | @property (nonatomic, readonly) BOOL isVerticalVideo; 22 | 23 | - (instancetype)initWithData:(ZFTableData *)data; 24 | 25 | - (instancetype)initWXData:(ZFTableData *)data; 26 | 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/View/ZFADControlView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFADControlView.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2019/5/15. 6 | // Copyright © 2019 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface ZFADControlView : UIView 15 | 16 | @property (nonatomic, copy) void(^skipCallback)(void); 17 | 18 | @property (nonatomic, copy) void(^fullScreenCallback)(void); 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/View/ZFDouYinCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFDouYinCell.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2018/6/4. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ZFTableData.h" 11 | #import "ZFDouYinCellDelegate.h" 12 | 13 | @interface ZFDouYinCell : UITableViewCell 14 | 15 | @property (nonatomic, strong) ZFTableData *data; 16 | 17 | @property (nonatomic, weak) id delegate; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/View/ZFDouYinControlView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFDouYinControlView.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 任子丰 on 2018/6/4. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface ZFDouYinControlView : UIView 13 | 14 | - (void)resetControlView; 15 | 16 | - (void)showCoverViewWithUrl:(NSString *)coverUrl; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/View/ZFOtherCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFOtherCell.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 任子丰 on 2018/6/21. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ZFOtherCell : UITableViewCell 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/View/ZFOtherCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZFOtherCell.m 3 | // ZFPlayer_Example 4 | // 5 | // Created by 任子丰 on 2018/6/21. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import "ZFOtherCell.h" 10 | 11 | @interface ZFOtherCell () 12 | 13 | @end 14 | 15 | @implementation ZFOtherCell 16 | 17 | - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { 18 | self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; 19 | if (self) { 20 | self.selectionStyle = UITableViewCellSelectionStyleNone; 21 | self.textLabel.text = @"这是非视频类型cell"; 22 | self.textLabel.textAlignment = NSTextAlignmentCenter; 23 | } 24 | return self; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/View/ZFTableHeaderView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFTableHeaderView.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2018/10/30. 6 | // Copyright © 2018 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ZFTableData.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface ZFTableHeaderView : UIView 15 | 16 | @property (nonatomic, strong) ZFTableData *data; 17 | @property (nonatomic, strong, readonly) UIImageView *coverImageView; 18 | 19 | @property (nonatomic, copy) void(^playCallback)(void); 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/View/ZFTableHeaderView.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZFTableHeaderView.m 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2018/10/30. 6 | // Copyright © 2018 紫枫. All rights reserved. 7 | // 8 | 9 | #import "ZFTableHeaderView.h" 10 | #import 11 | #import "NSString+Size.h" 12 | 13 | @interface ZFTableHeaderView () 14 | @property (nonatomic, strong) UIImageView *coverImageView; 15 | @property (nonatomic, strong) UIButton *playBtn; 16 | @property (nonatomic, strong) NSIndexPath *indexPath; 17 | 18 | @end 19 | 20 | @implementation ZFTableHeaderView 21 | 22 | - (instancetype)initWithFrame:(CGRect)frame { 23 | self = [super initWithFrame:frame]; 24 | if (self) { 25 | [self addSubview:self.coverImageView]; 26 | [self.coverImageView addSubview:self.playBtn]; 27 | self.backgroundColor = [UIColor blackColor]; 28 | } 29 | return self; 30 | } 31 | 32 | - (void)layoutSubviews { 33 | [super layoutSubviews]; 34 | CGFloat min_x = 0; 35 | CGFloat min_y = 0; 36 | CGFloat min_w = 0; 37 | CGFloat min_h = 0; 38 | 39 | self.coverImageView.frame = self.bounds; 40 | 41 | min_w = 44; 42 | min_h = min_w; 43 | min_x = (CGRectGetWidth(self.coverImageView.frame)-min_w)/2; 44 | min_y = (CGRectGetHeight(self.coverImageView.frame)-min_h)/2; 45 | self.playBtn.frame = CGRectMake(min_x, min_y, min_w, min_h); 46 | } 47 | 48 | - (void)playBtnClick:(UIButton *)sender { 49 | if (self.playCallback) { 50 | self.playCallback(); 51 | } 52 | } 53 | 54 | #pragma mark - getter 55 | 56 | - (UIButton *)playBtn { 57 | if (!_playBtn) { 58 | _playBtn = [UIButton buttonWithType:UIButtonTypeCustom]; 59 | [_playBtn setImage:[UIImage imageNamed:@"new_allPlay_44x44_"] forState:UIControlStateNormal]; 60 | [_playBtn addTarget:self action:@selector(playBtnClick:) forControlEvents:UIControlEventTouchUpInside]; 61 | } 62 | return _playBtn; 63 | } 64 | 65 | - (UIImageView *)coverImageView { 66 | if (!_coverImageView) { 67 | _coverImageView = [[UIImageView alloc] init]; 68 | _coverImageView.userInteractionEnabled = YES; 69 | _coverImageView.tag = kPlayerViewTag; 70 | _coverImageView.contentMode = UIViewContentModeScaleAspectFill; 71 | _coverImageView.clipsToBounds = YES; 72 | _coverImageView.image = [UIImage imageNamed:@"loading_bgView"]; 73 | } 74 | return _coverImageView; 75 | } 76 | 77 | 78 | @end 79 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/View/ZFTableViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFTableViewCell.h 3 | // ZFPlayer 4 | // 5 | // Created by 紫枫 on 2018/4/3. 6 | // Copyright © 2018年 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "ZFTableData.h" 11 | #import "ZFTableViewCellLayout.h" 12 | 13 | @protocol ZFTableViewCellDelegate 14 | 15 | - (void)zf_playTheVideoAtIndexPath:(NSIndexPath *)indexPath; 16 | 17 | @end 18 | 19 | @interface ZFTableViewCell : UITableViewCell 20 | 21 | @property (nonatomic, strong) ZFTableViewCellLayout *layout; 22 | 23 | @property (nonatomic, strong, readonly) UIImageView *coverImageView; 24 | 25 | @property (nonatomic, copy) void(^playCallback)(void); 26 | 27 | - (void)setDelegate:(id)delegate withIndexPath:(NSIndexPath *)indexPath; 28 | 29 | - (void)showMaskView; 30 | 31 | - (void)hideMaskView; 32 | 33 | - (void)setNormalMode; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Example/ZFPlayer/TableView/View/ZFWeChatControlView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFWeChatControlView.h 3 | // ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2020/7/11. 6 | // Copyright © 2020 紫枫. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface ZFWeChatControlView : UIView 15 | 16 | - (void)showCoverViewWithUrl:(NSString *)coverUrl; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /Example/ZFPlayer/ZFAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFAppDelegate.h 3 | // ZFPlayer 4 | // 5 | // Created by renzifeng on 05/23/2018. 6 | // Copyright (c) 2018 renzifeng. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface ZFAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/ZFPlayer/ZFAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZFAppDelegate.m 3 | // ZFPlayer 4 | // 5 | // Created by renzifeng on 05/23/2018. 6 | // Copyright (c) 2018 renzifeng. All rights reserved. 7 | // 8 | 9 | #import "ZFAppDelegate.h" 10 | #import 11 | #import 12 | @implementation ZFAppDelegate 13 | 14 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 15 | return YES; 16 | } 17 | 18 | /// 在这里写支持的旋转方向,为了防止横屏方向,应用启动时候界面变为横屏模式 19 | - (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { 20 | ZFInterfaceOrientationMask orientationMask = [ZFLandscapeRotationManager supportedInterfaceOrientationsForWindow:window]; 21 | if (orientationMask != ZFInterfaceOrientationMaskUnknow) { 22 | return (UIInterfaceOrientationMask)orientationMask; 23 | } 24 | /// 这里是非播放器VC支持的方向 25 | return UIInterfaceOrientationMaskPortrait; 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /Example/ZFPlayer/ZFPlayer-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ZFPlayer 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(MARKETING_VERSION) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSAllowsArbitraryLoads 30 | 31 | 32 | UIBackgroundModes 33 | 34 | audio 35 | 36 | UILaunchStoryboardName 37 | LaunchScreen 38 | UIMainStoryboardFile 39 | Main 40 | UIRequiredDeviceCapabilities 41 | 42 | armv7 43 | 44 | UISupportedInterfaceOrientations 45 | 46 | UIInterfaceOrientationPortrait 47 | 48 | UISupportedInterfaceOrientations~ipad 49 | 50 | UIInterfaceOrientationPortrait 51 | 52 | UIUserInterfaceStyle 53 | Light 54 | 55 | 56 | -------------------------------------------------------------------------------- /Example/ZFPlayer/ZFPlayer-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | #import "ZFAppDelegate.h" 9 | 10 | #ifndef __IPHONE_5_0 11 | #warning "This project uses features only available in iOS SDK 5.0 and later." 12 | #endif 13 | 14 | #ifdef __OBJC__ 15 | @import UIKit; 16 | @import Foundation; 17 | 18 | // iphoneX iphoneXs iphoneXS MAX 宏定义 19 | #define ISIPHONE_X ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? ((NSInteger)(([[UIScreen mainScreen] currentMode].size.height/[[UIScreen mainScreen] currentMode].size.width)*100) == 216) : NO) 20 | 21 | /// 导航栏高度 22 | #define KNavBarHeight ISIPHONE_X ? 88 : 64 23 | 24 | #define kAPPDelegate ((ZFAppDelegate*)[[UIApplication sharedApplication] delegate]) 25 | 26 | /// 播放器view的tag,列表中UI控件唯一tag值 27 | #define kPlayerViewTag 100 28 | 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /Example/ZFPlayer/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/ZFPlayer/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ZFPlayer 4 | // 5 | // Created by renzifeng on 05/23/2018. 6 | // Copyright (c) 2018 renzifeng. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "ZFAppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([ZFAppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018 renzifeng 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /ZFPlayer.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint ZFPlayer.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'ZFPlayer' 11 | s.version = '4.1.4' 12 | s.summary = 'A good player made by renzifeng' 13 | s.homepage = 'https://github.com/renzifeng/ZFPlayer' 14 | s.license = { :type => 'MIT', :file => 'LICENSE' } 15 | s.author = { 'renzifeng' => 'zifeng1300@gmail.com' } 16 | s.source = { :git => 'https://github.com/renzifeng/ZFPlayer.git', :tag => s.version.to_s } 17 | s.social_media_url = 'http://weibo.com/zifeng1300' 18 | s.ios.deployment_target = '8.0' 19 | s.requires_arc = true 20 | s.static_framework = true 21 | s.default_subspec = 'Core' 22 | s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' } 23 | s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' } 24 | 25 | s.subspec 'Core' do |core| 26 | core.source_files = 'ZFPlayer/Classes/Core/**/*' 27 | core.public_header_files = 'ZFPlayer/Classes/Core/**/*.h' 28 | core.frameworks = 'UIKit', 'MediaPlayer', 'AVFoundation' 29 | end 30 | 31 | s.subspec 'ControlView' do |controlView| 32 | controlView.source_files = 'ZFPlayer/Classes/ControlView/**/*.{h,m}' 33 | controlView.public_header_files = 'ZFPlayer/Classes/ControlView/**/*.h' 34 | controlView.resource = 'ZFPlayer/Classes/ControlView/ZFPlayer.bundle' 35 | controlView.dependency 'ZFPlayer/Core' 36 | end 37 | 38 | s.subspec 'AVPlayer' do |avPlayer| 39 | avPlayer.source_files = 'ZFPlayer/Classes/AVPlayer/**/*.{h,m}' 40 | avPlayer.public_header_files = 'ZFPlayer/Classes/AVPlayer/**/*.h' 41 | avPlayer.dependency 'ZFPlayer/Core' 42 | end 43 | 44 | s.subspec 'ijkplayer' do |ijkplayer| 45 | ijkplayer.source_files = 'ZFPlayer/Classes/ijkplayer/*.{h,m}' 46 | ijkplayer.public_header_files = 'ZFPlayer/Classes/ijkplayer/*.h' 47 | ijkplayer.dependency 'ZFPlayer/Core' 48 | ijkplayer.dependency 'IJKMediaFramework' 49 | end 50 | 51 | end 52 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/AVPlayer/ZFAVPlayerManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFAVPlayerManager.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | #import 27 | #if __has_include() 28 | #import 29 | #else 30 | #import "ZFPlayerMediaPlayback.h" 31 | #endif 32 | 33 | @interface ZFAVPlayerManager : NSObject 34 | 35 | @property (nonatomic, strong, readonly) AVURLAsset *asset; 36 | @property (nonatomic, strong, readonly) AVPlayerItem *playerItem; 37 | @property (nonatomic, strong, readonly) AVPlayer *player; 38 | @property (nonatomic, assign) NSTimeInterval timeRefreshInterval; 39 | /// 视频请求头 40 | @property (nonatomic, strong) NSDictionary *requestHeader; 41 | 42 | @property (nonatomic, strong, readonly) AVPlayerLayer *avPlayerLayer; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/UIView+ZFFrame.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+ZFFrame.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | 27 | @interface UIView (ZFFrame) 28 | 29 | @property (nonatomic) CGFloat zf_x; 30 | @property (nonatomic) CGFloat zf_y; 31 | @property (nonatomic) CGFloat zf_width; 32 | @property (nonatomic) CGFloat zf_height; 33 | 34 | @property (nonatomic) CGFloat zf_top; 35 | @property (nonatomic) CGFloat zf_bottom; 36 | @property (nonatomic) CGFloat zf_left; 37 | @property (nonatomic) CGFloat zf_right; 38 | 39 | @property (nonatomic) CGFloat zf_centerX; 40 | @property (nonatomic) CGFloat zf_centerY; 41 | 42 | @property (nonatomic) CGPoint zf_origin; 43 | @property (nonatomic) CGSize zf_size; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFLoadingView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFLoadingView.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | 27 | NS_ASSUME_NONNULL_BEGIN 28 | 29 | typedef NS_ENUM(NSUInteger, ZFLoadingType) { 30 | ZFLoadingTypeKeep, 31 | ZFLoadingTypeFadeOut, 32 | }; 33 | 34 | @interface ZFLoadingView : UIView 35 | 36 | /// default is ZFLoadingTypeKeep. 37 | @property (nonatomic, assign) ZFLoadingType animType; 38 | 39 | /// default is whiteColor. 40 | @property (nonatomic, strong, null_resettable) UIColor *lineColor; 41 | 42 | /// Sets the line width of the spinner's circle. 43 | @property (nonatomic) CGFloat lineWidth; 44 | 45 | /// Sets whether the view is hidden when not animating. 46 | @property (nonatomic) BOOL hidesWhenStopped; 47 | 48 | /// Property indicating the duration of the animation, default is 1.5s. 49 | @property (nonatomic, readwrite) NSTimeInterval duration; 50 | 51 | /// anima state 52 | @property (nonatomic, assign, readonly, getter=isAnimating) BOOL animating; 53 | 54 | /** 55 | * Starts animation of the spinner. 56 | */ 57 | - (void)startAnimating; 58 | 59 | /** 60 | * Stops animation of the spinnner. 61 | */ 62 | - (void)stopAnimating; 63 | 64 | @end 65 | 66 | NS_ASSUME_NONNULL_END 67 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFNetworkSpeedMonitor.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFNetworkSpeedMonitor.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | 27 | extern NSString *const ZFDownloadNetworkSpeedNotificationKey; 28 | extern NSString *const ZFUploadNetworkSpeedNotificationKey; 29 | extern NSString *const ZFNetworkSpeedNotificationKey; 30 | 31 | @interface ZFNetworkSpeedMonitor : NSObject 32 | 33 | @property (nonatomic, copy, readonly) NSString *downloadNetworkSpeed; 34 | @property (nonatomic, copy, readonly) NSString *uploadNetworkSpeed; 35 | 36 | - (void)startNetworkSpeedMonitor; 37 | - (void)stopNetworkSpeedMonitor; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_back_full@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_back_full@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_back_full@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_back_full@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_battery_lightning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_battery_lightning.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_bottom_shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_bottom_shadow.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_brightness_high@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_brightness_high@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_brightness_high@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_brightness_high@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_brightness_low@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_brightness_low@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_brightness_low@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_brightness_low@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_close@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_close@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_close@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_close@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_closeWatch@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_closeWatch@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_closeWatch@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_closeWatch@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_fast_backward@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_fast_backward@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_fast_backward@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_fast_backward@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_fast_forward@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_fast_forward@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_fast_forward@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_fast_forward@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_fullscreen@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_fullscreen@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_fullscreen@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_fullscreen@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_lock-nor@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_lock-nor@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_lock-nor@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_lock-nor@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_muted@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_muted@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_muted@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_muted@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_next@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_next@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_next@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_next@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_pause@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_pause@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_pause@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_pause@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_play@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_play@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_play@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_play@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_shrinkscreen@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_shrinkscreen@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_shrinkscreen@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_shrinkscreen@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_slider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_slider.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_slider@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_slider@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_slider@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_slider@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_top_shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_top_shadow.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_unlock-nor@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_unlock-nor@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_unlock-nor@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_unlock-nor@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_volume_high@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_volume_high@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_volume_high@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_volume_high@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_volume_low@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_volume_low@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_volume_low@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/ZFPlayer_volume_low@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/new_allPause_44x44_@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/new_allPause_44x44_@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/new_allPause_44x44_@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/new_allPause_44x44_@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/new_allPlay_44x44_@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/new_allPlay_44x44_@2x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayer.bundle/new_allPlay_44x44_@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renzifeng/ZFPlayer/1ede0b9fd80d52a1474201ee506285c9792acb46/ZFPlayer/Classes/ControlView/ZFPlayer.bundle/new_allPlay_44x44_@3x.png -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFPlayerStatusBar.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFPlayerStatusBar.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | 27 | NS_ASSUME_NONNULL_BEGIN 28 | 29 | @interface ZFPlayerStatusBar : UIView 30 | 31 | /// 刷新时间间隔,默认3秒 32 | @property (nonatomic, assign) NSTimeInterval refreshTime; 33 | 34 | - (void)startTimer; 35 | 36 | - (void)destoryTimer; 37 | 38 | @end 39 | 40 | 41 | 42 | NS_ASSUME_NONNULL_END 43 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFSmallFloatControlView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFSmallFloatControlView.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | 27 | @interface ZFSmallFloatControlView : UIView 28 | 29 | @property (nonatomic, copy, nullable) void(^closeClickCallback)(void); 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFSpeedLoadingView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFSpeedLoadingView.h 3 | // Pods-ZFPlayer_Example 4 | // 5 | // Created by 紫枫 on 2018/6/27. 6 | // 7 | 8 | #import 9 | #import "ZFLoadingView.h" 10 | 11 | @interface ZFSpeedLoadingView : UIView 12 | 13 | @property (nonatomic, strong) ZFLoadingView *loadingView; 14 | 15 | @property (nonatomic, strong) UILabel *speedTextLabel; 16 | 17 | /** 18 | * Starts animation of the spinner. 19 | */ 20 | - (void)startAnimating; 21 | 22 | /** 23 | * Stops animation of the spinnner. 24 | */ 25 | - (void)stopAnimating; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFUtilities.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFUtilities.m 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | #import 27 | 28 | /// iPhoneX iPhoneXS iPhoneXS Max iPhoneXR 机型判断 29 | #define iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? ((NSInteger)(([[UIScreen mainScreen] currentMode].size.height/[[UIScreen mainScreen] currentMode].size.width)*100) == 216) : NO) 30 | 31 | #define ZFPlayer_Image(file) [ZFUtilities imageNamed:file] 32 | 33 | // 屏幕的宽 34 | #define ZFPlayer_ScreenWidth [[UIScreen mainScreen] bounds].size.width 35 | // 屏幕的高 36 | #define ZFPlayer_ScreenHeight [[UIScreen mainScreen] bounds].size.height 37 | 38 | #define UIColorFromHex(rgbValue) [UIColor \ 39 | colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \ 40 | green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \ 41 | blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0] 42 | 43 | @interface ZFUtilities : NSObject 44 | 45 | + (NSString *)convertTimeSecond:(NSInteger)timeSecond; 46 | 47 | + (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size; 48 | 49 | + (UIImage *)imageNamed:(NSString *)name; 50 | 51 | @end 52 | 53 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/ControlView/ZFVolumeBrightnessView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFVolumeBrightnessView.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | 27 | typedef NS_ENUM(NSInteger, ZFVolumeBrightnessType) { 28 | ZFVolumeBrightnessTypeVolume, // volume 29 | ZFVolumeBrightnessTypeumeBrightness // brightness 30 | }; 31 | 32 | @interface ZFVolumeBrightnessView : UIView 33 | 34 | @property (nonatomic, assign, readonly) ZFVolumeBrightnessType volumeBrightnessType; 35 | @property (nonatomic, strong, readonly) UIProgressView *progressView; 36 | @property (nonatomic, strong, readonly) UIImageView *iconImageView; 37 | 38 | - (void)updateProgress:(CGFloat)progress withVolumeBrightnessType:(ZFVolumeBrightnessType)volumeBrightnessType; 39 | 40 | /// 添加系统音量view 41 | - (void)addSystemVolumeView; 42 | 43 | /// 移除系统音量view 44 | - (void)removeSystemVolumeView; 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFFloatView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFFloatView.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | 27 | @interface ZFFloatView : UIView 28 | 29 | /// The parent View 30 | @property(nonatomic, weak) UIView *parentView; 31 | 32 | /// Safe margins, mainly for those with Navbar and tabbar 33 | @property(nonatomic, assign) UIEdgeInsets safeInsets; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFKVOController.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIScrollView+ZFPlayer.m 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | 27 | @interface ZFKVOController : NSObject 28 | 29 | - (instancetype)initWithTarget:(NSObject *)target; 30 | 31 | - (void)safelyAddObserver:(NSObject *)observer 32 | forKeyPath:(NSString *)keyPath 33 | options:(NSKeyValueObservingOptions)options 34 | context:(void *)context; 35 | - (void)safelyRemoveObserver:(NSObject *)observer 36 | forKeyPath:(NSString *)keyPath; 37 | 38 | - (void)safelyRemoveAllObservers; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFLandscapeRotationManager_iOS15.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFLandscapeRotationManager_iOS15.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2020年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import "ZFLandscapeRotationManager.h" 26 | 27 | NS_ASSUME_NONNULL_BEGIN 28 | 29 | @interface ZFLandscapeRotationManager_iOS15 : ZFLandscapeRotationManager 30 | 31 | @end 32 | 33 | NS_ASSUME_NONNULL_END 34 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFLandscapeRotationManager_iOS16.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFLandscapeRotationManager_iOS16.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2020年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import "ZFLandscapeRotationManager.h" 26 | 27 | NS_ASSUME_NONNULL_BEGIN 28 | 29 | @interface ZFLandscapeRotationManager_iOS16 : ZFLandscapeRotationManager 30 | 31 | @end 32 | 33 | NS_ASSUME_NONNULL_END 34 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFLandscapeViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFFullscreenViewController.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2020年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | @class ZFLandscapeViewController; 27 | 28 | NS_ASSUME_NONNULL_BEGIN 29 | 30 | @protocol ZFLandscapeViewControllerDelegate 31 | @optional 32 | - (BOOL)ls_shouldAutorotate; 33 | - (void)rotationFullscreenViewController:(ZFLandscapeViewController *)viewController viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id)coordinator; 34 | 35 | @end 36 | 37 | @interface ZFLandscapeViewController : UIViewController 38 | 39 | @property (nonatomic, weak, nullable) id delegate; 40 | 41 | @property (nonatomic, assign) BOOL disableAnimations; 42 | 43 | @property (nonatomic, assign) BOOL statusBarHidden; 44 | /// default is UIStatusBarStyleLightContent. 45 | @property (nonatomic, assign) UIStatusBarStyle statusBarStyle; 46 | /// defalut is UIStatusBarAnimationSlide. 47 | @property (nonatomic, assign) UIStatusBarAnimation statusBarAnimation; 48 | 49 | @end 50 | 51 | NS_ASSUME_NONNULL_END 52 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFLandscapeViewController_iOS15.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFLandscapeViewController_iOS15.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2020年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import "ZFLandscapeViewController.h" 26 | 27 | NS_ASSUME_NONNULL_BEGIN 28 | 29 | @interface ZFLandscapeViewController_iOS15 : ZFLandscapeViewController 30 | 31 | @property (nonatomic, strong, readonly) UIView *playerSuperview; 32 | 33 | @end 34 | 35 | NS_ASSUME_NONNULL_END 36 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFLandscapeViewController_iOS15.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZFLandscapeViewController_iOS15.m 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2020年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import "ZFLandscapeViewController_iOS15.h" 26 | 27 | @implementation ZFLandscapeViewController_iOS15 28 | 29 | - (void)viewDidLoad { 30 | [super viewDidLoad]; 31 | _playerSuperview = [[UIView alloc] initWithFrame:CGRectZero]; 32 | _playerSuperview.backgroundColor = [UIColor clearColor]; 33 | [self.view addSubview:_playerSuperview]; 34 | } 35 | 36 | - (BOOL)shouldAutorotate { 37 | return [self.delegate ls_shouldAutorotate]; 38 | } 39 | 40 | - (UIInterfaceOrientationMask)supportedInterfaceOrientations { 41 | return UIInterfaceOrientationMaskAllButUpsideDown; 42 | } 43 | 44 | - (BOOL)prefersHomeIndicatorAutoHidden { 45 | return YES; 46 | } 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFLandscapeWindow.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFLandScaprWindow.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2020年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | #import "ZFLandscapeViewController.h" 27 | @class ZFLandscapeRotationManager; 28 | 29 | NS_ASSUME_NONNULL_BEGIN 30 | 31 | @interface ZFLandscapeWindow : UIWindow 32 | 33 | @property (nonatomic, weak) ZFLandscapeRotationManager *rotationManager; 34 | 35 | @end 36 | 37 | NS_ASSUME_NONNULL_END 38 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFPersentInteractiveTransition.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFPersentInteractiveTransition.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2020年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | 26 | #import 27 | #import "ZFOrientationObserver.h" 28 | 29 | @interface ZFPersentInteractiveTransition : UIPercentDrivenInteractiveTransition 30 | 31 | @property (nonatomic, weak) id delagate; 32 | 33 | @property (nonatomic, assign) BOOL interation; 34 | 35 | /// default is ZFDisablePortraitGestureTypesNone. 36 | @property (nonatomic, assign) ZFDisablePortraitGestureTypes disablePortraitGestureTypes; 37 | 38 | @property (nonatomic, assign) BOOL fullScreenAnimation; 39 | 40 | @property (nonatomic, assign) CGRect contentFullScreenRect; 41 | 42 | @property (nonatomic, weak) UIViewController *viewController; 43 | 44 | - (void)updateContentView:(UIView *)contenView 45 | containerView:(UIView *)containerView; 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFPlayer.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFPlayer.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | 27 | //! Project version number for ZFPlayer. 28 | FOUNDATION_EXPORT double ZFPlayerVersionNumber; 29 | 30 | //! Project version string for ZFPlayer. 31 | FOUNDATION_EXPORT const unsigned char ZFPlayerVersionString[]; 32 | 33 | #import "ZFPlayerController.h" 34 | #import "ZFPlayerMediaControl.h" 35 | #import "ZFKVOController.h" 36 | #import "UIScrollView+ZFPlayer.h" 37 | #import "ZFPlayerLogManager.h" 38 | #import "ZFPlayerConst.h" 39 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFPlayerLogManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFPlayerLogManager.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #define ZFPlayerLog(format,...) [ZFPlayerLogManager logWithFunction:__FUNCTION__ lineNumber:__LINE__ formatString:[NSString stringWithFormat:format, ##__VA_ARGS__]] 26 | 27 | #import 28 | #import 29 | 30 | @interface ZFPlayerLogManager : NSObject 31 | 32 | // Set the log output status. 33 | + (void)setLogEnable:(BOOL)enable; 34 | 35 | // Gets the log output status. 36 | + (BOOL)getLogEnable; 37 | 38 | /// Get ZFPlayer version. 39 | + (NSString *)version; 40 | 41 | // Log output method. 42 | + (void)logWithFunction:(const char *)function lineNumber:(int)lineNumber formatString:(NSString *)formatString; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFPlayerLogManager.m: -------------------------------------------------------------------------------- 1 | // 2 | // ZFPlayerLogManager.m 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import "ZFPlayerLogManager.h" 26 | 27 | static BOOL kLogEnable = NO; 28 | 29 | @implementation ZFPlayerLogManager 30 | 31 | + (void)setLogEnable:(BOOL)enable { 32 | kLogEnable = enable; 33 | } 34 | 35 | + (BOOL)getLogEnable { 36 | return kLogEnable; 37 | } 38 | 39 | + (NSString *)version { 40 | return @"4.1.2"; 41 | } 42 | 43 | + (void)logWithFunction:(const char *)function lineNumber:(int)lineNumber formatString:(NSString *)formatString { 44 | if ([self getLogEnable]) { 45 | NSLog(@"%s[%d]%@", function, lineNumber, formatString); 46 | } 47 | } 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFPlayerNotification.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFPlayerNotification.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | #import 27 | 28 | NS_ASSUME_NONNULL_BEGIN 29 | 30 | typedef NS_ENUM(NSUInteger, ZFPlayerBackgroundState) { 31 | ZFPlayerBackgroundStateForeground, // Enter the foreground from the background. 32 | ZFPlayerBackgroundStateBackground, // From the foreground to the background. 33 | }; 34 | 35 | @interface ZFPlayerNotification : NSObject 36 | 37 | @property (nonatomic, readonly) ZFPlayerBackgroundState backgroundState; 38 | 39 | @property (nonatomic, copy, nullable) void(^willResignActive)(ZFPlayerNotification *registrar); 40 | 41 | @property (nonatomic, copy, nullable) void(^didBecomeActive)(ZFPlayerNotification *registrar); 42 | 43 | @property (nonatomic, copy, nullable) void(^newDeviceAvailable)(ZFPlayerNotification *registrar); 44 | 45 | @property (nonatomic, copy, nullable) void(^oldDeviceUnavailable)(ZFPlayerNotification *registrar); 46 | 47 | @property (nonatomic, copy, nullable) void(^categoryChange)(ZFPlayerNotification *registrar); 48 | 49 | @property (nonatomic, copy, nullable) void(^volumeChanged)(float volume); 50 | 51 | @property (nonatomic, copy, nullable) void(^audioInterruptionCallback)(AVAudioSessionInterruptionType interruptionType); 52 | 53 | - (void)addNotification; 54 | 55 | - (void)removeNotification; 56 | 57 | @end 58 | 59 | NS_ASSUME_NONNULL_END 60 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFPlayerView.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFPlayerView.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | #import "ZFPlayerConst.h" 27 | 28 | @interface ZFPlayerView : UIView 29 | 30 | /// player content view. 31 | @property (nonatomic, strong) UIView *playerView; 32 | 33 | /// Determines how the content scales to fit the view. 34 | @property (nonatomic, assign) ZFPlayerScalingMode scalingMode; 35 | 36 | /// The video size. 37 | @property (nonatomic, assign) CGSize presentationSize; 38 | 39 | /// The cover for playerView. 40 | @property (nonatomic, strong, readonly) UIImageView *coverImageView; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFPortraitViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFPortraitViewController.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2020年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | #import "ZFOrientationObserver.h" 27 | 28 | NS_ASSUME_NONNULL_BEGIN 29 | 30 | @interface ZFPortraitViewController : UIViewController 31 | 32 | /// The block invoked When player will rotate. 33 | @property (nonatomic, copy, nullable) void(^orientationWillChange)(BOOL isFullScreen); 34 | 35 | /// The block invoked when player rotated. 36 | @property (nonatomic, copy, nullable) void(^orientationDidChanged)(BOOL isFullScreen); 37 | 38 | @property (nonatomic, strong) UIView *contentView; 39 | 40 | @property (nonatomic, strong) UIView *containerView; 41 | 42 | @property (nonatomic, assign) BOOL statusBarHidden; 43 | 44 | /// default is UIStatusBarStyleLightContent. 45 | @property (nonatomic, assign) UIStatusBarStyle statusBarStyle; 46 | /// defalut is UIStatusBarAnimationSlide. 47 | @property (nonatomic, assign) UIStatusBarAnimation statusBarAnimation; 48 | 49 | /// default is ZFDisablePortraitGestureTypesNone. 50 | @property (nonatomic, assign) ZFDisablePortraitGestureTypes disablePortraitGestureTypes; 51 | 52 | @property (nonatomic, assign) CGSize presentationSize; 53 | 54 | @property (nonatomic, assign) BOOL fullScreenAnimation; 55 | 56 | @property (nonatomic, assign) NSTimeInterval duration; 57 | 58 | @end 59 | 60 | NS_ASSUME_NONNULL_END 61 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/Core/ZFPresentTransition.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFPresentTransition.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2020年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | #import "ZFOrientationObserver.h" 27 | 28 | typedef NS_ENUM(NSUInteger, ZFPresentTransitionType) { 29 | ZFPresentTransitionTypePresent, 30 | ZFPresentTransitionTypeDismiss, 31 | }; 32 | 33 | @interface ZFPresentTransition : NSObject 34 | 35 | @property (nonatomic, weak) id delagate; 36 | 37 | @property (nonatomic, assign) CGRect contentFullScreenRect; 38 | 39 | @property (nonatomic, assign, getter=isFullScreen) BOOL fullScreen; 40 | 41 | @property (nonatomic, assign) BOOL interation; 42 | 43 | @property (nonatomic, assign) NSTimeInterval duration; 44 | 45 | - (void)transitionWithTransitionType:(ZFPresentTransitionType)type 46 | contentView:(UIView *)contentView 47 | containerView:(UIView *)containerView; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /ZFPlayer/Classes/ijkplayer/ZFIJKPlayerManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // ZFIJKPlayerManager.h 3 | // ZFPlayer 4 | // 5 | // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng ) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | #if __has_include() 27 | #import 28 | #else 29 | #import "ZFPlayerMediaPlayback.h" 30 | #endif 31 | 32 | #if __has_include() 33 | #import 34 | 35 | @interface ZFIJKPlayerManager : NSObject 36 | 37 | @property (nonatomic, strong, readonly) IJKFFMoviePlayerController *player; 38 | 39 | @property (nonatomic, strong, readonly) IJKFFOptions *options; 40 | 41 | @property (nonatomic, assign) NSTimeInterval timeRefreshInterval; 42 | 43 | @end 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------