GithubHelp home page GithubHelp logo

gapoj / videoplayer Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 41 KB

A SwiftUI video player with gyroscope and other little things made for a challenge

License: GNU General Public License v3.0

Swift 100.00%

videoplayer's Introduction

VideoPlayer

A SwiftUI video player with gyroscope and other little things made for a challenge

Problem Statement

The challenge is to develop an interactive video player with the following features:

  1. Video Playback: The player should load and play a specified video file upon launch. 2.Location-Based Reset: If the user's location changes by more than 10 meters from the previous location, the video should reset and replay from the beginning. 3.Shake Detection: A shake of the device should trigger the video to pause. 4.Gyroscope Control: Rotation along the z-axis (tilting the device sideways) should control the current time where the video is playing. Rotation along the x-axis (tilting the device up or down) should control the volume of the sound.

Technologies Used

  • SwiftUI
  • Combine
  • Core Motion
  • Core Location
  • AVKit
  • iOS SDK version 17.4

Installation

  • No special configuration is needed because the app does not rely on third-party libraries.
  • To fully harness its capabilities, you must deploy it onto a physical device

Approach

Implementing the video player challenge with MVVM separates data (Model), UI (View), and logic (ViewModel), promoting cleaner, more manageable code.

Author

Guillermo Apoj

videoplayer's People

Contributors

gapoj avatar guillerappi avatar

Stargazers

Aman Sharma avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.