Results 1 to 2 of 2
- 12-08-2011, 12:37 AM #1
Member
- Join Date
- Dec 2011
- Posts
- 2
- Rep Power
- 0
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
- 12-08-2011, 12:54 AM #2
Member
- Join Date
- Dec 2011
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
how to play a video from a file using jmf in a java
By 200808147 in forum New To JavaReplies: 0Last Post: 07-10-2011, 12:20 PM -
Class to play variety of video formats
By Swankee in forum New To JavaReplies: 0Last Post: 10-12-2009, 08:38 PM -
How to play video files in Java
By Hasan in forum Advanced JavaReplies: 11Last Post: 04-26-2009, 11:57 PM -
code to play Video from server
By arvind in forum CLDC and MIDPReplies: 0Last Post: 04-15-2009, 09:19 AM -
Play sound and Video in a Mobile Phone
By luisarca in forum Sun Java Wireless ToolkitReplies: 2Last Post: 05-23-2007, 10:52 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks