-
-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem playing a video #16
Comments
@jhonrymat I'm not sure I understand what you mean. Can you provide screencaps? |
just take the example of advanced.html and change the link of the video, for a video that has embedded audio, but when the page is opened the audio is played instantly without having clicked on the video |
Can you perhaps create a minimal and runnable example? That would help a lot. Better off, are you able to confirm the problem is caused by MindAR. One good way to do that is remove MindAR and create a regular AFRAME scene with video, and make the "click and play" works. After that, put in the MindAR library, and see what's the difference. Then we will know what's causing the problem. |
here an example in glitch.com |
I run your example, and I couldn't see any video. So there is also no audio as well. |
Hello again, could you please explain how to play a video I still can't find how, and then proceed to close the thread, thank you very much |
Now, I'm a bit confused about the problem you are having. Are you
if 1) if 2) |
You just want to put a video on top of an image but I don't know how to break down your example, just to use the video, I appreciate your help. I tried this way and I did not succeed. https://glitch.com/edit/#!/mighty-arrow-pyrite?path=index.html%3A1%3A0 |
@jhonrymat Your video doesn't play because the click event wasn't fired/captured. If you need to capture click event on aframe element, you need to setup the raycaster in camera, e.g.
|
Excellent, thank you very much, it was what I needed, you are the best. I close thread. |
Hello, I am new to programming and augmented reality, I am studying your code a bit, but I find the problem that the video starts when loading the page and not when recognizing the augmented reality image, some example or advice where I modify this thank you very much.
<script src="https://cdn.jsdelivr.net/gh/hiukim/mind-ar-js@0.3.2/dist/mindar.prod.js"></script>`
The text was updated successfully, but these errors were encountered: