dcsimg
MediaTracker for audio and video
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Roger_Ccopa
Posted On:   Wednesday, May 16, 2001 08:58 AM

Can I find out when an audio/video file is done loading, before a play them?. Can JMF does this?

Re: MediaTracker for audio and video

Posted By:   Anonymous  
Posted On:   Wednesday, May 16, 2001 10:04 AM

Roger, just take a look at the javadoc for java.awt.MediaTracker. They have a working example on how to "monitor" the loading of a set of images. And you can use the same object to load audio files.

Regards.

Re: MediaTracker for audio and video

Posted By:   Christopher_Schultz  
Posted On:   Wednesday, May 16, 2001 09:02 AM

You could always start a thread to download the file to a byte array, then notify a listener.



This would be a more generic solution than one specifically for audio or video.



-chris
About | Sitemap | Contact