Namespaces
Variants
Actions

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

Jump to: navigation, search
WP Metro Icon Chinese.png
文章信息

文章
Steven_Ch 在 24 Apr 2007 创建
最后由 hamishwillee 在 14 Jun 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 14 June 2013, at 07:52.
148 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved