作者finaloltry (上白泽)
看板java
标题[J2ME] PDA抓camera的问题
时间Tue Sep 23 20:58:00 2008
小弟我想写一个MIDlet程式
使用MMAPI抓PDA上的camera并拍照
PDA的机种是HP iPAQ hw6965
OS:window mobile 5.0
KVM:IBM J9
我去查过该VM是支援MMAPI的才对
http://www.jbenchmark.com/phonedetails.jsp?benchmark=jvm&D=HP%20iPAQ%20hw6965
但用下列code去测的结果却是不支援
form.append("microedition.media.version="+System.getProperty("microedition.media.version")+"\n");
form.append("supports.mixing="+System.getProperty("supports.mixing")+"\n");
form.append("supports.audio.capture="+System.getProperty("supports.audio.capture")+"\n");
form.append("supports.video.capture="+System.getProperty("supports.video.capture")+"\n");
form.append("supports.recording="+System.getProperty("supports.recording")+"\n");
form.append("audio.encodings="+System.getProperty("audio.encodings")+"\n");
form.append("video.encodings="+System.getProperty("video.encodings")+"\n");
form.append("video.snapshot.encodings="+System.getProperty("video.snapshot.encodings")+"\n");
form.append("streamable.contents="+System.getProperty("streamable.contents")+"\n");
(印出的结果全部都是null)
想请问一下这有可能是哪个部分出问题?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.116.82.217
1F:推 Srjiang:你给的网页并没有说这只有支援哪些东西呀 :p 09/24 13:43
2F:推 Srjiang:先拿一些简单的MMAPI MIDlet(如wtk的mmademo)跑跑看吧 09/24 14:08
3F:→ finaloltry:我还以为那网页上列出来的就代表该机种有支援 09/24 15:52
4F:→ finaloltry:Manager.createPlayer("capture://video"); 09/24 15:54
5F:→ finaloltry:测试时,遇到上面的code就会出错(模拟器上跑没问题) 09/24 15:56
6F:→ finaloltry:unable to create player for the locator capture:// 09/24 15:58
7F:→ finaloltry:(接上列)video 09/24 16:00
8F:→ finaloltry:如果是JVM的问题,想请问一下有哪个JVM有支援MMAPI 09/24 16:02
9F:推 allstarschh:camera是MMAPI中的optional的.. 09/24 21:52
10F:→ finaloltry:所以说即使有支援MMAPI也不一定能抓到camera吗? 09/24 22:08
11F:→ finaloltry:那我需要换JVM还是只能换其他PDA机种? 09/24 22:19
12F:推 Srjiang:先想辨法确定有没有support 不支援就得换有support的机种 09/26 18:12