日期:2014-05-16 浏览次数:20359 次
Progressive download
The implementation of the FileConnection API on the W550 and W600 uses progressive download to give instant access to media files from the Mobile Media API.
?
Progressive download is a technique used to play media while the media is still being downloaded to the player, you might have noticed this when looking at video clips on the internet. The video is being played while the player is still downloading and buffering the content. Before the implementation of the progressive download, the entire media file was loaded into the memory before it was played. This resulted in long waiting times from the media being loaded to it actually being played which was very obvious when the media file was big.
?
The benefit of progressive download is extremely obvious when playing large media files and especially when having play list functionality.
?
To use progressive download you can only use the createPlayer method that takes a locator string
using the file scheme like this:
Manager.createPlayer(file :///c:/sounds/song.mp3);
?
This will only work on Java Platform 6 mobile phones since the Mobile Media API implementation on previous Java Platforms does not support the file scheme. Using the createPlayer(InputStream stream, String type) will not take advantage of the progressive download functionality.
?
原文:
http://developer.sonyericsson.com/site/global/techsupport/tipstrickscode/java/p_new_features_mobilemedia_api_jsr135.jsp