Jump to content


Adding a pre roll ad through script


1 reply to this topic

#1 N4Z.

    Call me Yoda

  • Members
  • PipPipPipPip
  • 3,016 posts
  • Gender:Male
  • Location:127.0.0.1
  • Interests:Designing, Apple Fan Boy, Music Production and Weekends!

Posted 06 November 2009 - 05:22 AM

Hey

I have a video for a product i'm selling, straight from my supplier, but I want to run my websites 5 second intro video before, I don't really want to edit the video file because that would mean downloading it, editing it and then reuploading it, is there any way I can just play 2 videos basically..?

heres the code:

<script type="text/javascript" src="https://media.dreamhost.com/ufo.js"></script>
<p id="sample.flv"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>

<script type="text/javascript">
  var FO = { movie:"https://media.dreamhost.com/mediaplayer.swf",width:"320",height:"240",majorversion:"7",build:"0",bgcolor:"#FFFFFF",
			 flashvars:"file=http://www.numark.com/stuff/contentmgr/files/21/7f1592c14a38c99108a814a83d69b042/media/cseries_05_vp6_512k.flv&showdigits=true&autostart=false" };
UFO.create(FO,"sample.flv");
</script>

Before the flv video (http://www.numark.co...05_vp6_512k.flv) starts, I want another one to play first, and then that video.

Any ideas?

Thanks

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 07 November 2009 - 12:50 PM

I'm not 100% familiar with this, but i know you could probably look at the JWM video player. I know it has this functionality (whether or not you can specify what video plays first, i'm unsure).





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users