MPMoviePlayer setCurrentPlaybackTime iOS
来源:互联网 发布:mac os x 10.11镜像bt 编辑:程序博客网 时间:2024/06/08 10:32
有这样的需求,在第二次播放的时候,需要调整播放的起止时间。
setCurrentPlaybackTime 在 iOS 6 iOS 7 上面都是好的。
但是在iOS8上面发现不可用。
的解决方案是延时设置播放时间。
代码如下:
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[player setCurrentPlaybackTime:recordPoint];
});
这样就好用了。
0 0
- MPMoviePlayer setCurrentPlaybackTime iOS
- MPMoviePlayer
- MPMoviePlayer
- iOS中 MPMoviePlayer 实现视频音频播放 作者:韩俊强
- MPMoviePlayer浅谈
- MPMoviePlayer 播放流媒体
- MPMoviePlayer 视频播放
- iphone之MPMoviePlayer 视频播放
- iphone之MPMoviePlayer 视频播放
- iphone之MPMoviePlayer 视频播放(转)
- iphone之MPMoviePlayer 视频…
- iphone之MPMoviePlayer本地视频 与 远程视频
- iOS
- iOS
- IOS
- iOS
- iOS
- IOS
- CAS SSO 错误返回PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
- 笔记之Oracle 数据字典视图:v$fixed_table里包含了三类对象:X$对象、基于X$表的GV$和V$视图
- [数据结构] 栈的指针实现
- Qt中的动态链接库编程
- apt-get 使用详解
- MPMoviePlayer setCurrentPlaybackTime iOS
- 代码片段之时间标记
- 判断Sqlserver字段中是否有中文,并截取
- 适配器模式
- PL-SQL 包的创建和应用
- Sqlite3 语句原文解析摘取
- 惊艳的Android5.0与中国无关
- Java POI如何删除空行
- Refactoring Day 8 : Replace Inheritance with Delegation