Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  need help to learn with JMF  (Read 517 times)
0 Members and 2 Guests are viewing this topic.
Offline Maverick

JGO n00b
*

Posts: 12



« on: 2006-02-05 01:55:38 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
                if(moviePlayer == null){
                        try {
                            System.out.println("s");
                            moviePlayer = Manager.createPlayer(this.getClass().getResource("videos/intro.avi"));
                            moviePlayer.start();


                        } catch (IOException e) {
                            e.printStackTrace();
                        } catch (NoPlayerException e) {
                            e.printStackTrace();
                        }
             }


I have that code, but when I run my program I see a white blank screen.
I'm using a JPanel and a JFrame with a resolution of 800x600.
I cheked to see that the video was working with the JMStudio.
Offline Maverick

JGO n00b
*

Posts: 12



« Reply #1 on: 2006-02-06 00:37:50 »

I still need help  Smiley
Offline swpalmer

JGO Kernel
*****

Posts: 3438
Medals: 4


Where's the Kaboom?


« Reply #2 on: 2006-02-06 21:50:37 »

Could you provide more information?
Does it print the "s" ?
What kind of class is "this" ?
I assume there are no exceptions reported?

Games published by our own members! Go get 'em!
Offline Jeff

JGO Kernel
*****

Posts: 3535


Got any cats?


« Reply #3 on: 2006-02-07 15:48:22 »

You might also try the Java Desktop forums at java.net for more info and exampels. Im mreptty sure JMF is supported by the sun Java Desktop group.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Maverick

JGO n00b
*

Posts: 12



« Reply #4 on: 2006-02-07 22:22:09 »

I've fixed the problem.
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.084 seconds with 19 queries.