> If any body can give me some more detailed
> explinations, they might get some duke dollars...
No one cares about Duke Dollars, and no one is going to spoon-feed you. If you want to get better, then you need to figure out how to do things on your own. I gave you the class to need to look into, along with a link to the documentation. If you can't figure out how to use it by reading the documentation, then search on google for some examples.
> No one cares about Duke Dollars, and no one is going
> to spoon-feed you. If you want to get better, then
> you need to figure out how to do things on your own.
> I gave you the class to need to look into, along
> with a link to the documentation. If you can't
> figure out how to use it by reading the
> documentation, then search on google for some
> examples.
Calm down buddy... just trying to get some answers.
I hav implemented windows media player using JSP....i am sending code
However for java program i do not know
<html>
</body>
<!-- begin embedded WindowsMedia file... -->
<table border='0' cellpadding='0' align="left">
<tr><td>
<OBJECT id='mediaPlayer' width="320" height="285"
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="c:\abc.wmv">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="true">
<param name='loop' value="true">
<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="320" height="285"
src="c:\abc.wmv" autostart="true" designtimesp='5311' loop="true">
</EMBED>
</OBJECT>
</td></tr>
<!-- ...end embedded WindowsMedia file -->
<!-- begin link to launch external media player... -->
<tr><td align='center'>
<a href="http://servername/path/to/media.file" style='font-size: 85%;' target='_blank'>Launch in external player</a>
<!-- ...end link to launch external media player... -->
</td></tr>
</table>
</body>
</html>
Hey Everybody,
Please use this code to start media player from Java
public class mplayer
{
public static void main(String file[]) throws Exception
{
Runtime r=Runtime.getRuntime();
/*wmplayer is the command name and put one space after command name and then type the file name or pass the runtime arguments.*/
r.exec("wmplayer "+s1[0]);
}
}
Hey Everybody,
Please use this code to start media player from Java
public class mplayer
{
public static void main(String file[]) throws Exception
{
Runtime r=Runtime.getRuntime();
/*wmplayer is the command name and put one space after command name and then type the file name or pass the runtime arguments.*/
r.exec("wmplayer "+args[0]);
}
}
A related question that I have, is if you open another program using Runtime, can you control it further. I know that it can be launched and closed as I've seen much code that can do this by google search, but can you do other things to the program especially, can you give the app focus?
If I can get it the focus, then with the robot can do lots of manipulations to the app.