The goal is to playback video file (*.mp4) inside a UIView without controls.
It will serve as a background/wallpaper on the ViewController and other controls, i.e. tableview, text fields, images will be shown over the view with video playedback.
What is the better way to do this? Thank you
I've reached the goal with the native
AVPlayer
1.Used AVFoundation:
2.Used property for player:
3.Added video file into "Video" folder and added "Video" into project
4.Initialized the player
5.Subscribed for event - video did play to the end
6.Resumed video playing from the very start in related method
Swift
In Swift it is similar. Add the video to your resource bundle. My fuller answer is here.