Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

As3 integration exemple

3 replies [Last post]
Reply

Hi,

I search an simple exemple of as3-Ova integration ....

Where can i find it please ...?

Thank a lot,

Philippe.

Reply

Hi,

The best examples are the OVA for JW4, OVA for JW5 and OVA for Flowplayer implementations.

You can find the source for all of these plugins on the OVA developer site.

You can browse the source here:

http://developer.longtailvideo.com/ova/browser#trunk

Or do an SVN checkout via the instructions here:

http://developer.longtailvideo.com/ova/wiki/OvaSubversionAccess

Look at the classes following classes for the implementations:

org.openvideoads.plugin.jwplayer.streamer.OpenAdStreamer.as
org.openvideoads.plugin.flowplayer.streamer.OpenAdStreamer.as

Note that you'll need to register on http://developer.longtailvideo.com/ova to gain access to the source...

Paul

Reply

Hi, I should also add, that in addition to the general OVA for AS3 documentation, there is a note here that may help you get started with custom implementations:

http://developer.longtailvideo.com/ova/wiki/OvaOnDemandCustomPlayer

(requires registration and login to the OVA developer site at http://developer.longtailvideo.com/ova)

Paul

Reply

Hi Paul,

Thank for your answer,

I've already read the link on your second thread, but it is not so clear for me ..

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' );

}

}
}

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options