Hello,
How can i have a simple OVA integration code in AS3 ...?
I read the doc on your site, there is no simple intégration exemple, wich permit to do the first step ..
Here, i put a SimplePlayer code in AS3 ...
Could you help me for integrate a preroll on this player ?
Thanks,
Philippe.
###
// ActionScript file
package {
import flash.display.Sprite;
import flash.net.NetConnection;
import flash.net.NetStream;
import flash.media.Video;
// import flash.display.MovieClip;
public class SimpleFLVPlayer extends Sprite {
private var nc:NetConnection;
private var ns:NetStream;
private var vid:Video;
private var client:Object;
public function SimpleFLVPlayer () {
// Initialize net stream
nc = new NetConnection();
nc.connect (null); // Not using a media server.
ns = new NetStream(nc);
// Add video to stage
vid = new Video(320,240);
vid.x = 0;
vid.y = 0;
addChild (vid);
client = new Object();
ns.client = client;
// Play video
vid.attachNetStream ( ns );
ns.play ( '/home/phil/DOC_CAC/FLEX_EclipseSuperSimpleFLVPlayer/bin-debug/course.flv' );
}
}
}
Hi Phillipe,
Can I ask - what doesn't make sense or is confusing in the following short adhoc guide?
http://developer.longtailvideo.com/ova/wiki/OvaOnDemandCustomPlayer
(requires login to the OVA developer site first)
I think it would be better for me to address specific questions on the content of that doc so that we can improve it going forward.
Specifically, section 5 has the key steps you have to follow - which ones don't make sense for you?
Paul