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

Forums

/

A simple Code in AS3 ..

3 replies [Last post]
Reply

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

}

}
}

Reply

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

Reply

Hi Paul,

Thanks for your back,

i haven't seen this link ..
http://developer.longtailvideo.com/ova/wiki/OvaOnDemandCustomPlayer

In fact, the doc for AS3 isn't so clear ..

This link : http://www.longtailvideo.com/support/open-video-ads/ova-for-as3/13067/integrating-ova-for-as3

don't detail the first step for AS3 : reading JSON Configuration Data

it do it for flowplayer and JW Player, but i don't see it for AS3

In fact i found this step in "OVA JSON Configuration" AS3 section ..

So i'll try to do my job with this elements (and my poor english .. sorry ..)

i have several thinks to do on the same time ..

so i organize my time, i try it , and i'm back to you if i need !!

(but an simple exemple will be for me a great Help ..)

Philippe.

Reply

Yeh, I agree that the doc is particularly poor at present.. it's been a little neglected on my side.

I'm going to make a concerted effort to update it once the next full release is out in the next few weeks.. and put a simple example in there..

But for now, best fire over the questions as you have them and I'll respond with guidance to help...

Paul

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