手机中的Java ME使用哪种视频格式? [英] Which video formats to use for Java ME in mobile phones?

查看:102
本文介绍了手机中的Java ME使用哪种视频格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我(或者我的一些学生)有一个Java ME(每个人仍然称其为J2ME的平台)应用程序,该应用程序使用JSR-135和VideoControl来显示视频.他们已经创建了mpeg-1视频文件,并且可以在模拟器中使用,但不能在他们尝试过的任何实际手机上使用.在 Player 中对 getControl 的调用返回null.

I (or rather some of my students) have a Java ME (the platform everyone still calls J2ME) application that shows videos using JSR-135 and VideoControl. They have created mpeg-1 video files, and it works in the emulator, but not on any of the actual phones they have tried. The call to getControl in Player returns null.

我认为这是因为手机无法显示视频格式,但是模拟器可以显示.听起来不错吗?

I think this is because the phone can't show the video format, but the emulator can. Does that sound right?

是否应该使用某种格式,以便最大程度地提高各种电话能够处理的格式?是的,mpeg-1,但是任何特定的分辨率等等?

Is there some format that they should use, in order to maximize the likelihood that various phones will be able to handle it? Yes, mpeg-1, but any specific resolution and so on?

推荐答案

您要查找的是许多电话的video.encodings系统属性的值.

What you are looking for is the value of the video.encodings system property for a number of phones.

例如,诺基亚N95固件v20表示:

For example, the Nokia N95, firmware v20 says:

'encoding =视频/3gpp 编码=视频/3gpp2 encoding = video/mp4'

'encoding=video/3gpp encoding=video/3gpp2 encoding=video/mp4'

(通常,电话能够记录和播放相同的视频格式)

(generally, a phone is capable of both recording and playing back the same video formats)

不幸的是,使用许多设备大规模地收集这些信息并不便宜,我不希望您会找到免费的在线信息存储库.

Unfortunately, gathering this information on a large scale, with many devices is not cheap and i don't expect you will find a free online repository for this information.

如果您要查找特定设备的功能,则可能会在制造商的开发人员网站上找到最佳信息.

If you look for the capability of a specific device, then the manufacturer's website for developers is probably where you will find the best information.

您可能还想看看www.deviceanywhere.com是否会向教育机构提供优惠.

You might also want to see if www.deviceanywhere.com will give deals to educational organizations.

这篇关于手机中的Java ME使用哪种视频格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