?Inserting video/media into applet
807569May 18 2006 — edited May 18 2006I've just gotten into applets. I found and finally today figured out how to insert audioClips into the applet, but i cannot find a way to insert video (wma, mov, ect..) files into the applet. I would greatly apreciate it if someone could NOT give me the code to do it, but tell me what classes to look in so that i may try and figure it out myself.
I am using Java 1.4.2
I used the following code for my sound/image to appear, but have not been able to find anything concerning video:
import java.awt.*;
import java.applet.*;
public class Applets extends Applet
{
public void init()
{
}
public void paint(Graphics g)
{
sound();
picture(g);
video();
}
public void sound()
{
AudioClip x = super.getAudioClip(getCodeBase(),"Wonders.wav");
x.play();
}
public void picture(Graphics g)
{
Image x = super.getImage(getCodeBase(),"htgnlogo.jpg");
g.drawImage(x, 0, 0, this);
}
public void video()
{
//help?
}
}