@nomac/phone 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,6 @@ import { NomacPhone } from "@nomac/phone/react";
|
|
|
23
23
|
<NomacPhone url={link} onEvent={(e) => e.type === "ended" && reload()} style={{ height: 720 }} />
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
The box keeps an iPhone's shape (402 by 874); for an iPad pass `style={{ aspectRatio: "834 /
|
|
26
|
+
The box keeps an iPhone's shape (402 by 874); for an iPad pass `style={{ aspectRatio: "834 / 1210" }}` (iPad Pro 11-inch (M5)). `ended` comes once, when a phone that was shown ends; a link that does not work from the start is an `error`. While the phone starts, the view waits for it, and after a dropped connection it comes back by itself. Only view links of https://nomac.app are framed.
|
|
27
27
|
|
|
28
28
|
The screen comes as H.264 over a WebSocket, decoded in the page (WebCodecs), with no TURN servers. With a control link, one viewer at a time holds input; another can take over.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomac/phone",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "A NoMac Simulator phone in your page: its view link in an iframe, its events, and home, tap and screenshot from your code.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://nomac.app",
|