Giter VIP home page Giter VIP logo

Comments (1)

calvinckho avatar calvinckho commented on June 14, 2024

Hi @said15904,

Picture-in-Picture Mode for iOS has been developed as a premium feature. Because PIP is not yet supported by the Jitsi iOS SDK, the non-native PIP is implemented, which involves adding gesture detection and translating the gesture events into js touch and click events to be sent to the iOS WKWebView. Because the Jitsi PIP UIView lies on top of the WKWebView, where the hybrid app is rendered, my original thought was to try to capture the gestures and send it to the underlying WKWebView via the Response Chain. Unfortunate Appleโ€™s design doesn't allow it. As a result, the best solution is to capture all the gestures, and translate them into javascript events or swift UIScrollView commands. In some cases, the swift/javascript translation is very complicated. For example, when trying to move the cursor in ion-textarea and ion-input, I have to create a separate module to translate touch coordinates into text selection index.

The big picture development goal is to create something that is a transitional solution, knowing that Jitsi is working on jitsi/jitsi-meet#9437, although we do not know the timeline yet, and have no control over it. So I still believe my approach is a good one, as PIP is a very powerful feature which allows users to access the app while on a video or audio call.

Here is how the PiP works in a real iOS device: https://ds.ivr.solutions/media/pip_demo.mp4. Please note that unlike the native iOS PIP implementation, where the PIP window is active when the app is moved to the background, the non-native PIP window will be hidden when the app is moved to the background.

iOS gestures already implemented and should be working: tap, double tap, pan, pinch, drag, vertical and horizontal scroll. Please report anything that is not working/compatible with your app/framework.

Known limitations that I tried to solve but will need more time to work on. I am listing the ones that I am aware of but there may be more:

  • moving of cursor inside div with contenteditable
  • highlighting of text in a div
  • copying, pasting, long press to open context menu in ion-textarea and ion-input
  • ion-content scroll can use a more natural velocity curve

If you are interested in accessing the premium repo which comes with a 1-year customer support included, DM me here to discuss more.

from capacitor-jitsi-meet.

Related Issues (20)

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.