943,840 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1580
  • Java RSS
Jun 20th, 2007
0

A few questions regarding video, images and audio

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster
Mr.UNOwen is offline Offline
127 posts
since Oct 2006
Jun 21st, 2007
0

Re: A few questions regarding video, images and audio

>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???
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 873
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004
Jun 21st, 2007
0

Re: A few questions regarding video, images and audio

Click to Expand / Collapse  Quote originally posted by peter_budo ...
>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...

Click to Expand / Collapse  Quote originally posted by peter_budo ...
>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....

Click to Expand / Collapse  Quote originally posted by peter_budo ...
>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.

Click to Expand / Collapse  Quote originally posted by peter_budo ...
>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???
Reputation Points: 10
Solved Threads: 0
Junior Poster
Mr.UNOwen is offline Offline
127 posts
since Oct 2006
Jun 21st, 2007
0

Re: A few questions regarding video, images and audio

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
Reputation Points: 10
Solved Threads: 0
Junior Poster
Mr.UNOwen is offline Offline
127 posts
since Oct 2006
Jun 21st, 2007
0

Re: A few questions regarding video, images and audio

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
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007
Jun 21st, 2007
0

Re: A few questions regarding video, images and audio

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?
Reputation Points: 10
Solved Threads: 0
Junior Poster
Mr.UNOwen is offline Offline
127 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: How do I count numbers inside LinkedList?
Next Thread in Java Forum Timeline: Errors I can't resolve!!!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC