Comments (6)
Hi @chengyuhui,
Hope you're doing well! 😊 Would you mind sending a pull request?
Thanks a bunch!
from mirotalk.
Good, I just fix a typo.
document.pictureInPictureEnabled
already returns
a boolean
, then using double negation (!!) is indeed unnecessary. In such a case, you can directly use the boolean value returned by document.pictureInPictureEnabled without any additional conversions.
Thank you!
from mirotalk.
Tested to be working on latest mobile Chrome (simply removing !isMobileDevice works).
But I'm not able to make it work on real mobile device
in Chrome, and other browsers as well :)
I recall now that Document PIP and Video PIP doesn't work on real mobile devices.
That's why I implemented the filter !isMobileDevice
from mirotalk.
Just tested again on my Samsung S23 with Chrome 120.0.6099.144, video PiP worked fine. Note that Firefox does not support these APIs at all.
Document PiP isn't even available on mobile devices, if memory serves me right.
from mirotalk.
You are right in this device works and maybe also in some other, while in some not, although document.pictureInPictureEnabled
return true
, in the browser logs got:
Failed to enter Picture-in-Picture mode: NotSupportedError: The video element does not support the Picture-in-Picture mode.
Let me thinking, I will push asap.
from mirotalk.
Now you will be able to use PIP video on Mobile devices. In case your device doesn't support this feature for some reason, a helpful popup message will appear, and the button will be hidden.
from mirotalk.
Related Issues (20)
- `OpenAI is not defined` error when using ChatGPT HOT 2
- Alternate audio devices not remembered correctly HOT 10
- Add one-time token authentication for guests HOT 2
- UI Design Revamp HOT 1
- New Spin up of Mirotalk in Docker has error HOT 2
- Praises and thanks HOT 1
- UI inconsistency: mute audio/video HOT 1
- Annoying share-this-room pop-up each and every time HOT 1
- Stuck at loading page in LAN using. HOT 2
- Allow us to hold a contextualized conversation with ChatGPT HOT 3
- Fix typo in ChatGPT env variables in `.env.template` and `app/src/server.js` HOT 1
- Unable to connect to a room in my notebook HOT 1
- set htaccess HOT 1
- Scalability Issue HOT 1
- Turn server configuration HOT 1
- Can't disable microphone HOT 1
- Screensharing on Mobile devices HOT 1
- Safari Apple or IOS production Domain always give me error "Websocket connection to wss://xxxxxxxx failed: there was a bad response from the server" HOT 1
- BUG: peers can enable each other's camera HOT 1
- On premise : opening a meeting, stuck on a wait screen expecting camera and micro setup ... but nothing to do it HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mirotalk.