Launching real player from an applet.

hi all.
I was trying to figure out the best way to launch a real audio/video file from a java applet .
i would like to either launch it when someone clicks on something or programmatically.
Does anyone have any idea ?
Stephen

The first thing you will have to deal with is that the security rules for applets do not allow them to launch programs on the client system where they are running. If you want your applet to be allowed to do this, you must sign it, and then the user will be asked if he/she wants to load your applet or not.
Second thing is to figure out how to launch RealPlayer. This could be difficult, because it might not even be installed on the client system.

Similar Messages

  • Launch QuickTime player from hyperlink in Safari

    Here's the software I have:
    Mac OS X 10.4.3
    Safari 2.0.2
    QuickTime Player 7.0.3
    When I click a hyperlink in Safari, for example:
    <a href="movie.mov">Movie</a>
    Safari immediately begins playing the Movie in the browser window as the Movie is being downloaded.
    How do I configure either Safari or QuickTime to LAUNCH a new QuickTime player window instead of playing the movie in the Safari window?
    Any help will greatly appreciated.
    Benjamin
    iBook PowerPC G4 800MHz - 12" screen   Mac OS X (10.4.3)   Memory: 640 MB DDR SDRAM

    QuickTimeKirk, your advice is correct but I don't want to go threw all that action of control-click, copy URL, open QuickTime, then paste the URL into QuickTime. I know that works, but I want something simpler and faster (to automate that!)
    I'm looking for a simple "single-click" solution to launching a QuickTime player from a hyperlink to a QuickTime media file!!!! I've posted this question to MacOSXhints.com and videolan.org with no solutions that I want.
    I think I need to look into Safari and see how it handles events when you click on a hyperlink. All I really want is Safari to lauch a QuickTime player instead of playing the movie in the browser!
    I appreciate all the comments from everyone! Thanks.
    Benjamin

  • Launching An Application From Java applet?

    is it possible to run an executable from a java applet (the executable could be in the local machine)? if it is not possible is there any other alternatives (like scripts)?

    Yes, it is possible but it violates the applet security rules. So you have to sign the applet for this to be allowed.

  • Applet and real player

    I want to create an applet that control a real player.
    Is it possible to embed a real player in an applet?
    If not is it possible to have the control of the real player from the applet by sending to it some javascript function for instance??
    Thank you very much for your help

    If you need to play a real player file then see the Java Media Framework API, it's support many media file types, also you can play any media file from server side.
    go to :
    http://java.sun.com/products/java-media/jmf/index.html

  • Launching application from an applet

    Can someone please tell me what are the ways I can launch an application from an applet? Can you provide some examples, etc.
    Thanks,
    Syed

    If you want to run an application, all you have to do is call it's main() method.
    public class AppApplet extends JApplet {
        public void init() {
            JButton button = new JButton("Start App");
            this.getContentPane().add(button);
            button.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    String[] args = ...;
                    AppClass.main(args);
    public class AppClass {
        public static void main(String[] args) {
            //Do whatever
    }

  • Launching applications from an applet

    How do you launch applications from an applet? For example,launch a notepad exceutable when you click on a button (an awt component)?

    Hi,
    you can launch an application from the applet using the Java RunTime environment.
    Runtime.getRuntime().exec(applicationName);
    But to do this the applet needs permissions.It should be a trusted applet.

  • Launching from an applet

    Does anyone know if its possible to Launch the likes of a notepad file from an applet?.My problem is that I need to assign a help menu to the applet but it will be considerable length. Can anyone help?

    Launching an application from an applet is a security violation. There may be ways around this (signing, JNLP) but there's an easier solution.
    You can use the web browser that launched the applet to show .HTML pages. If your help is in text files, open them with Open Office (free DL if you don't have it) and save as .HTML. (Don't, uh, make that DON'T! use MS Word for this. Test MS Word on a copy of a bit of your text if you don't just take things on faith.)
    Then launch the .HTML in the browser, this way:
    http://java.sun.com/docs/books/tutorial/applet/appletsonly/browser.html

  • Suggested real player media types?

    Hi,
    I wanted to watch a video from BBC that apparently needs Real Player. I'm at the set up page for selecting Media types. I'm wondering if the types I check mean the types that RP is "able" to play, or will they make RP "the default" player? I don't really want to use RP for anything else, I usually use VLC or Quick Time if something opens automatically in it. I'm just wondering if I should only check Real-Time Streaming Protocol and nothing else? Or is there a way to get the BBC stuff to open in VLC instead of downloading RP, which for some reason I'm feeling a bit paranoid about. Any input, warnings, or advice about installing this, not installing it, or options to check/uncheck would be appreciated.
    Thanks

    I would suggest not allowing the Agent to load automatically. It shouldn't download anything Real Player isn't set up to handle (and probably wouldn't hurt anything even if it were), but it's probably just going to get in the way. If at some point you find that you do need/want it to be running automatically, you can launch Real Player, open Real Player Downloader (under the Window menu) and from RP Downloader's preference you can set RP Downloader Agent to launch automatically on login.
    Message was edited by: Dave Sawyer

  • N95 Software update... I've lost Real Player!

    Hi there
    Bought my N95 8gb yesterday on Vodafone and updated like you're supposed to... however Real Player has disappeared from the media menu. If I bluetooth a video file to the phone from my old mobile it'll play it in Real Player but I just can't open Real Player from the media menu.
    Any ideas?
    Thanks

    Hi mattb1401.
    Have you checked the Tools folder on your handset?
    If the Real Player application still isn't there, it might be a good idea for us to look at the phone under our repair process and we can then load the correct software onto the handset for you. Just go to this link:
    https://online.vodafone.co.uk/dispatch/Portal/appm​anager/vodafone/wrp?_nfpb=true&_pageLabel=Page_Hel​...
    Fill in as much information as you can and please include the code FIT135 in the main part of the message. This will make sure that your message reaches this forum team and we can contact you as soon as possible.
    Look forward to your reply.
    PhobosDeimos
    Vodafone UK

  • Launching windowed program from getRuntime().exec( )

    hello,
    I have a tomcat web app that launches media player from getRuntime().exec(mediaplayerExecutable). It works fine when i run tomcat manually (startup.bat) but it only plays audio when I run tomcat as a service. when i look at the error messages for media player process, it complaining about "direct3d video output error: Could not read adapter capabilities"....
    I believe it is execution context issue. any idea? Thanks in advanced.

    Services in Windows must not have a user interface.
    If I remember correctly, there are special loopholes that (native) Windows services go through to get at least some user interaction, but by default you can't interact with the user via the UI at all.
    This seems to go for applications started from services as well.
    But why would you ever want to start a video client from a service? Or a application server at all?

  • Launching Web Start Program from an Applet?

    Hi,
    I need to launch web start program from an applet.
    How can I do that?
    I have tried opening a new web page pointing to the jnlp file from an applet. But, that does not seem to start the web start.
    Thanks in advance
    rg

    I am new to this so may be my questions will appear stupid to a pro, but this is an erro I am getting at compile:
    Can't make static reference to method java.lang.Process exec(java.lang.String) in class java.lang.Runtime.
         Runtime.exec("test.exe");
    What could be the problem?
         ^

  • Can't download real player file from link

    I'm new to the mac world and I am trying to download a real player file (.rm) from a link that is on one of my course websites (I've tried Safari and Firefox). When I "right click" and select "Download File" it just downloads the actual html link, not the file. I'm able to download the file on my PC with no problems. Am I just missing something with the mac?

    Are you running RealPlayer 11? That includes a downloader that tells you when a file is actually available for download.

  • How do I stop Quicktime player from auto-launching after I've exported a movie from iMovie 10?

    How do I stop Quicktime player from auto-launching after I've exported a movie from iMovie 10?
    It's really annoying for Quicktime player to auto-lauch!

    It may not be that simple David. They're using a "server" and some of the Apache software may want to launch QuickTime at boot.
    This isn't really a QuickTime question. It's a sever question best answered in those Discussion pages.

  • How do I convert from Real player or windows media player?

    I have some songs and things on my windows media player and real player, but I don't know how to convert them to itunes. How do I do this??

    dont just get lime wire easy. just go to www.limewire.com and click i think amirca and go to download dont clik on pro if u want the software free ur on ur own from there i forgot the rest wene u download songs u search it up double clik on the song it will say somthing clik download anyway wiat for it to down load then double clik and hold the song and drage it to itunes.

  • I downloaded and installed firefox 5, but uninstalled it because it is not conpatible with Real Player video downloader. I cannot download videos from You tube or other sites with Firefox 5. How can I resolve this problem? ooader

    I use Real Player to play music and videos. I also download videos from You Tube and from other sites thru Real Player which is compatible with Firefox 4.0.1, but not with Firefox 5. Please tell me why?

    Firefox 4.0.1 has been an unsafe browser since the release of Firefox 5. So please don't use it.
    Real hasn't made Real Player Browser Plugin compatible with Firefox 5.
    For alternatives, see:
    https://addons.mozilla.org/en-US/firefox/search/?sort=weeklydownloads&cat=all&q=video+download&y=13&x=11

Maybe you are looking for