I want to design a screen which will show different number of videos on same screen based on certain condition

65 views Asked by At

This is an iOS problem. I want to design a screen which will show a video on full screen. After some time based on some backend condition if another video is available I have to show that by splitting the screen into two vertical halves. After some time if one more video is available I have to again split the screen and show the third video horizontally on the bottom of the screen.

I am new to iOS and I am not able to manage the screen split on runtime based on backend condition. please help me in this regard.

1

There are 1 answers

1
Hitesh Borse On

Using AVPlayer it possible to play multiple videos in a view. You can use Apple's AVPlayer.

An AVPlayer is a controller object used to manage the playback and timing of a media asset. You can use an AVPlayer to play local and remote file-based media, such as QuickTime movies and MP3 audio files, as well as audiovisual media served using HTTP Live Streaming.