Comments (1)
CTVideoView有一个time的category
你通过- (void)setShouldObservePlayTime:(BOOL)shouldObservePlayTime withTimeGapToObserve:(CGFloat)timeGapToObserve
设置shouldObservePlayTime为YES,以及监听的间隔(每隔0.5秒告知一次当前播放时间还是每隔1秒告知一次播放时间,这个间隔你可以自己定)。
然后把timeDelegate赋值过去,这样你就会知道当前视频总时长、当前视频播放的时间,根据这个你就能绘制出进度条。
最后这个category下有- (void)moveToSecond:(CGFloat)second shouldPlay:(BOOL)shouldPlay
方法,拖动进度条之后,把要跳转的秒数,和跳转之后是否要播放传给这个函数就可以了。
from ctvideoplayerview.
Related Issues (20)
- 崩溃
- Doesn't compile with latest version of HandyFrame HOT 2
- Full screen landscape HOT 1
- Fullscreen not working when embedded in UITableViewCell HOT 1
- 反馈下载失败问题
- license? HOT 1
- import not working correctly with cocoapods HOT 1
- 10.3.3 not support some video HOT 7
- build error HOT 2
- Property 'ct_size', 'ct_width', 'ct_height' not found on object of type 'UIView *' HOT 2
- 视频播放完后不走videoViewDidFinishPlaying回调 HOT 4
- 支持的视频格式 HOT 1
- Video longer than 10 seconds throw error HOT 21
- RTMP URL Gives Error: NSURLConnection finished with error - code -1002 HOT 3
- More videos in a single view raises error -11839 "Cannot Decode" HOT 5
- Error after compile library with cocoa pods HOT 3
- 下载完成后状态,和进度数据库存储问题,如图
- indicator 显示和隐藏的时机不对
- please add Carthage support
- Could not build Objective-C module 'CTVideoPlayerView', Xcode 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctvideoplayerview.