[X3D-Public] Video displaying on <Box></Box> Object
Joe Lewis
jlewis at suitefactory.com
Mon Jun 16 09:06:11 PDT 2014
I hope someone can shed some light on my question:
Using the code below the videos with direct links(<a href= "..) display the
videos but within the "<scene></scene>these videos don't display on the
<Box></Box> Object. Am I doing something wrong?
Thanks for your help.
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title>My first X3DOM page</title>
<script type='text/javascript'
src='http://www.x3dom.org/download/x3dom.js'> </script>
<link rel='stylesheet' type='text/css'
href='http://www.x3dom.org/download/x3dom.css'/>
</head>
<body>
<h1>Hello, X3DOM!</h1>
<p>
Learn how to use images and videos as texture
<p><a href="http://techslides.com/demos/sample-videos/small.mp4">Sample MP4
Video File</a></strong></p>
<p><strong><a
href="http://techslides.com/demos/sample-videos/small.webm">Sample WebM
Video File</a></strong></p>
<p><strong><a
href="http://techslides.com/demos/sample-videos/small.ogv">Sample Ogg Video
File</a></strong></p>
<p><strong><a
href="http://techslides.com/demos/sample-videos/small.3gp">Sample 3GP Video
File</a></strong></p>
<p><strong><a
href="http://techslides.com/demos/sample-videos/small.flv">Sample FLV Video
File</a></strong></p>
</p>
<x3d width='500px' height='400px'>
<scene>
<shape>
<appearance>
<ImageTexture
url="http://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Peach_Rinkyspl
ash.jpg/800px-Peach_Rinkysplash.jpg"></ImageTexture>
</appearance>
<box></box>
</shape>
<Transform translation='-3.2 0 0'>
<shape>
<appearance>
<MovieTexture repeatS="false" repeatT="false" loop='true'
url='http://techslides.com/demos/sample-videos/small.flv'></MovieTexture>
</appearance>
<box></box>
</shape>
</Transform>
</scene>
</x3d>
</body>
</html>
Regards,
Joseph B. Lewis
CCI
3 Bessom ST.
#212
Marblehead, MA 01945
Phone: 1-781-933-9500
Fax: 1-781-494-9585
Email: jlewis at suitefactory.com
Website: http://www.suitefactory.com <http://www.suitefactory.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20140616/725ad31c/attachment.html>
More information about the X3D-Public
mailing list