Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

?Inserting video/media into applet

807569May 18 2006 — edited May 18 2006
I'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?
}

}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 15 2006
Added on May 18 2006
0 comments
352 views