은 내가 봤 우리는 0 % 압축 우편을 만드는 방법 http://developer.android.com/google/play/expansion-files.html
Tip: If you're packaging media files into a ZIP, you can use media playback calls on the files with offset and length controls (such as MediaPlayer.setDataSource() and SoundPool.load()) without the need to unpack your ZIP. In order for this to work, you must not perform additional compression on the media files when creating the ZIP packages. For example, when using the zip tool, you should use the -n option to specify the file suffixes that should not be compressed: zip -n .mp4;.ogg main_expansion media_files
또는 에 대한 언급은 그 0% (No compression)
와 .ZIP 확인해야 마땅한 것을 발견했다 winrar를 사용하고 있습니까?
여기 그래서 우리는 Play 스토어에서이 우편을 업로드해야한다 압축 방법을
를 참조하십시오.
그래서 당신은
는 단지
ZipResourceFile expansionFile=null;
try {
expansionFile = APKExpansionSupport.getAPKExpansionZipFile(getApplicationContext(),3,0);
AssetFileDescriptor fd = expansionFile.getAssetFileDescriptor("test.mp4");
MediaPlayer mPlayer = new MediaPlayer();
mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
mPlayer.setDataSource(fd.getFileDescriptor(),fd.getStartOffset(),fd.getLength());
mPlayer.prepare();
mPlayer.start();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
는'.obb' 태그를 생성 중지하십시오 사용 ZipHelper.java를 사용할 필요가 없습니다. .obb 파일은 이미'apk-expansion-files' 태그 아래에 있습니다.이 태그는 이미 여러분의 질문에 있습니다. – Charles