Re: Video displaying on a java application

hola

Interdit wrote:
But why don't I see more than a thread running on the same cpu, it's like only 8 threads can be ran at the same time, it's like the cores were not used ?What is the real question?
The OS controls thread scheduling for threads that need to do actual work.
If your threads are not doing actual work then they won't be doing anything. And you control the work with your code, neither the VM nor the OS controls that.

Similar Messages

  • 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

  • Display webPage in java application?

    How do you display HTML format(like contents displayed in a browser) in an Java application?Which swing component do you use and can anyone tell me how to go about with it?? Thanks

    This will answer your question:
    http://java.sun.com/docs/books/tutorial/uiswing/components/label.html

  • Video/graphic mode in java application

    hello all,
    I have a question. How can I run my application in Video/Graphics mode.
    Egs.... just like screen savers run. I mean no frame or window, not resizable, not restorable, not canelable..nothing..just like in C/C++ where whole of the screen is black and ur application is running....like games etc.
    pls...answer it if anybody knows
    Thanks in advace.
    Sanjeev Dhiman

    hi , giving u my last single dollar..
    Although I found ans as soon as I posted but thanks for ur effort.
    Cheers !
    Sanjeev Dhiman at [email protected]

  • SAP HANA Cloud Portal : Make Widget For Java Application and Display in HANA Portal

    Hi Experts,
    I have created one Java Application using eclipse luno.
    I have successfully deploy on my hanatrial version and able to see the Started Application under the Java Application.
    Can anyone have idea how to use this application in HANA portal and display/ run  this Java Application in SAP HANA Cloud Portal Website.
    I want to know is it possible or not ? and yes then how its possible ?
    What are the steps require to make Widget for this java apps and publish on portal.
    Many Thanks,
    Mithun 

    Hi Mithun,
    yes it's possible and relatively easy - follow Chapter 7 of the guide -
    ESPM WebShop Extension
    Regards
      Kenny

  • Displaying a Message from PL/SQL block to Java Application

    Hi
    How can One display or populate a message in Java Application, that is generated from a PL/SQL block?

    Well, the easiest option would be to have a "message" parameter that gets passed back from the PL/SQL block to the calling Java application.
    I'm guessing, though, that you wouldn't be asking the question if the easy solution was a viable option... If that's the case, you're going to have to describe the problem in a bit more detail...
    Justin

  • 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

  • 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]

  • After having to reinstall my drive with applications I get a message with Premiere Pro CS5 that it can't find any "capable video play modules" and asks me to "update" my "video display modules". How do I do this? I am using a mid-2010 iMac 27" with 10.7.3

    After having to re-install my start-up drive recently I am getting a message with Adobe Premiere Pro CS5 that it can't find any "capable video play modules" and asks me to "update" my "video display modules". I am using a mid-2010 iMac 27" with OSX 10.7.3. How do I do this?

    Premiere is an Adobe application and is supported in their forums.
    Good luck.
    x

  • 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

  • WD Java application is displaying ABAP MESSAGE NUMBER, Not the text

    HI
    We have WD Java applications running on Adpeted RFC model, Now the Success/Error Messages coming from backend are not displayed in the text, Message number is shown rather. In ABAP side, the language pool is maintained only for the danish language and the same danish language is set as portal language for the end  user.
    Does the Meta Jco Default language play any role here? I can see it is set as Danish by default but in one of the workign system it is English?
    Can you explain where the problem could be?
    regards
    Pranav

    I completely agree, we checked the message pool and found that the mesasage text is maintained for specific code in specific language, but on portal is not displaying the text, but it is displaying the code. it seems the language information of portal user is not being passed to backend.
    regards
    Pranav

  • Displaying Picture in a Java APPLICATION please help!!

    I have been trying to write a method that Displays a .jpg file when called. However I have not gotten far, every book I have tell you how to display pictures in an applet but not an application. I did find some code that is supposed to be for an application, but It does not compile right. Any help would be apprecidated!
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class PictureIt{
    public void makeImage() {
    //***Image Output Stream
    String imgFile
    = "d:\\temp\\TestImage.jpeg";
    out = new FileOutputStream(imgFile);
    BufferedImage image = null;
    image = (BufferedImage)createImage
    (panelJpeg.size.width, panelJpeg.size.height);
    Graphics g = image.getGraphics();
    panelJpeg.paintAll(g);
    }

    Displaying Picture in a Java APPLICATION please help!!
    Hope this helps.There is going to be two classes compile seperatly first class is what does the drawing
    here it is
    import javax.swing.*;
    import java.awt.*;
    public class draww extends JPanel {
    Image ball;
    int width1 = 100;
    int height1 = 100;
    public draww() {
    super();
    Toolkit kit = Toolkit.getDefaultToolkit();
    ball = kit.getImage("pic1.gif");
    public void paintComponent(Graphics comp) {
    Graphics2D comp2D = (Graphics2D) comp;
    comp2D.drawImage(ball, 20, 20, width1, height1, this);
    sound class is the container JFrame here it is
    import javax.swing.*;
    import java.awt.*;
    public class drawing extends JFrame {
    public drawing() {
    super("draw");
    setSize(400,400);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container pane = getContentPane();
    draww d = new draww();
    pane.add(d);
    setContentPane(pane);
    setVisible(true);
    public static void main(String[] args) {
    drawing drawing1 = new drawing();
    PS Hope this helps and see you around

  • Displaying HTML in a java application

    Is there any other way to display HTML in a java application besides JEditorPane and JLabel (which are fairly restrictive). Its tableing I'm really after.

    Eureka!
    http://home.earthlink.net/~hheister/

  • Display an Image in a Java application !

    Hi all !
    Really i want to display an image in a java application , i know how to do it in applets but this method does not work in applications so please help me to do that in an application ,thanks .

    it is the same way as in applets.
    1. Open a frame with awt
    2. Define an Image (like: Image a=null;)
    3. Load this Image with the Toolkit....(just look which method to use)
    4. draw this image to screen with g.drawImage(...)
    Note the class drawing the image must implement ImageObserver.
    regards

  • Displaying UWL tasks in Webdynpro java application

    Dear Experts,
    I am developing a WebDynpro Java application to access uwl tasks,
    Have added the following code in try catch block with external jars
    1. prtapi.jar
    2. bc.uwl.service.api.jar
    IUWLService uwlService = null;
    IWDClientUser user1 = WDClientUser.getLoggedInClientUser();
    IUser epUser =user1.getSAPUser();
    IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
    if( runtimeResources == null)
       wdComponentAPI.getMessageManager().reportSuccess("Portal Runtime NULL");
    else
       uwlService = (IUWLService)runtimeResources.getService( IUWLService.ALIAS_KEY);
    UWLContext uwlContext = new UWLContext();
    IUser user = user1.getSAPUser();
    uwlContext.setUser(user);
    uwlService.beginSession(uwlContext, 20);
    IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);
    QueryResult result = itemManager.getItems(uwlContext,null,null);
    int size = result.getTotalNumberOfItems();
    ItemCollection collection = result.getItems();
    java.util.List list = collection.list();
    Item item = null;
    Date date = null;
    String subject = null;
    for(int i = 0; i < 5; i++)
      if(!(i > (size -1)))
          item = collection.get(i);     
          date = item.getDueDate();     
          subject = item.getSubject();
         wdComponentAPI.getMessageManager().reportSuccess("item "+item);
         wdComponentAPI.getMessageManager().reportSuccess("date "+date);
         wdComponentAPI.getMessageManager().reportSuccess("subject "+subject);
      }//if
    }//for
    I have created this webdypro application with Authentication mode set as True.
    After deploying this application, i'm getting this error...
    "java.lang.NoClassDefFoundError: com/sap/netweaver/bc/uwl/IUWLService "
    can anybody tell me what is the problem???

    Hi
    see the following link it will be helpful for u.
    [UWL Tasks|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#12]
    Regards
    Hazrath
    Edited by: Hazrath on Mar 25, 2008 8:01 AM

Maybe you are looking for