play a wmv in java

anyone no a way of doing this? jmf dont work and indeed qtj cant play wmv being its m$ mumble.
Just wondered if anyone has worked out or no’s a way to play wmv in Java action…

ta

It should work in jmf, but it doesn’t by default ISTR… you need to tell it that .wmv is a known filetype or somesuch using that setup tool that comes with it.

By God it’s useless.

Cas :slight_smile:

JMF would have been so cool if it was debugged and supported… they have the beginnings of something good and then they let it rot.

WMV is complex and quite propritary. You will have to use native code that interfaces with microsoft’s codec to play it. Technically JMF with the platform specific native libs should be able to do that… but no doubt it is hosed somehow.

i added it as a mine type… but it didnt want to no :(… take it theres no native mumbles already nocking around?

I used NCTVideoControl activeX controls to play video in Windows after I basically failed to get JMF working. Cost $500 or something. I use it for video playback into GL textures. It’s a neat bit of kit. I wrote a JNI wrapper around the bits I needed for it.

Cas :slight_smile:

What we really need is a java wrapper for MPlayer which can play just about all files in all operating systems (e.g. I can watch WMV on mac). Pity MPlayer has a restrictive GPL license though.

Will.

From my understanding of the jmf it doesn’t support wmv files.

I’m not uptodate on java programming but you might get around the problem by making a call to your desktop browser, the browser would then automatically run the wmv file.

Another way around is to convert the wmv file to another format: avi or mpeg or mov. There would probably be a loss in quality but if you’re streaming over the internet it might not be noticed.

Hopes this helps.