UIImagePickerController not setting Play/Pause button correctly.

Originator:adam.ism
Number:rdar://29973335 Date Originated:1/11/2017
Status:Open Resolved:
Product:UIKit Product Version:10.2
Classification: Reproducible:Always
 
Summary:
When capturing a video through UIImagePickerController, if a user finishes capturing, plays back the video, and clicks Retake during playback, when they finish that Retake by pressing stop, the next view will show a Pause button, even though playback is not occurring.

Steps to Reproduce:
1) Implement a UIImagePickerController with mediaType of kUTTypeMovie to allow a user capture a video.
2) Run the app and get to the UIImagePickerController VC.
3) Capture a video and press stop.
4) Click the play button, and while the video is playing, click "Retake"
5) Record a new video, and press stop.
6) At this point, the VC will show the most recent video in a paused state, but display a Pause button, instead of a Play button.
7) Clicking on the Pause button changes the button back to Play.
8) Clicking the Play button Plays the video.

Alternatively using iMovie for iPhone:
1) Create a new Project
2) Choose Movie
3) Click Create Movie
4) Click +
5) Click Camera
6) Capture a video and press stop.
7) Click the play button, and while the video is playing, click "Retake"
8) Record a new video, and press stop.
9) At this point, the VC will show the most recent video in a paused state, but display a Pause button, instead of a Play button.
10) Clicking on the Pause button changes the button back to Play.
11) Clicking the Play button Plays the video.

Expected Results:
After a video Retake, the VC should show a Play button, instead of a Pause, as it is not currently playing anything.


Actual Results:
After a video Retake, the VC shows a Pause button, that seems to be in a stale state from when the original video was being played on a previous step.

Version:
iOS 10.2

Notes:


Configuration:
Reproducible on an iPhone 6, originally found in the ShareFile app, but also reproducible in iMovie for iPhone.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!