Dec. 17, 2007JeroenW
Note that there's three steps required to implement LTAS into your mediaplayer:
1. You have to wrap a <div id="mediaspace"> around your videoplayer.
2. If you use a Flash player, your mediaplayer should have the parameter "wmode" set to either "opaque" or "transparent"
3. You have to add a single line of javascript to your site. With my account, this line is:
<script type="text/javascript" src="http://www.ltassrv.com/serve/api4p.asp?d=57&s=68&c=100&v=1"></script>
Dec. 17, 2007JeroenW
One pitfall when using SWFObject: make sure you don't use the 'mediaspace' div as the replacement div for SWFObject. Place another element inside it that can be used as the replacement div. If you assign the 'mediaspace' as the replacement div, it might happen that the SWFObject also replaces the advertisement...
Dec. 19, 2007Job
Can you please explain a bit more.
When I use longtail the adverts get the anoying activate active x.
How can I get rid of that? An example says more then words
Hmm i fiddeled with it a bit now. is this the correct way?
<div id="mediaspace">
<div id="p1">this will be replaced by the SWF.</div>
</div>
<script type="text/javascript">
var p1 = new SWFObject('admin/assets/mediaplayer.swf','mpl','689','290','8');
p1.addParam('allowfullscreen','true');
p1.addParam('allowscriptaccess','always');
p1.addParam('wmode','opaque');
p1.addVariable('shuffle','false');
p1.addVariable('smoothing','true');
p1.addVariable('kenburns','false');
p1.addVariable('file','admin/xml_player/playlist.xml');
p1.addVariable('thumbsinplaylist','true');
p1.addVariable('autostart','false');
p1.addVariable('displayheight','270');
p1.addVariable('displaywidth','360');
p1.addVariable('bwfile','admin/assets/100k.jpg');
p1.addVariable('bwstreams','350,450,650');
p1.addVariable('enablejs','true');
p1.addVariable('frontcolor','0xcccccc');
p1.addVariable('backcolor','0x000000');
p1.addVariable('lightcolor','0x6a6a6a');
p1.write('p1');
</script>
The ad seems to show ok, except for the border, but i dont understand, it sort of blocks the player interaction except for when i press the play button on the controllbar. When does the add dissapear?
As i understand it is an overlay <div> that shows the ad, which i gues blocks the interaction in the video and thumbnail area. In my case i use a playlist to the right. Maybe that option wasnt thought to be used when using longtail ad functionality?
Thanks!
/Job
ps: I'm testing with your account and it works fine. Except for the above.
Dec. 20, 2007Darjan
Hello Job
I am a LongTail employee and I will do my best to help you.
The problem that you are getting with "activate active x." is it occurring only in IE or other browsers as well? If you the problem only applies to IE, this article might explain how to fix it: http://www.macromediahelp.com/flash/flash_object_fix/
The reason for this gray border (in IE) has to do with Microsoft being sued by a small company that claimed that they have a patent for plugins.You can read more about it over here: http://en.wikipedia.org/wiki/Eolas
However, one obvious problem with the code that you pasted is that the ending </div> tag for <div id="mediaspace"> needs to be at the bottom of your player. It should show up after the </script> tag.
Still, I would be of great help to me if you can setup a live demo on your page. I am not entirely sure if I know what the problem is. As you said.. An example says more then words
Thanks,
Darjan
Dec. 20, 2007andersen
@Job - are you testing online?
if you are testing offline you can insert the "motw" - mark of the web, a microsoft specific tag
<html>that will prevent the click to activate warning when offline in IE...
<!-- saved from url=(0014)about:internet -->
Dec. 28, 2007b0b0
LTAS seems to be a great solution, however, it also mark the return of "click to activate" in IE. It would be great if a workaround is implemented in the code. After all, that's why we're using ufo and swfobject to get pass that for flash plugin in the first place.
Jan. 02, 2008Nick
Smart move to integrate this into the suite of ad solutions, congratulations!.
However, when I went to the demos page for midroll ads, the ad showed up in place of the video, not as an overlay - I'm FF mac 10.4.10
Jan. 02, 2008JeroenW
@b0b0: Note that you can simply use SWFObject or another JS for placement of the video and the ads.
@Nick: You're totally right. I'll check what's going on.
Jan. 02, 2008Gerd
Sorry for not getting the SWF object hints to avoid active x hints!
What does the hint ".. simply use SWF Object" mean in this respect?
I always use swfobject and in JW's demo page
http://www.jeroenwijering.com/?item=LongTail_Ad_Solutions
it is included as well. The same is true for almost all other demos (like andersen's demos etc.)
The above postings make me pretty uncertain. Of course the annoying activate active x hint would be an obstacle for using LTAS.
I am just looking for a demo page with LTAS in JW's media player which works well in IE and firefox. Is there one which could and should be used as a working example to be followed.
Thanks
Jan. 02, 2008William P
Hey,
it would be awesome if you could post an exact example for us "newbies".
Here's a snippet taken from the example file that comes with the "Flv Player Package" available from this very website:
<html>
<head>
<script type="text/javascript" src="swfobject.js"></script>
</head>
<body>
<h3>single file, with preview image:</h3>
<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var s1 = new SWFObject("flvplayer.swf","single","300","170","7");
s1.addParam("allowfullscreen","true");
s1.addVariable("file","video.flv");
s1.addVariable("image","preview.jpg");
s1.addVariable("width","300");
s1.addVariable("height","170");
s1.write("player1");
</script>
</body>
</html>
Now where do we add all the <div> tags and the <script> tags?
Any help would be very appreciated!
On another note: It might be that all this info is available in the LTAS member's section, but I'm not a member and I'd love to try things out before I sign up.
Again, thanks in advance!
- William
Jan. 03, 2008JeroenW
@Gerd: the banner I've put inside the advertisement doesn't use SWFObject. That's why the 'click to activate' is rendered. I'll just have to load it with SWFObject, which can be set in the LongTail admin pages. So it was my bad, but I wanted to let you know you can simply use a JS replacement.
@William P: A small tutorial is coming up! In the meantime, check the source code of the LongTail page on this site. In there you'll see that all that needs to be done is adding a line of javascript right at the bottom of the page. That's all!
<script type="text/javascript" src="http://www.ltassrv.com/serve/api4p.asp?d=57&s=68&c=100&v=1"></script>
Jan. 09, 2008Darjan
@William P: If you are interested in examples, please refer to the following URLs
http://www.longtailadsolutions.com/demo/api5/pre.html
http://www.longtailadsolutions.com/demo/api5/mid.html
http://www.longtailadsolutions.com/demo/api5/post.html
If you click to view the source code, I think that most of your questions regarding the implementation will be answered.
Mar. 18, 2008Nico
When are you planning to release the source-code for the midroll? Also, please make it work with playlist, so the midroll ad restart everything anyone is pressing play :-)
Jun. 05, 2008Shaka
Hello,
Does it work with the " simple playlist-list" ? like http://home5.inet.tele.dk/nyboe/flash/mediaplayer/playlistlinks.htm
this code seems not working :
<script type="text/javascript">
function createplayer(theFile, go) {
var s = new SWFObject("mediaplayer.swf","PlayerID","300","350","7");
s.addParam("allowfullscreen","true");
s.addVariable("file",theFile);
s.addVariable("width","300");
s.addVariable("height","350");
s.addVariable("displayheight","225");
s.addVariable("overstretch","fit");
s.addVariable("shuffle","false");
s.addVariable("thumbsinplaylist","true");
if (go) { s.addVariable("autostart","true"); }
s.write("mediaspace");
}
</script>
Any ideas to display thousands on videos on 1 page ?
Best regards,
Jun. 05, 2008andersen
@Shaka - from posting two in this thread: make sure you don't use the 'mediaspace' div as the replacement div for SWFObject.
Jun. 05, 2008Shaka
Humm, can you post a sample of this code ?
Jun. 08, 2008pp
hello,
I`m using longtail ads solution but the ads are showind with grey background instead of transparent background..
here is the code i`m using
<div name="mediaspace" id="mediaspace">
<embed src="http://www.bdmusicians.com/jontrona/player.swf" width="500" height="250" wmode="transparent" menu="false" allowfullscreen="true" flashvars="&logo=http://bdmusicians.com/jontrona/videos/logo33.png&shuffle=false&overstretch=fit&height=250&width=500&enablejs=true&midroll=243&bgcolor=0xb00112&frontcolor=0xb00112&backcolor=0xF0D296&lightcolor=0xb00112&screencolor=0xb00112&link=true&image=http://www.bdmusicians.com/jontrona/videos/TV.gif&file=http://youtube.com/watch?v=OpzEF0D2xfE"/>
</div>
<script language="JavaScript" src="http://www.ltassrv.com/serve/api5.2.asp?d=180&s=211&c=243&v=1"></script>
and here is the link os some video where i`m using long tail ads
http://community.polapain.com/about8904.html
Jun. 09, 2008Jamzee
Forgive me if this has been answered, but is it possible to display mid roll ads on a player that is embeded on another site using embed tags and doesn't allow javascript? For example if i post one of my playlists, from my site, onto my myspace page?
thanks
Jun. 16, 2008JeroenW
Yes, that's possible. Since the ads are implemented inside the player, they will still be there when the player is embedded on other sites.
Aug. 04, 2008jpbazinet
Since upgrading to version 4 of the player (and the Snel skin), my post-roll ads are no longer appearing.
I've sent a trouble ticket in, but no response yet.
http://videos.movie-list.com
Here's the code I'm using:
<div name="mediaspace" id="mediaspace">
<embed src="http://videos.movie-list.com/flvplayer.swf" loop="false" width="450" height="370.5" allowscriptaccess="always" wmode="transparent" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="config=http://videos.movie-list.com/onsite.xml&width=450&height=370.5&enablejs=true&plugins=ltas&channel=783&file=http://videos.movie-list.com/flvideo/216.flv"></embed>
</div>
<script language="JavaScript" src="http://www.ltassrv.com/serve/api5.4.asp?d=732&s=839&c=783&v=1"></script>
Aug. 05, 2008JeroenW
There's indeed an issue with the regular <embed> code. The javascript calls from the player are not sent when it is placed inside such a code. If you switch to either an object + embed tag or to SWFObject, the postrolls will work again. Here's some more info about these embedding possibilities:
http://www.jeroenwijering.com/?item=Embedding_Flash
Meanwhile, we'll still try to get single <embed> tags working as well.
Aug. 05, 2008jpbazinet
I've changed my code to the SWFObject method, and followed directions at the LongTail website.
Still not getting my post-roll ads.
Here's the new code:
<script type='text/javascript' src='http://videos.movie-list.com/swfobject.js'></script>
<div name="mediaspace" id="mediaspace"></div>
<script type='text/javascript'>
var s1 = new SWFObject('http://videos.movie-list.com/flvplayer.swf','ply','450','220.5','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addVariable('channel', '783');
s1.addVariable('plugins', 'ltas');
s1.addParam('wmode','transparent');
s1.addParam('flashvars','config=http://videos.movie-list.com/onsite.xml&width=450&height=220.5&enablejs=true&file=http://videos.movie-list.com/flvideo/207.flv');
s1.write('mediaspace');
</script>
<script language="JavaScript" src="http://www.ltassrv.com/serve/api5.4.asp?d=732&s=839&c=783&v=1"></script>
Aug. 13, 2008Darjan
Hello jpbazinet.
Can you please send an email to darjan } at { longtailvideo dot com and I will be able to help you out. Please include the URL of the player and video on your website where you are having the issue.
Best Regards,
Darjan
Aug. 26, 2008pinoyconsole
Just a suggestion:
I hope the forum and support for longtail adsolution is seperated in the main player's forum so is more easy to find answers and to post problems and it must be available in my longtail account dashboard.
My Problem:
I'm using "Vidiscript" on my site and everytime I add flashvars/ variables it dont show any changes on the players and if I add param it show error on the line no. where I put the param.
Below is the player's code can somebody help me to put the Longtails code here. All help is much appreciated.
$mediaPlayer = '<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript" src="'.$sitepath.'includes/swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("'.$sitepath.'misc/flash/player.swf","ply","436","346","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file='.$sitepath.'uploads/'.$row['mediaurl'].'&autostart=true&fullscreen=true");
s1.write("player1");
</script></p>';
And also if somebody help me to put the "skin or even change the color" of the players is much appreciated.
Please excuse my ignorance.
Here is my site : www.flipsession.com
Aug. 26, 2008Darjan
Hello Pinoyconsole.
Can you please send an email to darjan } at { longtailvideo dot com so that I can help you out?
You also need to sign up here http://dashboard.longtailvideo.com/signup.aspx (if you have not already done that) before I can help you out because you need your unique publisher ID.
Best Regards,
Darjan
Aug. 29, 2008jpbazinet
This still isn't working on my site.
Here's my code:
<script type='text/javascript' src='http://videos.movie-list.com/swfobject.js'></script>
<div name="mediaspace" id="mediaspace"></div>
<script type='text/javascript'>
var s1 = new SWFObject('http://videos.movie-list.com/flvplayer.swf','ply','450','246.75','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addVariable("midroll", "2542");
s1.addParam('wmode','transparent');
s1.addParam('flashvars','config=http://videos.movie-list.com/onsite.xml&width=450&height=246.75&file=http://videos.movie-list.com/flvideo/266.flv&enablejs=true');
s1.write('mediaspace');
</script>
<script language="JavaScript" src="http://www.ltassrv.com/serve/api5.4.asp?d=732&s=839&c=2542&v=1"></script>
onsite.xml contains:
<config>
<autostart>true</autostart>
<volume>80</volume>
<bufferlength>3</bufferlength>
<fullscreen>true</fullscreen>
<stretching>uniform</stretching>
<skin>/snel.swf</skin>
<allowscriptaccess>always</allowscriptaccess>
<linktarget>_top</linktarget>
<abouttext>Movie-List Player</abouttext>
<aboutlink>http://www.movie-list.com</aboutlink>
</config>
I'm using swfobject.js 1.5
I'm using JW Player 4.1.60
Here's the site:
http://videos.movie-list.com
Any help would be greatly appreciated.
Sep. 10, 2008JeroenW
Hmm, do you want to use the midroll?
You now use the 3.xx flashvars for the midroll. Additionally, if you use the addParam('flashvars'), the addVariable() calls cannot be used anymore.
I'd remove the addVariable('midroll') line and add two variables to the 'flashvars' string: '&plugins=ltas&midroll=2542'
Mar. 06, 2009garg
hi all,
<script language="JavaScript" src="http://www.ltassrv.com/serve/api5.4.asp?d=732&s=839&c=2542&v=1"></script>
hey...please tell me how this javascript is working and from where i will get "d=732&s=839&c=2542&v=1" this code....
Any help will be appreciated...thanks
Aug. 02, 2009Lewis
hey, I have vidiscript and I want to change the skin, I've got the JW Player in but I cant figure out how to get skin on. And when I change the flashvars or add the skin bit it doesnt show the play page.
Aug. 06, 2009Ethan LongTail
Hi,
This is Ethan from LongTail here to help you.
Can you link me to where you are running our player on your site so I can take a look at your implementation so I can better help you?
Please email me directly at ethan [at] longtailvideo [dot] com to follow up if you have any other questions, thank you.
Best Regards,
-Ethan
Here are some helpful links to learn more about the JW Player™:
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!
If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.