topical media & game development
mobile-query-three-plugins-webrtcio-examples-demotv.htm / htm
<!doctype html><title>Minimal tQuery Page</title>
<script src="../../../build/tquery-bundle-require.js"></script>
<script src='../vendor/webrtc.io-client/webrtc.io.js'></script>
<body><script>
require(['tquery.videos'], function(){
var world = tQuery.createWorld().boilerplate().start();
rtc.createStream({"video": true, "audio": true}, function(stream){
console.dir(stream)
var url = URL.createObjectURL(stream);
var texture = tQuery.createVideoTexture(url);
var player = tQuery.createCube().addTo(world)
.setBasicMaterial()
.map(texture)
.back()
}, function(){
console.log('createStream failed', arguments)
});
});
</script></body>
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.