Ads on videos.

Status
Not open for further replies.

StarTech

Active Member
550
2008
6
0
Dear community.

I've got a website where videos are being streamed from my server to users.
My question is..
How do i enable to show advertisements on these videos like on youtube videos.
Greetings
Startech
 
10 comments
I think it depends on which player you use.
If you use Flowplayer, I know there are plugins that allow you to add pre-roll and other types of ads to the videos. I think the same exists for JWplayer as well.
 
Google something like how to add ads to "whatever player you are using"
There are settings or snippets of code which will allow you to add pre video ads
 
i have created a script which can over ride on any player and disappear after some time u set. Hope this will help u also

put this in head
:
<style type="text/css">
body{text-align:center;min-width:300px;min-height:250px;}#ontop{position:absolute;top:310px;left:50%;margin-top:-106px;/* half elements height*/margin-left:-120px;/* half elements width*/width:310px;height:250px;background:#000;text-align:center;}
</style>

<script type="text/javascript">
function show(){e=document.getElementById('ontop');e.style.visibility='visible';}
function hide(){e=document.getElementById('ontop');e.style.visibility='hidden';}
setTimeout ("hide()", 10000) //time in milisecond to disaapar ad
</script>
paste in body:
<div id="ontop" style="visibility: hidden;">
<div style="background-color:#000000; width:314px; height:260px;">
your ad code 300x250

<a title="Close" onclick="document.getElementById('ontop').style.display = 'none';return false;" href="#">
<img alt="X" src="http://i.imgur.com/E3TfK.png" style="margin: 1px 0px 2px -22px;"></a>
</div>
</div>
note u can change postion/ set postion by replacing the values of ontop on style . :)

Good luck
 
i'm tring to use this code in my site but it's not working properly, the ads shows up outside of video :\ any solution for it ?
 
What Desi_Boy posted is not a video ad solution.
All it does is add an overlay on top of the div container for the video.
Just a quick fix if you will.
 
i know that already :). and i don;t want to pay 125$ to longtailvideo to get an ad solution Plugin that's why im loooking for a code like that...
 
Status
Not open for further replies.
Back
Top