---
title: "S40平台播放多媒体时内存优化"
author: "fonter"
date: "2009-06-22T17:33:24Z"
tags: []
categories: ["移动开发"]
slug: "s40"
draft: false
lastmod: "2009-06-27T16:17:40Z"
id: 413022
url: "https://fonter.iteye.com/blog/413022"
---

S40平台播放多媒体时内存优化  
S40在播放多媒体时，有可能出现下载量超过内存的情况，为了解决这个问题，有一个很好的做法，以避免这类问题：  
1、在jad或manifest文件添加关键字&lt;progressive\_download: enable&gt;  
2、在下载文件的URL加streamable=true参数，如：[http://fonter.iteye.com/audio.mp3?streamable=true](/audio.mp3?streamable=true)

 

 

相关资料：[http://wiki.forum.nokia.com/index.php/How\_to\_play\_mp3\_from\_server\_in\_Java\_ME](http://wiki.forum.nokia.com/index.php/How_to_play_mp3_from_server_in_Java_ME)

 

导读  
安装Jar提示“jar文件无效”的另一个奇怪原因 [http://fonter.iteye.com/blog/414188](http://fonter.iteye.com/blog/414188)  
J2ME代码认证证书的支持情况 [http://fonter.iteye.com/blog/413357](http://fonter.iteye.com/blog/413357)  
S40平台播放多媒体时内存优化 [http://fonter.iteye.com/blog/413022](http://fonter.iteye.com/blog/413022)  
SUN的J2ME源代码下载 [http://fonter.iteye.com/blog/412094](http://fonter.iteye.com/blog/412094)  
J2ME也玩GZIP，哈哈！[http://fonter.iteye.com/blog/411284](http://fonter.iteye.com/blog/411284)  
开源一个J2ME解析类 [http://fonter.iteye.com/blog/409830](http://fonter.iteye.com/blog/409830)