Comments (3)
Hi @HumberSean you can access the video texture and play/pause it using play_video_texture()
and pause_video_texture()
. Checkout the documentation in https://github.com/awe-media/awe.js/wiki/awe-objects#awe_mesh_object
Shout if you have any other questions about this.
from awe.js.
Ah one other issue that's relevant - on mobile devices (e.g. Android and iOS) the browsers often require a user action to play any media. So any of your play() calls need to be called from within a user action (e.g. a click event).
from awe.js.
Thank you for your response - and for noting the Android "gotcha". The element missing from the API is an example of how to put the pieces together. I can see the awe.pois etc for getters, and the methods to call (thank you for the stop method!), but not how to get the mesh and call play on the video texture.
I have tried:
var mypoi = awe.pois.view("mypoiID");
mypoi.play_video_texture();
...and...
var myprojection = awe.projections.view("myprojectionID");
myprojection .play_video_texture();
...and...
awe.textures.play_video_texture();
but it isn't working. I know the click event is working because I have a console message that shows up.
This is an amazingly exciting library with a tremendous amount of thought behind it. We just need a few examples in the API (without having to dig through the examples folder) to connect the dots.
I will be happy to share my working example once completed, as I know there are numerous people looking for this solution.
Many thanks again for your response and support!
from awe.js.
Related Issues (20)
- what can I pass in texture in awe.projections.add as displaying image? HOT 1
- how to animate or update image via texture using six different frames? HOT 1
- how to load .fbx file to animate an object? HOT 1
- Is texture property supported in awe.pois.update({data:{})? HOT 1
- how to unregister click event HOT 2
- Why object is going on beside of its actual position when an object is clicked/tapped? HOT 1
- how can i shake object from center on device? HOT 1
- object is appearing on another angle HOT 1
- Adding video texture to projections in an onclick event (Android) HOT 1
- texture not load HOT 1
- Use augmented reality in STEREO mode with AWE HOT 1
- Augmented Reality with camera active, with background black, for Hololens. HOT 1
- Non Mobile platform HOT 1
- Dispose method HOT 1
- Nothing HOT 1
- Text Example HOT 1
- How can I reload/update/change .obj model? HOT 2
- projection scale not working HOT 1
- Is there a function to manually run snapshot function HOT 5
- How do I link my AR scene to another scene in the same project?
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 awe.js.