VideoTexture :: (flash.display3D.textures.VideoTexture)

Software: Away3D 4.x

mindthegap, Newbie
Posted: 02 October 2016 01:24 PM   Total Posts: 6   [ # 16 ]

hi,

I added this to the SimpleVideoplayer, but stil having the _player.ns not public error. why, wheres my fault?

public function get ns():NetStream
{
 
return _ns;
   

Avatar
theMightyAtom, Sr. Member
Posted: 02 October 2016 02:27 PM   Total Posts: 669   [ # 17 ]

That’s exactly how it should be. The only thing I can think of is that you may have altered it in a different copy of the Away framework than the one your project is pointing to? (I’ve done this myself!)

   

mindthegap, Newbie
Posted: 02 October 2016 02:53 PM   Total Posts: 6   [ # 18 ]

ok, I added it althouhg to the IVideoPlayer Interface, now it compiles wthout errors.

but I see nothing:

var vt:NativeVideoTexture = new NativeVideoTexture("videoname.mp4",truetrue)
var 
tm:TextureMaterial = new TextureMaterial(vttruefalsefalse);
var 
planeGeom:PlaneGeometry = new PlaneGeometry(1920108011);
var 
planeMesh:Mesh = new Mesh(planeGeomtm);
_view.scene.addChild(planeMesh);
tm.player.play(); 

the video is a h265/mp4 file…

regards

   

mindthegap, Newbie
Posted: 02 October 2016 02:59 PM   Total Posts: 6   [ # 19 ]

sorry 264/mp4 file

   

mindthegap, Newbie
Posted: 02 October 2016 03:36 PM   Total Posts: 6   [ # 20 ]

ok, my fault, when adding to the scene it will concealed by the background.

is it possible to fade between a background and the video. I can use the video as background

_view.background = vt;

but can I have two backgrounds?
or how could I play the video in foreground over all. is there a layer for GUIs?

   

Avatar
theMightyAtom, Sr. Member
Posted: 02 October 2016 03:40 PM   Total Posts: 669   [ # 21 ]

It shouldn’t be concealed. It should be within the Stage3D layer, as apposed to the video layer below.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X