[TIMOB-19040] iOS9: Replace MPMoviePlayerController in Ti.Media.VideoPlayer with AVPlayerViewController
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-11-16T13:49:43.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.0.0 |
Components | iOS |
Labels | media, movieplayer |
Reporter | Chee Kiat Ng |
Assignee | Vijay Singh |
Created | 2015-06-18T07:51:03.000+0000 |
Updated | 2019-06-26T06:59:09.000+0000 |
Description
MPMoviePlayerController is getting deprecated in iOS9. We are using this in TiMediaVideoPlayer, so we have to work on an alternative. Likely AVPlayerViewController.
Deprecation details: https://developer.apple.com/library/prerelease/ios/releasenotes/General/iOS90APIDiffs/frameworks/MediaPlayer.html
AVPlayer Reference: https://developer.apple.com/library/prerelease/ios/documentation/AVFoundation/Reference/AVPlayer_Class/index.html#//apple_ref/doc/uid/TP40009530
AVPlayerViewController Reference: https://developer.apple.com/library/prerelease/ios/documentation/AVFoundation/Reference/AVPlayerViewController_Class/index.html#//apple_ref/doc/uid/TP40014273
PR (work in progress): https://github.com/appcelerator/titanium_mobile/pull/8194 Demo:
PR: https://github.com/appcelerator/titanium_mobile/pull/8721
Moving to 7.0.0 because of the breaking changes discussed on Github.
Test Case (modified above demo)-
New PR - https://github.com/appcelerator/titanium_mobile/pull/9600
Verified in SDK build 7.0.0.v20171116132144