Can't use jmf paly movie .
hi,
i want to use jmf to run my java program(FilePlayer.java) on Linux to play music & movies. It's ok when i played
the music , but when i played the movies, it showed me the error message as follow:
[root@localhost mm]# java FilmPlayer /tmp/testFiles/movie.avi
Font specified in font.properties not found [-tlc-song-medium-r-normal--*-%d-*-*-c-*-gbk-0]
Font specified in font.properties not found [-tlc-song-medium-r-normal--*-%d-*-*-c-*-gbk-0]
Font specified in font.properties not found [-tlc-song-medium-r-normal--*-%d-*-*-c-*-gbk-0]
Warning: Cannot convert string "<Key>Escape,_Key_Cancel" to type VirtualBinding
Warning: Cannot convert string "<Key>Home,_Key_Begin" to type VirtualBinding
Warning: Cannot convert string "<Key>F1,_Key_Help" to type VirtualBinding
Warning: Cannot convert string "Shift<Key>F10,_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>F10,Shift_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>KP_Enter,_Key_Execute" to type VirtualBinding
Warning: Cannot convert string "Alt<Key>Return,Alt_Key_KP_Enter" to type VirtualBinding
(1)play
(3)stop
(4)exit
Input control char:Unable to handle format: IV50, 320x240, FrameRate=10.0, Length=172800 0 extra bytes
movie is playing......
======================
(1)play
(2)pause
(3)stop
(4)exit
Input control char: java.lang.NullPointerException
at java.awt.Container.addImpl(Container.java:336)
at java.awt.Container.add(Container.java:223)
at FilmTest.controllerUpdate(FilmTest.java:66)
at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254)
at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQueue.java:65)
at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)
*******************************************************************************************************************
What i wonder was that it told me "Unable to handle format"( The file format i used was .avi & mpg ,supported by jmf ), and it can played the music but no image. However, the same file played well at jmstudio.
Does anyone know what they mean ? Is it a file format problem or my program problem ?
Any suggestion would be appreciate, THANK YOU!!

