You are not logged in.

VN2009

Professional

  • "VN2009" started this thread

Posts: 1,336

Location: Duluth MN

  • Send private message

1

Saturday, March 28th 2009, 4:08pm

need Java help

I want to have this video load http://www.virtualnorthland.com/panos/test/indexyui2.html

inside this window instead of a pano http://www.virtualnorthland.com/panos/test/indexyui.html

and this is the section of code I need to modify. I want to load the mechanics.wmv file in the window,

function loadKrPano2(divName)
{
if (typeof(deconcept) !== 'undefined' &&
deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
{
var so = new SWFObject("../core/krpano.swf", "krpanoSWFObject","100%", "100%", "9.0.28","#000000");
so.addParam("allowFullScreen","true");


/* THIS IS IMPORTANT IF YOU DONT PUT THIS THE FLOATING DIV WILL NOT SHOW UP*/
so.addParam("wmode","opaque");

so.addVariable("pano", "bells1.xml");
so.useExpressInstall("../core/swfobject/expressinstall.swf");
so.setAttribute("xiRedirectUrl", window.location);
if ( so.write(divName) )
{
var mousewheelfixes = new SWFkrpanoMouseWheel(so);
}
}
else
{
document.getElementById("krpanoDIV").innerHTML = 'Flash Player 9 needed';
}
}



i use this code to embed it into the exsisting iframe html document. I want to put this video inside the YUI window.

<div id="apDiv2">
<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject" width="300" height="250" hspace="38" vspace="41" align="absmiddle"
standby="Loading Windows Media Player components..." id="MediaPlayer">
<param name="FileName" value="mechanics.wmv" />
<param name="autostart" value="true" />
<param name="ShowControls" value="true" />
<param name="ShowStatusBar" value="false" />
<param name="ShowDisplay" value="false" />
<embed src="mechanics.wmv"
width="275" height="275" hspace="38" vspace="41" autostart="1" align="absmiddle" type="application/x-mplayer2" name="MediaPlayer" showcontrols="1" showstatusbar="0" showdisplay="0"> </embed>
</object>
</div>

Milo helped me get this far but his IM says he is not feeling well and I do not want to bother him.

VN2009

Professional

  • "VN2009" started this thread

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Saturday, March 28th 2009, 11:14pm

I have been able to get my video embedded into the new popup windows and have it cener itself based on screen size. It seems so easy not but it took me a long time to figure this out as I have not used Java at all. Can't wait till we can just embed it right in the tour.

http://www.virtualnorthland.com/panos/central/