Preview JPG for a windows media player - windows

I'd like to have a JPG preview for my simple .wmv player. Any ideas? Here it is...
<div id="embed">
<OBJECT id='mediaPlayer1' width="360" height="240"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="images/video.wmv">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="false">
<param name='showControls' value="true">
<param name ="ShowAudioControls"value="true">
<param name="ShowStatusBar" value="true">
<param name='loop' value="false">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="360" height="240"
src="images/video.wmv" autostart="false" designtimesp='5311' loop="false">
</EMBED>
</OBJECT>
<br />
</div>

Could you put an image over it and when the image gets clicked, hide it and tell WMP to start playing? Something like this:
<script>
function handleStartClick() {
document.getElementById("playbackPreview").style.display = "none";
//not sure about the next line, mybe you have to remove "controls." or so
document.getElementById("mediaPlayer1").controls.play();
}
</script>
<div id="embed" style="position: relative;">
<OBJECT id='mediaPlayer1' width="360" height="240"[...]</OBJECT>
<img id='playbackPreview' style="z-index: 100; position: absolute; top: 0px; left: 0px" src="previewimage.jpg" onclick="handleStartClick()" />
</div>

Related

How to play .wmv file in HTML/jsp page in fire fox?

Please suggest something apart from below code as this code is not working in FF.
<!--<OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="190" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB- 0080C74C7E95" STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="videofilename.wmv">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<PARAM name="autostart" VALUE="false">
<EMBED TYPE="application/x-`enter code here`mplayer2" SRC="videofilename.wmv" NAME="MediaPlayer" WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>-->

how to save .fmx file (oracle forms) deployed on a website

Is there any way to save the oracle forms(3-tier) .fmx file running from a server, accessed using a web browser..
what i am getting is some tags containing the .fmx file location . on accessing those files i get the .fmx running. i need dump of the .fmx
Following is the code received by the browser:
<!-- Forms applet definition (start) -->
<OBJECT classid="clsid:CAFECAFE-0013-0001-0022-ABCDEFABCDEF"
codebase="/forms/jinitiator/jinit.exe#Version=1,3,1,22"
WIDTH="800"
HEIGHT="600"
HSPACE="0"
VSPACE="0">
<PARAM NAME="TYPE" VALUE="application/x-jinit-applet;version=1.3.1.22">
<PARAM NAME="CODEBASE" VALUE="/forms/java">
<PARAM NAME="CODE" VALUE="oracle.forms.engine.Main" >
<PARAM NAME="ARCHIVE" VALUE="frmall_jinit.jar,JCalendarJinit.jar,jcalendar.jar,jacob.jar,frmwebutil.jar,icons.jar" >
<PARAM NAME="serverURL" VALUE="/forms/lservlet?ifcfs=/forms/frmservlet?form=PR_SC_3T_LOGIN_EDB.fmx&acceptLanguage=en-US,en;q=0.8,hi;q=0.6,ms;q=0.4">
<PARAM NAME="networkRetries" VALUE="0">
<PARAM NAME="serverArgs"
VALUE="escapeParams=true module=PR_SC_3T_LOGIN_EDB.fmx userid= sso_userid=%20 sso_formsid=formsApp_appserv5.vsp.org_E90504F17EA811DFBFFD1B9BE00D2215 sso_subDN= sso_usrDN= debug=no host= port= buffer_records=no debug_messages=no array=no obr=no query_only=no quiet=yes render=no record= tracegroup= log= term=">
<PARAM NAME="separateFrame" VALUE="True">
<PARAM NAME="splashScreen" VALUE="">
<PARAM NAME="background" VALUE="NO">
<PARAM NAME="lookAndFeel" VALUE="Oracle">
<PARAM NAME="colorScheme" VALUE="teal">
<PARAM NAME="serverApp" VALUE="default">
<PARAM NAME="logo" VALUE="NO">
<PARAM NAME="imageBase" VALUE="DocumentBase">
<PARAM NAME="formsMessageListener" VALUE="">
<PARAM NAME="recordFileName" VALUE="">
<PARAM NAME="EndUserMonitoringEnabled" VALUE="">
<PARAM NAME="EndUserMonitoringURL" VALUE="">
<PARAM NAME="heartbeat" VALUE="">
<COMMENT>
<EMBED SRC="" PLUGINSPAGE="/forms/jinitiator/us/jinit_download.htm"
TYPE="application/x-jinit-applet;version=1.3.1.22"
java_codebase="/forms/java"
java_code="oracle.forms.engine.Main"
java_archive="frmall_jinit.jar,JCalendarJinit.jar,jcalendar.jar,jacob.jar,frmwebutil.jar,icons.jar"
WIDTH="800"
HEIGHT="600"
HSPACE="0"
VSPACE="0"
serverURL="/forms/lservlet?ifcfs=/forms/frmservlet?form=PR_SC_3T_LOGIN_EDB.fmx&acceptLanguage=en-US,en;q=0.8,hi;q=0.6,ms;q=0.4"
networkRetries="0"
serverArgs="escapeParams=true module=PR_SC_3T_LOGIN_EDB.fmx userid= sso_userid=%20 sso_formsid=formsApp_appserv5.vsp.org_E90504F17EA811DFBFFD1B9BE00D2215 sso_subDN= sso_usrDN= debug=no host= port= buffer_records=no debug_messages=no array=no obr=no query_only=no quiet=yes render=no record= tracegroup= log= term="
separateFrame="True"
splashScreen=""
background="NO"
lookAndFeel="Oracle"
colorScheme="teal"
serverApp="default"
logo="NO"
imageBase="DocumentBase"
formsMessageListener=""
recordFileName=""
EndUserMonitoringEnabled=""
EndUserMonitoringURL=""
heartBeat=""
>
<NOEMBED>
</COMMENT>
</NOEMBED></EMBED>
</OBJECT>
<!-- Forms applet definition (end) -->
</BODY>
</HTML>
Using .fmx files:
Cannot edit or view the code written.
Running offline cannot be useful is some case: if the form uses queries and needs to be connected to the database.
Maybe the main reason why using fmx files, is too use the same form on multiple endpoint within an intra-network
For the fmx on the server, you can try to access that link /forms/frmservlet?form=PR_SC_3T_LOGIN_EDB.fmx and try to download it from the server.
Hope it helps you.

