-
-
Notifications
You must be signed in to change notification settings - Fork 301
Used as a Three.js Texture #25
Comments
Make sure you |
Thanks I've had another attempt at this and it's kind of half working - I don't get a pop up and I can hear the video sound. However as soon as the Three.js mesh with the video gets added to the scene I get constant 'script errors' that appear to show every time it tries to render the scene. If I use any of
Or the jQuery method I get
The video variable is created as such
If I just use makeVideoPlayableInline(video) with that video variable then it's fine. So it looks like your code isn't going to work beautifully with Three.js, have you attempted to have it work as a texture? |
The problem is somewhere in your code. Make sure it works on the iPad first |
thanks that's useful. This is working fine on desktop and Android, just having massive problems on iOS. I've been following that code and can get closer, but still can't get the video to show and as soon as it starts to play I get that Here's how I'm trying to do it
|
This is the error I get when I console.log the video events
|
"Script error" says nothing about the error, you'll have to find a better way to debug it. It might just be that Safari is triggering some security error. You'll have to ask on some support forum or StackOverflow if you still have issues because I already showed that it works. |
OK Thanks |
You mentioned that you already showed it works, is there a demo of that anywhere. http://bfred-it.github.io/threex.videotexture/examples/videotexture.html seems to be dead. Thanks! |
@bknill did you ever get this working? |
I created another demo here: http://bfred-it.github.io/iphone-inline-video/demo/threejs.html Note that Safari doesn't support CORS on videos, so the file has to be on the same domain to make it work. |
That example was exactly what I needed. Thank you very very much. |
Do you know if this should work as a texture in Three.js? I'm trying it but it' still popping out into a full screen player.
There is a script error but I can't debug it at the moment, getting this in jsconsole
The text was updated successfully, but these errors were encountered: