Skip to content

JoostVanVelthoven/sit-straight

Repository files navigation

Gatsby

Sit straight

🚀 Quick start

  1. Create a Gatsby site.

PWA that teach you with video analyse how to sit straight. I am doing this project to improve a) back posture and b) improve my react hooks skills. Unfortunately, non active windows can not process camera views.

  1. Start developing.

    Navigate into your new site’s directory and start it up.

    gatsby develop
  2. Open the source code and start editing!

    Your site is now running at http://localhost:8000!

📺 Picture-in-Picture (PiP) Mode

The posture monitoring web application supports Picture-in-Picture (PiP) mode for real-time posture feedback. This feature allows you to keep an eye on your posture even when you navigate away from the main tab.

How to Use PiP Mode

  1. Automatic Activation:

    • PiP mode will automatically activate when you navigate away from the main tab. This ensures that you continue to receive posture monitoring feedback while multitasking in other tabs or windows.
  2. Manual Activation:

    • You can manually enable PiP mode by clicking on the PiP activation element within the application. Look for the clickable element labeled "PIP for non-active browser checking" in the setup section.
  3. Disabling PiP Mode:

    • When PiP mode is activated, a message or notification will appear, allowing you to disable it if you prefer. Simply click on the message to exit PiP mode.
  4. Exiting PiP Mode:

    • You can also exit PiP mode from within the PiP window itself by using the controls provided by your browser.

Browser Compatibility

The PiP mode feature is compatible with modern browsers that support the Picture-in-Picture API, including Chrome, Edge, and Safari.

User Feedback

When PiP mode is activated, a message or notification will be displayed, allowing you to disable it if you prefer. Additionally, a button or control is provided to exit PiP mode from within the overlay.

Considerations

  • Ensure that PiP activation does not interfere with other functionalities.
  • Optimize for minimal CPU and memory usage when in PiP mode.

For more information, refer to the Picture-in-Picture API Documentation.

About

PWA that teach you with video analyse how to sit straight

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •