ios - 用 JWPlayer 通知替换 MPMoviePlayer 通知

标签 ios objective-c mpmovieplayercontroller jwplayer

在 iOS 9 中 MPMoviePlayer 及其所有组件都已弃用。我们正在使用通知

  1. MPMoviePlayerPlaybackDidFinishNotification

  2. MPMovieDurationAvailableNotification

  3. MPMoviePlayerLoadStateDidChangeNotification

  4. MPMoviePlayerNowPlayingMovieDidChangeNotification

  5. MPMovieNaturalSizeAvailableNotification

我们正在迁移到 JWPlayer,因为它提供了各种好处。但是,我无法找到 JWPlayer 提供的简明通知列表。

谁能帮我做同样的事情?

最佳答案

使用 jwplayer 委托(delegate)

http://sdk.jwplayer.com/ios/docs/reference/Protocols/JWPlayerDelegate.html

这是jwplayer提供的所有事件的简明列表。唯一的区别是 MPMoviePlayer 通过 NSNotification 提供它,而 JWPlayer 通过委托(delegate)提供它。

关于ios - 用 JWPlayer 通知替换 MPMoviePlayer 通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39364692/

相关文章:

iphone - UITableView pushViewController 在选择一行时

objective-c - MKMapRect 和 MKCoordinateRegion 有什么区别

Objective-C:在字符串索引处使用 char 初始化 char

iphone - MPMoviePlayerController 未发布

ios - 如何在 iPhone 中的视频中添加文本

iphone - 以 2x 3x 4x 速度播放/转发视频 - iPhone SDK

ios - 在 Xcode 5.0 中运行单元测试时出错

ios - 如何将弱引用对象存储在数组中,objc中的字典?

iphone - 导航 Controller (及其所有 View )仅是纵向的。我怎样才能把它们变成风景呢?

ios - 在 Parse 后端保存日期和时间