Jvaeyhcd / Hcdcacheplayer
Licence: mit
A video player with cache.
Stars: ✭ 198
Labels
Projects that are alternatives of or similar to Hcdcacheplayer
Summerslider
🍭 SummerSlider that can distinguish the parts where the advertisement of the video player comes out
Stars: ✭ 61 (-69.19%)
Mutual labels: avplayer
Swifty360player
iOS 360-degree video player streaming from an AVPlayer.
Stars: ✭ 118 (-40.4%)
Mutual labels: avplayer
Sjvideoplayer
iOS VideoPlayer MediaPlayer video player media player 短视频播放器 可接入 ijkplayer aliplayer alivodplayer plplayer
Stars: ✭ 2,066 (+943.43%)
Mutual labels: avplayer
Audioplayermanager
⚠️ No longer maintained ⚠️ Small Swift Wrapper and Queue-Manager around AVPlayer which let you play MediaPlayer items and stream songs from URLs.
Stars: ✭ 78 (-60.61%)
Mutual labels: avplayer
Oldpodcasts
A clone of Apple's Podcasts. UIKit version.
Stars: ✭ 128 (-35.35%)
Mutual labels: avplayer
Kjplayerdemo
视频播放壳子:动态切换内核,支持边下边播边缓存的播放器方案,视频支持格式:mp4、m3u8、wav、avi,音频支持格式:midi、mp3
Stars: ✭ 60 (-69.7%)
Mutual labels: avplayer
Modernavplayer
ModernAVPlayer is a persistence AVPlayer wrapper
Stars: ✭ 179 (-9.6%)
Mutual labels: avplayer
Abmediaview
Media view which subclasses UIImageView, and can display & load images, videos, GIFs, and audio and from the web, and has functionality to minimize from fullscreen, as well as show GIF previews for videos.
Stars: ✭ 79 (-60.1%)
Mutual labels: avplayer
Youtubedirectlinkextractor
Get the direct link to a YouTube video for AVPlayer
Stars: ✭ 76 (-61.62%)
Mutual labels: avplayer
Avplayeroverlay
AVPlayer with custom controls, full screen mode, subtitles (.srt), Picture-In-Picture and AirPlay features.
Stars: ✭ 59 (-70.2%)
Mutual labels: avplayer
Akvideoimageview
UIImageView subclass that allows you to display a looped video and dynamically switch it.
Stars: ✭ 123 (-37.88%)
Mutual labels: avplayer
Fradioplayer
A simple radio player framework for iOS, macOS, tvOS.
Stars: ✭ 183 (-7.58%)
Mutual labels: avplayer
Lyricsanalysis
iOS音乐播放器之锁屏效果(仿网易云音乐和QQ音乐)+歌词解析 :锁屏歌曲信息、控制台远程控制音乐播放:暂停/播放、上一首/下一首、快进/快退、列表菜单弹框和拖拽控制台的进度条调节进度(结合了QQ音乐和网易云音乐在锁屏状态下的效果)、歌词解析并随音乐滚动显示。
Stars: ✭ 169 (-14.65%)
Mutual labels: avplayer
Bmplayer
A video player for iOS, based on AVPlayer, support the horizontal, vertical screen. support adjust volume, brightness and seek by slide, support subtitles.
Stars: ✭ 1,736 (+776.77%)
Mutual labels: avplayer
HcdCachePlayer
HcdCacheVideoPlayer实现了边下边播在线视频,并且能将在线视频缓存在本地,支持左右滑动手势来调整视频播放进度,上下滑动手势调节音量大小,并且支持全屏播放。此控件使用了Masonry自动布局来实现全屏播放时的界面布局。
特性
- 使用AVPlayer开发,带缓存效果,对于同一个视频不用每次都去请求网络
- 支持横、竖屏切换
- 支持在视频上左右滑动调节播放进度
- 视频右边上下滑动调节音量
- 视频左边上下滑动调节亮度
安装
原始方法
可以可手动下载解压,然后将hcdCachePlayer文件夹拖入您的项目中,需要使用到MobileCoreServices.framework和AVFoundation.framework这两个库。
CocoaPods
采用CocoaPods方法安装,在您的Podfile文件中添加
pod 'HcdCachePlayer'
然后使用如下命令安装
pod install --verbose --no-repo-update
或者更新
pod update --verbose --no-repo-update
用法
在需要使用播放器的页面
#import "HcdCacheVideoPlayer.h"
然后创建一个View用于放置视频即可
HcdCacheVideoPlayer *play = [HcdCacheVideoPlayer sharedInstance];
UIView *videoView = [[UIView alloc] init];
videoView.frame = CGRectMake(0, 64, kScreenWidth, kScreenWidth * 0.5625);
[self.view addSubview:videoView];
NSURL *url = [NSURL URLWithString:@""];//您要播放的url地址
[play playWithUrl:[NSURL URLWithString:self.videoUrlStr]
showView:videoView
andSuperView:self.view
withCache:YES];
TODO
使用AVPlayer封装带缓存的音乐播放器。 如果您觉得对您有所帮助您可以star一下,如果您在使用过程中发现什么bug欢迎Issues我。
第一次使用Cocoapods制作,所以写了一片文章做了个笔记: 《CocoaPods的制作过程》
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].