Comments (4)
Currently, the ARUWPVideo can pause/resume. Have you tried if the camera can be accessed from your app when the video is paused? What API are you using to access the webcam? If you are using Windows UWP MediaCapture API, you should be able to insert your functionality into the frame receiving callback without turning off the webcam. If you are using Unity WebcamTexture API, I do not know how the resources are shared (My guess is MediaCapture for HoloLensARToolKit needs to be totally stopped).
from hololensartoolkit.
I am using Unity VideoCapture class. Yes, it can access the webcam when HoloLensARToolkit is paused, but the problem is that I can not know when the resource will be available, since the Pause() function is async and it takes a while for it to finish its execution and free the webcam resource. Is there a way to detect when HoloLensARToolkit stops?
from hololensartoolkit.
the pause looks like it ends up calling StopFrameReaderAsyncTask, in ARUWPVideo.cs which will change
controller.status to ARUWP.ARUWP_STATUS_CTRL_INITIALIZED; when its done
Adding a GetStatus to return controller.status might be useful, or perhaps sending event when status changes
from hololensartoolkit.
@Baxab The pause is a .NET asynchronous function, which returns before it is really done. As mentioned by @ericalbers , you can check controller status because controller.status = ARUWP.ARUWP_STATUS_CTRL_INITIALIZED;
is called after the async function really done.
from hololensartoolkit.
Related Issues (20)
- Got NullReferenceException error with XR Plugin Management HOT 3
- Any method to get RGB video stream in HL2? HOT 8
- 获取相机固有属性和投影矩阵 HOT 1
- HL2: Is the marker tracking working from the play editor of Unity (in holographic remoting)? HOT 3
- About 180 rotation display of target object HOT 1
- Android version HOT 1
- Display the images shot by the camera in HL2?
- Imperfect alignment registration & the cube's pose changes following the head movement HOT 3
- Unity 2020LTS does not build project HOT 6
- Is HoloLensCamCalib enough to calibrate and align the HL2? Do we also need to do display calibration using 20 alignment described in the paper?
- Can't get multi marker to work
- Has anyone succeeded in unity 2020? HOT 3
- how can i get the marker postion
- Get video preview as RGB instead of grayscale
- Add Camera resolution for Hololens 2
- spiel für kinder
- Cube sample is not detected after calibration HoloLens2 HOT 1
- Has anyone succeed in unity2018?
- help me
- Has anyone managed to make it work with openxr?
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 hololensartoolkit.