I can't return param value with xpath

I want to return the value of a param inside an object with xpath.
Example Code:
<object id="player" width="100%" height="100%" type="application/x-shockwave-flash" data="http://merhad.333low.com/player.swf" bgcolor="#000000" name="player" tabindex="0">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="seamlesstabbing" value="true">
<param name="wmode" value="opaque">
<param name="flashvars" value="http://merhad.333low.com/fqoyJxxS-2c2MSx-wGYmS3T1pkggIeiK7wpA7BbXXcK2sC4XYWehpBDV6CAK7CFH/s=awcmxqt5gYntLqHJ9ceP.flv">
</object>
I tried this, but no result!
Example Code:
echo $xpath2->query("//object[id='player']/param/#value")->item(0)->nodeValue;
You should match the ID as an attribute:
echo $xpath2->query("//object[#id='player']/param/#value")->item(0)->nodeValue;
btw, this will return only the first 'param' nodevalue

Jw Player is not working in firefox?

In my web application, i place the jw player for playing the video file. it is not working in fire fox an google chrome. it is working in IE
dvplayer.InnerHtml = "<object id='player' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' name='player' width='500' height='300' > <param name='movie' value='player.swf' /> <param name='allowfullscreen' value='true' /> <param name='allowscriptaccess' value='always' /> <param name='flashvars' value='file=" + file + "&autostart=true' /> </object>";
I wrote a small test that is working in Chrome and Firefox:
<div id="mediaplayer">JW Player goes here</div>
<script type="text/javascript">
var file = "video.mp4";
document.getElementById('mediaplayer').innerHTML = '<object type="application/x-shockwave-flash" data="player.swf" width="100%" height="100%" bgcolor="#000000" id="mediaplayer" name="mediaplayer" tabindex="0"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="seamlesstabbing" value="true"><param name="wmode" value="opaque"><param name="flashvars" value="netstreambasepath=file%3A%2F%2F%2Fhome%2Faeby%2Fworkspace%2Fatws%2Ftest.html&id=mediaplayer&file=' + file + '&image=preview.jpg&controlbar.position=over"></object>';
</script>
One mistake is that InnerHtml is not lower case. It should read dvplayer.innerHtml.

WMV scaling in Firefox 3.0.3

I am having problems with my WMV file playing in its original resolution and not scaling to the size of the windows media frame. Here is the code:
<p>
<object height="420" width="585" type="application/x-oleobject"
standby="Loading Microsoft Windows Media Player components..."
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id="mediaPlayer">
<param value="mms://a1977.v167321.c16732.g.vm.akamaistream.net/7/1977/16732/0/sas-qp.onstreammedia.com/origin/2etrassociates/NSLC/Webinars/Sustaining_Successful_Civic_Engagement_Campus_and_Community_Based_Initiatives-20090409-1804.wmv" name="fileName" />
<param value="1" name="animationatStart" />
<param value="1" name="transparentatStart" />
<param value="1" name="autoStart" />
<param value="1" name="ShowControls" />
<param value="0" name="ShowDisplay" />
<param value="0" name="ShowStatusBar" />
<param name="AutoSize" value="false" />
<param value="0" name="loop" />
<param value="100" name="Volume" />
<embed height="420" width="585" scale="exactfit" loop="0"
designtimesp="5311" autostart="1"
src="mms://a1977.v167321.c16732.g.vm.akamaistream.net/7/1977/16732/0/sas-qp.onstreammedia.com/origin/2etrassociates/NSLC/Webinars/Sustaining_Successful_Civic_Engagement_Campus_and_Community_Based_Initiatives-20090409-1804.wmv"
videoborder3d="0" showstatusbar="0" showdisplay="0" showtracker="1"
showcontrols="1" bgcolor="darkblue" autosize="0" displaysize="4"
name="mediaPlayer" id="mediaPlayer"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
type="application/x-mplayer2" volume="100">
</embed>
</object>
</p>
<p>
<a href="/sites/default/files/download/webinars/Wagner_College-Staten_Island-New_York-Webinar.ppt">
<strong>Download the Updated PowerPoint presentation for this webinar</strong>
</a>. (755K ppt)
</p>
And here is the link which
works fine in IE7 and IE8.

Resources