hello all... having a little trouble with the rocket science ...
The only code I could get to work seems to be new and doesn't have any documentation anywhere... ...I was hoping someone could help me out with the new code or set me up with the the older code so I can use the tutorials ..
In an ideal situation, I would like a player to play flv files, have a playlist on the side, have the sharing/embed option and play an advertisement before each video.. is this possible?
this is what I have so far
<html>
<head>
<title>test</title>
<style type="text/css">
#wrapper { position:absolute; left:0px; top:0px; width:531; height:259; }
</style>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
function createPlayer(theFile) {
var flashvars = {
file:theFile,
autostart:"false",
playlistsize:"211",
dock:"true",
playlist:"right",
abouttext:"google",
aboutlink:"http://google.com",
frontcolor:"#ffffff",
lightcolor:"#ffffff",
backcolor:"#9d241a",
plugins:"sharing.code",
plugins:"adtvideo",
'adtvideo.config':"ads.xml",
}
var params = {
allowfullscreen:"true",
allowscriptaccess:"always",
bgcolor:"#000000",
}
var attributes = {
id:"player1",
name:"player1",
}
swfobject.embedSWF("player.swf", "placeholder1", "531", "259", "9.0.115", true, flashvars, params, attributes);
}
</script>
<body onload="createPlayer('test.xml')" bgcolor="#000000">
<br>
<br>
<div id="wrapper">
<div id="placeholder1"></div>
</div>
</body>
</html>
do I need the older swfobject.js to get the sharing plugin to work?
I'll pay for some help...anyone want to make some $ ?
You should contact Longtail Video directly for help because only licensees have access to the User Guide and the Installatin Manual.
http://www.longtailvideo.com/support/contact-us
This is about the best that I can do with your code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html lang="en">
<head>
<title>test</title>
<style type="text/css">
div.playercontainer
{
position: absolute;
left: 0;
top: 0;
width: 531px;
height: 259px;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
var flashvars =
{
'file': 'test.xml',
'playlist': 'right',
'playlistsize': '211',
'dock': 'true',
'abouttext': 'google',
'aboutlink': 'http://google.com',
'frontcolor': 'ffffff',
'lightcolor': 'ffffff',
'backcolor': '9d241a',
'plugins': 'adtvideo',
'adtvideo.config': 'ads.xml',
'id': 'playerID',
'autostart': 'false'
};
var params =
{
'allowscriptaccess': 'always',
'allowfullscreen': 'true',
'bgcolor': '#000000'
};
var attributes =
{
'id': 'playerID',
'name': 'playerID'
};
swfobject.embedSWF('player.swf', 'player', '531', '259', '9.0.124', true, flashvars, params, attributes);
</script>
</head>
<body bgcolor="#000000">
<br>
<br>
<div id="playercontainer" class="playercontainer"><a id="player" class="player" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a></div>
</body>
</html>
I'm not sure which sharing plugin you are referring to, so I didn't include it in the code.