Results 1 to 2 of 2
  1. #1
    esl21 is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Default Using JMF to play a video inside java code

    Hey guys,

    How can you use JMF to play a video from java code? I'm writing a pretty simple program at the moment for a first-year java course. Basically, what I want the program to do is ask the user a bunch of math questions, and if they have trouble, to type in help. Once they type in help, a video tutorial that I created myself will play. This is just for basic addition and subtraction lol so I can't help you if you need help with anything above calculus I.

    Here's some code for context:
    if(correctAnswer <= 6){
    System.out.println("Okay " + name + ", you got " + correctAnswer + " right out of 10. " + "Those were hard questions! " + name + ", you should ask your teacher for some extra lessons. And you can always ask me for help too. If you want to learn in a little different way, just say help");
    studentHelp = keyboard.nextLine();
    }

    At this point, the video will start playing. If the user did not ask for help, the video would not play.


    We haven't been taught this, but I figure it's a good way to get an A. Any video tutorials, webpages, or comments would be very helpful.
    Thanks,
    esl21

  2. #2
    esl21 is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Default Re: Using JMF to play a video inside java code

    Never mind guys, I don't think it was a very good question:

    It would only work on the computer the file was stored on.

Similar Threads

  1. how to play a video from a file using jmf in a java
    By 200808147 in forum New To Java
    Replies: 0
    Last Post: 07-10-2011, 01:20 PM
  2. Class to play variety of video formats
    By Swankee in forum New To Java
    Replies: 0
    Last Post: 10-12-2009, 09:38 PM
  3. How to play video files in Java
    By Hasan in forum Advanced Java
    Replies: 11
    Last Post: 04-27-2009, 12:57 AM
  4. code to play Video from server
    By arvind in forum CLDC and MIDP
    Replies: 0
    Last Post: 04-15-2009, 10:19 AM
  5. Play sound and Video in a Mobile Phone
    By luisarca in forum Sun Java Wireless Toolkit
    Replies: 2
    Last Post: 05-23-2007, 11:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •