This project is a demo for showing a pip mode video play with remote video URL.
This project is a demo for showing a pip mode video play with remote video URL. It is designed considering requirements in mind such as maintaining pip and expanded mode for both landscape and portrait mode.
You can find demo video of app working below.
- Video Player with remote URL.
- Aspect ratio maintained in landscape and portrait mode.
- Aspect ratio is maintained in pip and expanded mode.
List of tools and technologies used in this project.
- Xcode: Version 15.1
- Programming Language: Swift
- UIKit
- AVPlayerController and AVPlayer
- MVVM
Project structure is as follows:
- SceneDelegate -> It has entry point of the app. You can change the URL of the video here.
- VideoInVideoController -> It has presentation of AVPlayer and AVPlayerViewController with both video modes(Pip, Expand)
- VideoInVideoViewModel -> Business logic implemented here
Provide instructions on how to set up and run your project. Include any configuration steps or prerequisites.
- Clone the repository:
git clone https://github.com/irfaniOSdev/VideoInVideo.git
- Open the project in Xcode.
- Run the project on simulator or a physical device.
- Video will automatically stream in expanded mode after LaunchScreen.