Skip to content

This project is a demo for showing a pip mode of loaded video from remote URL.

Notifications You must be signed in to change notification settings

irfaniOSdev/VideoInVideo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PIP/Expand Video Demo

This project is a demo for showing a pip mode video play with remote video URL.

Table of Contents

Introduction

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.

Demo Video

You can find demo video of app working below.

Demo Video

Main Features

  • Video Player with remote URL.
  • Aspect ratio maintained in landscape and portrait mode.
  • Aspect ratio is maintained in pip and expanded mode.

Tools and Technologies

List of tools and technologies used in this project.

  • Xcode: Version 15.1
  • Programming Language: Swift
  • UIKit
  • AVPlayerController and AVPlayer
  • MVVM

Project Structure

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

Usage

Provide instructions on how to set up and run your project. Include any configuration steps or prerequisites.

  1. Clone the repository: git clone https://github.com/irfaniOSdev/VideoInVideo.git
  2. Open the project in Xcode.
  3. Run the project on simulator or a physical device.
  4. Video will automatically stream in expanded mode after LaunchScreen.

About

This project is a demo for showing a pip mode of loaded video from remote URL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages