toposync-ext-spatial-video 0.4.0__tar.gz

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.
Files changed (36) hide show
  1. toposync_ext_spatial_video-0.4.0/.gitignore +40 -0
  2. toposync_ext_spatial_video-0.4.0/LICENSE +21 -0
  3. toposync_ext_spatial_video-0.4.0/PKG-INFO +16 -0
  4. toposync_ext_spatial_video-0.4.0/README.md +6 -0
  5. toposync_ext_spatial_video-0.4.0/pyproject.toml +19 -0
  6. toposync_ext_spatial_video-0.4.0/src/toposync_ext_spatial_video/__init__.py +3 -0
  7. toposync_ext_spatial_video-0.4.0/src/toposync_ext_spatial_video/extension.json +12 -0
  8. toposync_ext_spatial_video-0.4.0/src/toposync_ext_spatial_video/plugin.py +8 -0
  9. toposync_ext_spatial_video-0.4.0/src/toposync_ext_spatial_video/static/326.js +2 -0
  10. toposync_ext_spatial_video-0.4.0/src/toposync_ext_spatial_video/static/326.js.LICENSE.txt +9 -0
  11. toposync_ext_spatial_video-0.4.0/src/toposync_ext_spatial_video/static/703.js +2 -0
  12. toposync_ext_spatial_video-0.4.0/src/toposync_ext_spatial_video/static/703.js.LICENSE.txt +9 -0
  13. toposync_ext_spatial_video-0.4.0/src/toposync_ext_spatial_video/static/753.js +2 -0
  14. toposync_ext_spatial_video-0.4.0/src/toposync_ext_spatial_video/static/753.js.LICENSE.txt +5 -0
  15. toposync_ext_spatial_video-0.4.0/src/toposync_ext_spatial_video/static/main.js +2 -0
  16. toposync_ext_spatial_video-0.4.0/src/toposync_ext_spatial_video/static/main.js.LICENSE.txt +9 -0
  17. toposync_ext_spatial_video-0.4.0/src/toposync_ext_spatial_video/static/remoteEntry.js +1 -0
  18. toposync_ext_spatial_video-0.4.0/ui/package.json +24 -0
  19. toposync_ext_spatial_video-0.4.0/ui/src/SpatialVideo3DView.tsx +981 -0
  20. toposync_ext_spatial_video-0.4.0/ui/src/SpatialVideoCompatibilityNotice.tsx +79 -0
  21. toposync_ext_spatial_video-0.4.0/ui/src/SpatialVideoView.tsx +800 -0
  22. toposync_ext_spatial_video-0.4.0/ui/src/activate.tsx +91 -0
  23. toposync_ext_spatial_video-0.4.0/ui/src/api.ts +107 -0
  24. toposync_ext_spatial_video-0.4.0/ui/src/candidates.ts +167 -0
  25. toposync_ext_spatial_video-0.4.0/ui/src/cycjimmy-jsmpeg-player.d.ts +27 -0
  26. toposync_ext_spatial_video-0.4.0/ui/src/entry.ts +1 -0
  27. toposync_ext_spatial_video-0.4.0/ui/src/markers.ts +68 -0
  28. toposync_ext_spatial_video-0.4.0/ui/src/projection.ts +467 -0
  29. toposync_ext_spatial_video-0.4.0/ui/src/projectionGeometry.ts +20 -0
  30. toposync_ext_spatial_video-0.4.0/ui/src/ptzProjection.ts +116 -0
  31. toposync_ext_spatial_video-0.4.0/ui/src/spatialSettings.ts +72 -0
  32. toposync_ext_spatial_video-0.4.0/ui/src/streamTexture.ts +490 -0
  33. toposync_ext_spatial_video-0.4.0/ui/src/translations.ts +14 -0
  34. toposync_ext_spatial_video-0.4.0/ui/src/types.ts +128 -0
  35. toposync_ext_spatial_video-0.4.0/ui/tsconfig.json +15 -0
  36. toposync_ext_spatial_video-0.4.0/ui/webpack.config.js +42 -0
