Embedding video in Java Application

I'm a total newbie, trying to decide if Java is the way to go for our application.
We want to be able to create an interactive application with buttons, drag & drop, data input fields, hot spots, etc
AND also show video... windows format, apple format, flash format.
We want our application to be deployable either as...
1 - a standalone app... running on a system not on a network or the internet
2 - a web app
We want the video player to be embedded in the application and not launch a player in a seperate window... thus we want to maintain as much control within the confines of our application as possible.
MY QUESTIONS:
1 - Will the Java Media Framework allow us to embed movies in our application as described?
2 - Is it fairly easy to code such in our Java application?
3 - Any code snippets around?
4 - Re: Standalone/CD distribution version: Can the JMF be installed along with the application so the client doesn't have to "go out and install more stuff" ??
5 - Re: Web - must the user download and install more stuff... other than the Java Virtual Machine to have the JMF work on their system?
6 - Is the JMF multi-platform... Windows, Apple, Unix/Linux, etc like the JVM ?
thanks for any help on this. Will

Yes all of what you require is doable in Java
Try
http://java.sun.com/products/java-media/jmf/2.1.1/solutions/index.html
Check some of these samples
Also for a web version check
http://java.sun.com/dev/evangcentral/totallytech/jmf2.html
(Haven't studied this myself - but should give you an idea or two)
Platform-wise - check here
http://java.sun.com/products/java-media/jmf/2.1.1/download.html
In terms of CD distribution - you should be able to package most stuff into a Jar file
Not completely sure as there are 'Windows Performance pack' downloads which I think toake advantage of native DLLs
Have a read around the JMF Installation pages - should answer most of your questions

Similar Messages

  • Can I use Streaming Video in Java Application?

    Will i be able to use Streaming Video in Java Application, if yes can anyhow out there pls teach me how to do it... thanks...

    read up on the Java Medai Framework http://java.sun.com/products/java-media/jmf/index.html

  • How to play videos in java application

    Hi... every one
    I want to write a java application to play videos ....Please guide me how to go about it..
    Thanks in advance...
    Rgrds
    Ravi. N

    [http://www.cs.odu.edu/~cs778/spring04/lectures/jmfsolutions/examplesindex.html]

  • Embedded flash player java application

    Hello
    Is it possible to embed an existing flash movie player into a
    non-top-level Swing JComponent in Java (because this is the
    restriction I have from sun's wonderland, where I want to implement
    this player)?
    Are there any tutorials or code examples for doing that?
    Thanks for your help.
    Kind regards,
    Peter

    Hello
    Does nobody has experience in this? Is it not possible?
    Peter

  • PDF Forms embedded in Webdynpro Java - Can eCATT recognize???

    Hi All,
               Will eCATT be able to identify the PDF forms embedded in Webdynpro Java applications.....
    Thanks in Advance
    Puru

    I think it will not. I am almost sure it will not. Any new complex screens are a challenge to eCATT. Flash, Flex and sometimes even trees.
    Says,
    Justin

  • Embedded Tomcat Java Application

    Hi
    I am using an Embedded Tomcat Java Application.
    I am getting the following Exception when i run the program.
    java.lang.NullPointerException
         at org.apache.catalina.startup.DigesterFactory.register(DigesterFactory.java:174)
         at org.apache.catalina.startup.DigesterFactory.registerLocalSchema(DigesterFactory.java:130)
         at org.apache.catalina.startup.DigesterFactory.newDigester(DigesterFactory.java:92)
         at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(ContextConfig.java:435)
         at org.apache.catalina.startup.ContextConfig.createWebDigester(ContextConfig.java:422)
         at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:499)
         at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:623)
         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
         at org.apache.catalina.startup.Embedded.start(Embedded.java:846)
         at EmbeddedTomcat.startTomcat(EmbeddedTomcat.java:77)
         at EmbeddedTomcat.main(EmbeddedTomcat.java:135)
    could anyone tell me how to solve this problem
    Thanx & Regards
    Faisal

    Hi
    R u able to resolve the problems.... If yes please provide me the info... I'm also facing the same problem...
    REgards
    siddhu

  • Reading a video input using a java application

    I want to read a live video input inside a java application and extract frames from that video,..But I don't have knowledge of doing this.
    If any of you know how to implement this would you please send me some sample applications codes to one of the following email addresses.
    [email protected]
    [email protected]
    [email protected]
    [email protected]

    I am not really sure how to solve this problem, you might be interested in checking this example on Accesing Individual Decoded Video Frames - http://java.sun.com/products/java-media/jmf/2.1.1/solutions/FrameAccess.html
    regards

  • Embedding a java application (servlets) in a portlet

    Hi all,
    We have an existing java application that we want to run as a portlet in our portal internet site. The application is a simple search form, which submits parameters (search criteria) and returns results, from there can click on a few other things and open some documents etc. We want all this to happen in the same portlet window, rather than opening out to a new window. Can someone please advise if this can be done? We are running release 1 of 9IAS (and we can't upgrade to rel 2 yet) with PDK March. We would preferably like to do this without touching/reprogramming the java code. I have seen a couple of conficting posts in this forum about this - some say can be done, some say can't be done. Please advise:
    1. Is there some kind of wrapper that can be applied to keep this app inside the portlet?
    2. What other alternatives are there to getting this java app inside?
    3. Are there any step by step guides to doing this?
    Any help would be much appreciated. Thanks heaps, Sarah

    I have tried the URL services, it displays the page fine within the portlet. Just one problem though. The links that are embedded in the HTML will open new windows when clicked. We want them to stay within the portlet. Does something need to be changed in my xml file? I have
    <renderer class="oracle.portal.provider.v1.RenderManager">^M
    <showPage class="oracle.portal.provider.v1.http.URLRenderer">^M
    <contentType>text/html</contentType>^M
    <pageExpires>60</pageExpires>^M
    <pageUrl>http://www.oracle.com</pageUrl>^M
    <filter class="oracle.portal.provider.v1.http.HtmlFilter">^M
    <headerTrimTag>&lt;center</headerTrimTag>^M
    <footerTrimTag>/center></footerTrimTag>^M
    <convertTarget>true</convertTarget>^M
    </filter>^M
    </showPage>^M
    </renderer>^M
    perhaps I need a different renderer? I saw another post had something in the xml :
    <inlineRendering>true</inlineRendering>
    that looks promising. Will that deliver the results I'm looking for? Where does it get added?
    Thanks for any replies. Sarah

  • Embedding Internet Explorer GUI in Java Application

    let me preface this post by saying that i have seen the javatip66 reference on javaworld.com and that has considerable merit. i may end up using that methodology.
    what i would like to be able to do, of course, is to embed JUST the "HTML pane" of IE/Netscape (excluding ToolBar and Address Bar, etc) inside a Java application. i am not an MFC developer, so i'm not sure where to begin looking or if JNI will allow me to hack that dll.--or even if that canvas/panel/whatever can be invoked independently to render a document.
    i have several complete, fully working GUI applications that use the javax.swing.JEditor interfaces to display various mime formatted documents (content types such as "text/html" and "text/plain"). unfortunately, the Java implementations of these Editors don't sync with what everyone is used to in IE/Netscape...to the degree that content is intractably mis-displayed (is that a word?)
    worst case scenario, i will invoke a new browser to display content, but i would prefer to frame those browsers in my applications. thoughts?
    note: one of the primary problems is the the JFC classes support only up to HTML 3.2 which is as good as archaic these days.

    i think you just nailed it. i do imagine that this is the correct forum for this, but i could cross-post to the Swing forum. certainly it is going to require switching on the version of Windows. perhaps we can find a general/create a discussion on integrating ActiveX controls in Java. [man, this is just the most bass ackwards thing ever. hate doing this kind of thing, but it's the "state of the world."] (at least until Sun/3rd party gets a reasonable HTML document renderer.)

  • Embedding Google earth in Java Application

    I have developed a java application with help of wings i wanna embed google earth can sum1 guide from were to proceed plz

    Hitish wrote:
    I have developed a java application with help of wings i wanna embed google earth can sum1 guide from were to proceed plzPlease don't use silly SMS speak.
    Embed Google Earth? Does it have any exposed APIs. If not then no.

  • Vst embedded in java application?

    hi
    I am writing here because I was redirected.
    I would like to know if it is possibile and where to find information and resources to do this:
    calling a vst virtual instrument from a java application displaying it in a frame and controlling it by calls.
    thanks

    vst is for "virtual instrument", a technology from steinberg.
    this kind of programs are dlls and are used in sequencer environments like cubase.
    a vst is a dll file that cubase or this sort of software can load and communicate with by function calls. it has a gui too to tweak its parameters.
    so, I ask someone who knows how all this work to please help with some information.
    thanks

  • Embedding JBoss Naming In My Own Java Application

    Hi all,
    Thanks in advance for taking the time and effort to answer my question.
    I'm trying to embed the JBoss naming server in my own Java application. I'm using the code from version 4.2.1.GA. I've thoroughly read the Java code, and found it a little confusing. Among other classes, I've read the code from org.jboss.naming.NamingService and org.jnp.server.Main. I've been trying for days with no luck. Here's a class from my simplest attempt:
    // Server.java
    package miaJs.server;
    import org.apache.log4j.Logger;
    import org.jboss.naming.NamingService;
    import org.jnp.server.Main;
    import org.quartz.Scheduler;
    import org.quartz.SchedulerException;
    import org.quartz.impl.StdSchedulerFactory;
    public class Server
    * Logger for this class.
    private static final Logger logger =
    Logger.getLogger("miaJs.server.Server");
    * Start the server.
    public void start()
    logger.debug("Server ClassLoader: " +
    this.getClass().getClassLoader().getClass().getName());
    try
    logger.debug("Starting JBoss naming server...");
    Main namingServer = new Main();
    namingServer.start();
    catch (Throwable t)
    logger.error("Error starting Java Job Scheduler: " +
    t.getMessage(),
    t);
    System.exit(1);
    try
    // Register a shutdown hook
    ServerShutdownHook shutdownHook = new ServerShutdownHook();
    Runtime.getRuntime().addShutdownHook(shutdownHook);
    catch (Throwable t)
    logger.error("Error adding server shutdown hook: " +
    t.getMessage(),
    t);
    System.exit(1);
    The above example gives me the following NullPointerException:
    lljava.lang.NullPointerException
    jvm 1 | at org.jnp.server.Main.getNamingInstance(Main.java:301)
    wrapper | Pause reading child output to share cycles.
    wrapperp | socket read failed. (An established connection was aborted by the software in your host machine. (0x2745
    jvm 1 | at org.jnp.server.Main.initJnpInvoker(Main.java:354)
    jvm 1 | at org.jnp.server.Main.start(Main.java:316)
    jvm 1 | at miaJs.server.Server.start(Server.java:45)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
    wrapper | Pause reading child output to share cycles.
    wrapperp | server listening on port 32000.
    jvm 1 | at miaJs.server.Bootstrap.start(Bootstrap.java:135)
    jvm 1 | at miaJs.server.Bootstrap.main(Bootstrap.java:76)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
    jvm 1 | at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:238)
    jvm 1 | at java.lang.Thread.run(Thread.java:595)
    I've tried the JBoss forum but it didn't help.
    What I really want is a simple in-memory JNDI server that doesn't have external dependencies. I really hope the JBoss naming service can achieve this.
    Thanks again.

    I'm sorry, we don't generally have that kind of information in this forum. I'd suggest asking the developer of the add-on. If you're using [https://addons.mozilla.org/en-us/firefox/addon/selenium-expert-selenium-ide/ Selenium Expert (Selenium IDE)], the support link listed is http://blog.reallysimplethoughts.com/

  • Build a java application

    Halo,
    I am totally new to java..Iam basically an electronics student..havnt been to the computer science stream much..I am in need of some help in java..in fact the whole code itself..our project requires building a java application that can show a streaming video ( we have an embedded system(an arm board) that will have a vlc or vls server that will stream video from the webcam connected to the embedded system)..Can anyone please help me with building the application??...I heard that pasting a url to our arm board will suffice, but we have to build the application showing the video..
    Thank You in advance..

    you will have trouble getting help for the following reasons:
    1. people here get many requests to "do my hw" and people hate it, so they wont help you, just flame you
    2. your requirements suck. i dont know what an arm board is, infact i have no idea what you are trying to do
    maybe your request is really simple, and someone might help you. Figure out what your inputs and outputs are, in terms of java, and ask again.

  • Asc 2.0 crash with large embedded video file

    Hello,
    asc 2.0 crash with large embedded video files
    package{ 
      import flash.display.Sprite;
      public class Main extends Sprite{
        [Embed(source="video/myVideo.mp4", mimeType="application/octet-stream")]
        public var video:Class;
        public function Main(){
    on Windows with a small video, it compile fine, with a large video (525 Mo) the compiler crash
    internal error : java.lang.NullPointerException
            at com.adobe.flash.swf.SWF.addFrame(SWF.java:91)
            at com.adobe.flash.compiler.internal.targets.SWFTarget$FramesInformation
    .createFrames(SWFTarget.java:876)
            at com.adobe.flash.compiler.internal.targets.AppSWFTarget$AppFramesInfor
    mation.createFrames(AppSWFTarget.java:386)
            at com.adobe.flash.compiler.internal.targets.SWFTarget.build(SWFTarget.j
    ava:243)
            at com.adobe.flash.compiler.clients.MXMLC.buildSWFModel(MXMLC.java:674)
            at com.adobe.flash.compiler.clients.MXMLC.buildArtifact(MXMLC.java:660)
            at com.adobe.flash.compiler.clients.MXMLC.compile(MXMLC.java:541)
            at com.adobe.flash.compiler.clients.MXMLC.mainNoExit(MXMLC.java:230)
            at com.adobe.flash.compiler.clients.MXMLC.mainNoExit(MXMLC.java:184)
            at com.adobe.flash.compiler.clients.MXMLC.staticMainNoExit(MXMLC.java:15
    6)
            at com.adobe.flash.compiler.clients.MXMLC.main(MXMLC.java:143)
    Thanks

    java.lang.NullPointerException
    i met this error every time if i compile a "BIG " project.(with 1G+  image resources).   And also ,if you  import 500+ images into Flash CS ...you  know ,its prefix is  "Adobe".
    i guess , it's  because somebody not like "BIG " thing.
    So..on  32bit windows  platform ..i  upgrade my JVM to  1.7 ,and..modified  -XSS value . it will help us ..but not 100% resolved.
    Finally ,i upgrade to  64bit platform ..this problem seems  gone.
    I think ,it's  because of the bad RAM Manager  of  JVM. on 32bit windows machine .it's only can manager 1024M ram .(such a stupid VM).   And  on 64bit platform ..JVM seems  to be d normal.

  • Help please! Java application and web application...

    Hi,
    I have a problem with inserting a java application (Main.java) in a web application(index.jsp).
    I found a source demo of a drag and drop application on the Internet, but now I want to
    have the drag and drop application work in a Jpanel/JFrame in a webapplication.
    The drag and drop application code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class Main {
        public static void main(final String[] args) {
            final ButtonGroup grp = new ButtonGroup();
            final JPanel palette = new JPanel(new FlowLayout(FlowLayout.LEFT));
            palette.setBorder(BorderFactory.createTitledBorder("Palette"));
            final MainPanel mainPanel = new MainPanel();
            mainPanel.setPalette(palette);
            for(int j=0; j<4; j++){
                final JToggleButton btn = new JToggleButton("Panel "+(j+1));
                palette.add(btn);
                grp.add(btn);
                btn.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        mainPanel.setAdding(btn.getText());
            final JFrame f = new JFrame("Drag and drop panels");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(palette, BorderLayout.WEST);
            f.getContentPane().add(mainPanel, BorderLayout.CENTER);
            f.setSize(800, 600);
            f.setVisible(true);
    class MainPanel extends JPanel implements MouseListener, MouseMotionListener {
        private JPanel palette;
        private String adding="";
        private SubPanel hitPanel;
        private int deltaX, deltaY, oldX, oldY;
        private final int TOL = 4;  //tolerance
        public MainPanel() {
            setLayout(null);
            addMouseListener(this);
            addMouseMotionListener(this);
        public void mousePressed(final MouseEvent e) {
            if( adding != "" ){
                setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
                SubPanel sub = new SubPanel(adding);
                add(sub);
                sub.setSize(sub.getPreferredSize());
                sub.setLocation((int)e.getX(),(int)e.getY());
                revalidate();
                adding = "";
                return;
            Component c = getComponentAt(e.getPoint());
            if (c instanceof SubPanel) {
                hitPanel = (SubPanel) c;
                oldX = hitPanel.getX();
                oldY = hitPanel.getY();
                deltaX = e.getX() - oldX;
                deltaY = e.getY() - oldY;
                if( oldX < e.getX()-TOL ) oldX += hitPanel.getWidth();
                if( oldY < e.getY()-TOL ) oldY += hitPanel.getHeight();
        public void mouseDragged(final MouseEvent e) {
            if (hitPanel != null) {
                int xH = hitPanel.getX();
                int yH = hitPanel.getY();
                int xDiff = e.getX()-oldX;
                int yDiff = e.getY()-oldY;
                int cursorType = hitPanel.getCursor().getType();
                if( cursorType == Cursor.W_RESIZE_CURSOR){           //West resizing
                    hitPanel.setBounds( e.getX(), yH, hitPanel.getWidth() - xDiff, hitPanel.getHeight() );
                }else if( cursorType == Cursor.N_RESIZE_CURSOR){     //North resizing
                    hitPanel.setBounds( xH, e.getY(), hitPanel.getWidth(), hitPanel.getHeight() - yDiff );
                }else if( cursorType == Cursor.S_RESIZE_CURSOR){     //South resizing
                    hitPanel.setSize( hitPanel.getWidth(), hitPanel.getHeight() + yDiff );
                }else if( cursorType == Cursor.E_RESIZE_CURSOR){     //East resizing
                    hitPanel.setSize( hitPanel.getWidth() + xDiff, hitPanel.getHeight() );
                }else if( cursorType == Cursor.NW_RESIZE_CURSOR){     //NorthWest resizing
                    hitPanel.setBounds( e.getX(), e.getY(), hitPanel.getWidth() - xDiff, hitPanel.getHeight() - yDiff );
                }else if( cursorType == Cursor.NE_RESIZE_CURSOR){     //NorthEast resizing
                    hitPanel.setBounds( xH, e.getY(), hitPanel.getWidth() + xDiff, hitPanel.getHeight() - yDiff );
                }else if( cursorType == Cursor.SW_RESIZE_CURSOR){     //SouthWest resizing
                    hitPanel.setBounds( e.getX(), yH, hitPanel.getWidth() - xDiff, hitPanel.getHeight() + yDiff );
                }else if( cursorType == Cursor.SE_RESIZE_CURSOR){     //SouthEast resizing
                    hitPanel.setBounds( xH, yH, hitPanel.getWidth() + xDiff, hitPanel.getHeight() + yDiff );
                }else{      //moving subpanel
                    hitPanel.setLocation( e.getX()-deltaX, e.getY()-deltaY );
                oldX = e.getX();
                oldY = e.getY();
        public void mouseMoved(final MouseEvent e) {
            Component c = getComponentAt(e.getPoint());
            if (c instanceof SubPanel) {
                int x  = e.getX();
                int y  = e.getY();
                int xC = c.getX();
                int yC = c.getY();
                int w  = c.getWidth();
                int h  = c.getHeight();
                if(       y >= yC-TOL   && y <= yC+TOL && x >= xC-TOL   && x <= xC+TOL  ){
                    c.setCursor(new Cursor(Cursor.NW_RESIZE_CURSOR));
                }else if( y >= yC-TOL   && y <= yC+TOL && x >= xC-TOL+w && x <= xC+TOL+w ){
                    c.setCursor(new Cursor(Cursor.NE_RESIZE_CURSOR));
                }else if( y >= yC-TOL+h && y <= yC+TOL+h && x >= xC-TOL   && x <= xC+TOL ){
                    c.setCursor(new Cursor(Cursor.SW_RESIZE_CURSOR));
                }else if( y >= yC-TOL+h && y <= yC+TOL+h && x >= xC-TOL+w && x <= xC+TOL+w ){
                    c.setCursor(new Cursor(Cursor.SE_RESIZE_CURSOR));
                }else if( x >= xC-TOL   && x <= xC+TOL ){
                    c.setCursor(new Cursor(Cursor.W_RESIZE_CURSOR));
                }else if( y >= yC-TOL   && y <= yC+TOL ){
                    c.setCursor(new Cursor(Cursor.N_RESIZE_CURSOR));
                }else if( x >= xC-TOL+w && x <= xC+TOL+w ){
                    c.setCursor(new Cursor(Cursor.E_RESIZE_CURSOR));
                }else if( y >= yC-TOL+h && y <= yC+TOL+h ){
                    c.setCursor(new Cursor(Cursor.S_RESIZE_CURSOR));
                }else{
                    c.setCursor(new Cursor(Cursor.MOVE_CURSOR));
        public void mouseReleased(final MouseEvent e) { hitPanel = null; }
        public void mouseClicked(final MouseEvent e) {}
        public void mouseEntered(final MouseEvent e) {}
        public void mouseExited(final MouseEvent e) {}
        public void setAdding(final String string) {
            adding = string;
            setCursor(new Cursor(Cursor.HAND_CURSOR));
        public void setPalette(final JPanel panel) { palette = panel; }
    class SubPanel extends JPanel {
        public SubPanel(final String name) {
            setPreferredSize(new Dimension(100, 100));
            setBorder(new TitledBorder(new LineBorder(Color.BLACK), name));
    }This application works with JFrame, but I want to display the JFrame in a webapplication (JSP Page).
    I'm using Netbeans 6.0 (GlassFish) to create webapplication using Visual Web JavaServer Faces.
    So in summary:
    How can i display the drag and drop application into a JFrame (better in a JPanel) in a webapplication (index.jsp)??
    Hope you can help...
    Thanks in advance...
    Greetings,
    Rajsh

    So have an applet that opens a JFrame... JSP or not has nothing to do with it, since it's nothing but HTML the client gets.
    You can't have a JFrame embedded in an HTML page. And if you could have an applet but don't know how to get that copied code to fit inside (I mean, content pane is content pane), you might want to consider learning how to do that.

Maybe you are looking for