954,206 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

A few questions regarding video, images and audio

So here's my list of questions

1. Is there a class where it takes an audio file as a constructor and has methods that allow me pause, play and continue from any selected part of the song?

2. How do you get video to work on an applet and have the functionality from question one?

3. How do I fade an image to a particular color?

4. What would you say is the max refresh rate for a 1680 x 1050 applet with double buffering and without any choppiness? (considering that I'm using an up to date computer).

4b. If simply took a small image and stretched it to 1680 x 1050, would it change the fame rate?

Mr.UNOwen
Junior Poster
133 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

>1. Is there a class where it takes an audio file as a constructor and has methods that allow me pause, play and continue from any selected part of the song?
According to API ackage javax.sound.sampled provides interfaces and classes for capture, processing, and playback of sampled audio data. However I never used it...

>2. How do you get video to work on an applet and have the functionality from question one?
You will have to search on the matter, but maybe you should read this first

>3. How do I fade an image to a particular color?
Original Java image functionality is limited. However, Sun Systems seen this problem and support many community projects which try to solve the problem. To address the issue there is a Java Advaced Imaging (JAI) and Java Advanced Imaging Image I/O Tools API Core (jai-imageio-core)

>4. What would you say is the max refresh rate for a 1680 x 1050 applet with double buffering and without any choppiness? (considering that I'm using an up to date computer).
That image size is to big, it will take hell of time for processing and downloading for users. Just look what is the size of videos posted on youtube, google or yahoo videos

>4b. If simply took a small image and stretched it to 1680 x 1050, would it change the fame rate?
Now you lost me... Do you want to stretch video of small size to larger view or you trying to use images and get video out of it???

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901
 
>1. Is there a class where it takes an audio file as a constructor and has methods that allow me pause, play and continue from any selected part of the song? According to API ackage javax.sound.sampled provides interfaces and classes for capture, processing, and playback of sampled audio data. However I never used it...


I guess I'll have to take a look at that... >2. How do you get video to work on an applet and have the functionality from question one?
You will have to search on the matter, but maybe you should read this first...
This is probably going to drive me nuts.... >3. How do I fade an image to a particular color?
Original Java image functionality is limited. However, Sun Systems seen this problem and support many community projects which try to solve the problem. To address the issue there is a Java Advaced Imaging (JAI) and Java Advanced Imaging Image I/O Tools API Core (jai-imageio-core)

>4. What would you say is the max refresh rate for a 1680 x 1050 applet with double buffering and without any choppiness? (considering that I'm using an up to date computer).
That image size is to big, it will take hell of time for processing and downloading for users. Just look what is the size of videos posted on youtube, google or yahoo videos
Well what I'm going to do is local and not over the web. Basically I'm making an audio player, slide show and video player. >4b. If simply took a small image and stretched it to 1680 x 1050, would it change the fame rate?
Now you lost me... Do you want to stretch video of small size to larger view or you trying to use images and get video out of it???

Mr.UNOwen
Junior Poster
133 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

Well I was thinking about the video and audio part of my program and I was thinking about how windows media player has a skin selector. Can I make wmp skin out of java? If I can, then this would simplify everything for me.

Also thanks for the link Peter_Budo

Mr.UNOwen
Junior Poster
133 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

I don't think you can create a media player skin from Java. It seems to have it's own SDK. It doesn't sound too complicated though. Here is the MSDN page on how to create skins:
http://msdn2.microsoft.com/en-us/library/aa393417.aspx

Ezzaral
Posting Genius
Moderator
15,985 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
 

Well What I was thinking of doing is create a player that runs over my applet, but I don't know xml and need to have it for the most part be always on top. So in a way it's as if it's a part of my applet.

So here's the things I need to know:
1. Does xml support "always on top" window behavior
2. Can java produce key presses? I know I can listen for key presses, but can key presses be produced by Java?
3. Can xml listen to key presses?

4. Any sites that I can easily learn xml in a short time?

Mr.UNOwen
Junior Poster
133 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You