Search code examples
iosuiviewcontrollermpmovieplayercontrollerinstant-messaging

Getting a great Video message Thread in IOS


I'm trying to achieve something like the below

enter image description here

Essentially i will need to have a single UIView that holds these objects one being the video from the user who posted and a reply function for a user to record and play back. The hard part for me is trying to get it to function similar to a message feed.

How could i approach designing this UIView so that i can have all the controls i need from MPMoviePlayerControl in one view for both recording and viewing the video?


Solution

  • As suggested by Paulo, top half can be webView where video can be displayed. Also this can be AVPlayer(or AVPlayerLayer). Bottom half should use AVFoundation for image capture. That way you can have custom capture interface.