@@ -0,0 +1,40 @@
1
+ .DS_Store
2
+ .env
3
+ .venv
4
+ __pycache__/
5
+ *.pyc
6
+ .pytest_cache/
7
+ .ruff_cache/
8
+
9
+ node_modules/
10
+ yarn.lock
11
+ .pnp.cjs
12
+ .pnp.loader.mjs
13
+ .yarn/
14
+ dist/
15
+ release-dist/
16
+ build/
17
+ .parcel-cache/
18
+
19
+ .toposync-data/
20
+ .toposync-processor-data
21
+ toposync-data/
22
+
23
+ *.log
24
+
25
+ *.ignore.md
26
+ ignore/
27
+
28
+ # Playwright
29
+ test-results/
30
+ playwright-report/
31
+ yolo*.pt
32
+
33
+ # Streaming extension engines are downloaded at runtime.
34
+ extensions/streaming/src/toposync_ext_streaming/bin/mediamtx/**/mediamtx*
35
+ extensions/streaming/src/toposync_ext_streaming/bin/ffmpeg/**/ffmpeg*
36
+
37
+ # Vision model artifacts are provisioned locally and must not be committed.
38
+ extensions/vision/models/
39
+
40
+ *.temporary.*
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Mateus Calza
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,16 @@
1
+ Metadata-Version: 2.4
2
+ Name: toposync-ext-spatial-video
3
+ Version: 0.4.0
4
+ Summary: Toposync first-party extension: projected live video on mapped compositions.
5
+ License-Expression: MIT
6
+ License-File: LICENSE
7
+ Requires-Python: >=3.11
8
+ Requires-Dist: toposync-core>=0.7.0
9
+ Description-Content-Type: text/markdown
10
+
11
+ # Toposync Spatial Video Extension
12
+
13
+ Projects live camera transmissions over mapped composition geometry.
14
+
15
+ The first version is intentionally frontend-only: it consumes the camera mapping
16
+ and streaming playback APIs that already belong to their own extensions.
@@ -0,0 +1,6 @@
1
+ # Toposync Spatial Video Extension
2
+
3
+ Projects live camera transmissions over mapped composition geometry.
4
+
5
+ The first version is intentionally frontend-only: it consumes the camera mapping
6
+ and streaming playback APIs that already belong to their own extensions.
@@ -0,0 +1,19 @@
1
+ [project]
2
+ name = "toposync-ext-spatial-video"
3
+ version = "0.4.0"
4
+ description = "Toposync first-party extension: projected live video on mapped compositions."
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICENSE"]
8
+ requires-python = ">=3.11"
9
+ dependencies = ["toposync-core>=0.7.0"]
10
+
11
+ [project.entry-points."toposync.extensions"]
12
+ spatial_video = "toposync_ext_spatial_video.plugin:SpatialVideoExtension"
13
+
14
+ [build-system]
15
+ requires = ["hatchling>=1.25"]
16
+ build-backend = "hatchling.build"
17
+
18
+ [tool.hatch.build.targets.wheel]
19
+ packages = ["src/toposync_ext_spatial_video"]
@@ -0,0 +1,3 @@
1
+ from .plugin import SpatialVideoExtension
2
+
3
+ __all__ = ["SpatialVideoExtension"]
@@ -0,0 +1,12 @@
1
+ {
2
+ "schema_version": 1,
3
+ "id": "com.toposync.spatial_video",
4
+ "name": "Spatial Video",
5
+ "version": "0.1.0",
6
+ "frontend": {
7
+ "kind": "module-federation",
8
+ "remote_entry": "remoteEntry.js",
9
+ "scope": "spatial_video",
10
+ "module": "./activate"
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ from __future__ import annotations
2
+
3
+ from toposync.extensions import BaseExtension
4
+
5
+
6
+ class SpatialVideoExtension(BaseExtension):
7
+ def __init__(self) -> None:
8
+ super().__init__(package="toposync_ext_spatial_video")
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 326.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_toposync_extension_spatial_video_ui=self.webpackChunk_toposync_extension_spatial_video_ui||[]).push([[326],{249(e,t){var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,h={};function b(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}function m(){}function v(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=b.prototype;var S=v.prototype=new m;S.constructor=v,_(S,b.prototype),S.isPureReactComponent=!0;var k=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,o)&&!$.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1<i){for(var f=Array(i),s=0;s<i;s++)f[s]=arguments[s+2];u.children=f}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:r,type:e,key:a,ref:c,props:u,_owner:E.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var g=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function x(e,t,o,u,a){var c=typeof e;"undefined"!==c&&"boolean"!==c||(e=null);var i=!1;if(null===e)i=!0;else switch(c){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case r:case n:i=!0}}if(i)return a=a(i=e),e=""===u?"."+j(i,0):u,k(a)?(o="",null!=e&&(o=e.replace(g,"$&/")+"/"),x(a,t,o,"",function(e){return e})):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||i&&i.key===a.key?"":(""+a.key).replace(g,"$&/")+"/")+e)),t.push(a)),1;if(i=0,u=""===u?".":u+":",k(e))for(var f=0;f<e.length;f++){var s=u+j(c=e[f],f);i+=x(c,t,o,s,a)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),f=0;!(c=e.next()).done;)i+=x(c=c.value,t,o,s=u+j(c,f++),a);else if("object"===c)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function O(e,t,r){if(null==e)return e;var n=[],o=0;return x(e,n,"","",function(e){return t.call(r,e,o++)}),n}function P(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},T={transition:null},V={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:T,ReactCurrentOwner:E};function A(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:O,forEach:function(e,t,r){O(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,t.act=A,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=_({},e.props),u=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=E.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(f in t)w.call(t,f)&&!$.hasOwnProperty(f)&&(o[f]=void 0===t[f]&&void 0!==i?i[f]:t[f])}var f=arguments.length-2;if(1===f)o.children=n;else if(1<f){i=Array(f);for(var s=0;s<f;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:r,type:e.type,key:u,ref:a,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},t.unstable_act=A,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},326(e,t,r){e.exports=r(249)}}]);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */