Giter VIP home page Giter VIP logo

Comments (3)

awe-media avatar awe-media commented on July 22, 2024

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.

awe-media avatar awe-media commented on July 22, 2024

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.

HumberSean avatar HumberSean commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.