@aperture-browser/session-react 0.0.0-nightly.97.4e0ac6c83ab5 → 0.0.0-nightly.99.75d2f316d627
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.
|
@@ -1990,6 +1990,16 @@ function useBrowserControl({ access, displayName, enabled = true, webrtcProducer
|
|
|
1990
1990
|
const setRemoteCursorEnabled = useCallback((visible) => {
|
|
1991
1991
|
if (access !== null) runSetRemoteCursor(visible);
|
|
1992
1992
|
}, [access, runSetRemoteCursor]);
|
|
1993
|
+
const [watchableAutomation, setWatchableAutomation] = useState(false);
|
|
1994
|
+
const commandRef = useRef(live.command);
|
|
1995
|
+
commandRef.current = live.command;
|
|
1996
|
+
useEffect(() => {
|
|
1997
|
+
if (live.phase === "connected" && canRecord) commandRef.current("automation.pacing.set", { pacing: watchableAutomation ? "watchable" : "normal" });
|
|
1998
|
+
}, [
|
|
1999
|
+
live.phase,
|
|
2000
|
+
canRecord,
|
|
2001
|
+
watchableAutomation
|
|
2002
|
+
]);
|
|
1993
2003
|
const runSelectPresentation = useEffectCallback((selection) => live.selectPresentation(selection).pipe(Effect.catch((error) => notify("error", errorMessage(error, "Presentation could not be updated")))), [live]);
|
|
1994
2004
|
const selectMediaStream = useCallback((selection) => {
|
|
1995
2005
|
if (!enabled || access === null || live.mediaSwitching) return false;
|
|
@@ -2055,6 +2065,7 @@ function useBrowserControl({ access, displayName, enabled = true, webrtcProducer
|
|
|
2055
2065
|
loadTargetThumbnail,
|
|
2056
2066
|
recordingBusy,
|
|
2057
2067
|
remoteCursorEnabled: live.presentation?.cursorVisible ?? true,
|
|
2068
|
+
watchableAutomation,
|
|
2058
2069
|
collaboration: live.collaboration,
|
|
2059
2070
|
commands,
|
|
2060
2071
|
setCaptured,
|
|
@@ -2084,6 +2095,7 @@ function useBrowserControl({ access, displayName, enabled = true, webrtcProducer
|
|
|
2084
2095
|
stopRecording,
|
|
2085
2096
|
cancelRecording,
|
|
2086
2097
|
setRemoteCursorEnabled,
|
|
2098
|
+
setWatchableAutomation,
|
|
2087
2099
|
reconnect: live.reconnect
|
|
2088
2100
|
};
|
|
2089
2101
|
}
|
|
@@ -2213,4 +2225,4 @@ function useSession({ access, displayName, onNotice }) {
|
|
|
2213
2225
|
//#endregion
|
|
2214
2226
|
export { makeApertureRuntime as a, collaborationPaintLifetimeMs as c, RuntimeProviderMissingError as d, useBaseUrl as f, useRuntime as g, useRunApi as h, ApertureProvider as i, useLiveSession as l, useFork as m, shareSessionAccess as n, useBrowserControl as o, useEffectCallback as p, useSession as r, SessionViewport as s, LiveSessionError$1 as t, RuntimeProvider as u };
|
|
2215
2227
|
|
|
2216
|
-
//# sourceMappingURL=headless-
|
|
2228
|
+
//# sourceMappingURL=headless-CPoXwbFz.js.map
|