3D.js video textures in ios to play in a separately launched player - ideas?

I am trying to get the texture of the video to play on geometry in iOS using three.js, but instead of playing the video as texture, the browser runs the video in the player that closes the window. I tried this mp4 download directly in the texture, loading it first with canvas, etc. If I pause the video using the player controls and β€œclick”, the player leaves, leaving the paused texture on the geographer when the frame is paused.

Line examples such as: http://jeromeetienne.imtqy.com/threex.videotexture/examples/videotexture.html demonstrate the same problem. Therefore, I assume that this is a new "feature" in iOS.

Is this an iOS issue, a Safari issue? If anyone has a workaround, I would appreciate it. thank

+4
source share
2 answers

found a link from an iOS post that led to an Apple page. Small-screen iOS devices play videos in full-screen mode - apparently overriding any instructions that may be in HTML

0
source

I fixed this problem by setting the "playinline" attribute on the video element. There is also a polyfill: https://www.npmjs.com/package/iphone-inline-video

0
source

All Articles