×
Namespaces

Variants
Actions
Revision as of 03:32, 30 July 2013 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

中文 如何播放 Series 40v3 文件系统中的中文名mp3

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台:
Series 40

文章
Steven_Ch 在 24 Apr 2007 创建
最后由 hamishwillee 在 30 Jul 2013 编辑

从文件系统中播放多媒体文件有两个方式:

  1. javax.microedition.media.Manager.createPlayer(java.io.InputStream stream, java.lang.String type): 利用FileConnection打开文件,将文件数据读取到byte数组,再由byte数组创建Player
  2. javax.microedition.media.Manager.createPlayer(java.lang.String locator): 利用FileConnection获取文件的Path,直接使用文件地址创建Player。

对于Series 40v3文件系统中的中文名称文件,如果通过方式一来播放,则会在打开文件时抛出异常,使用方式二则可以成功加载和播放。

英文名称的文件则不受此限。

This page was last modified on 30 July 2013, at 03:32.
340 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×