title: Play media from from zip file without unzipping
body: <p>I know there are already a few questions like this on SO, but they relate to extracting the file before playing it.</p>
  
  <p>In the Android docs <a href="http://developer.android.com/google/play/expansion-files.html" rel="noreferrer">here</a> it explains that you can play files directly from a .zip file without extracting it.</p>
  
  <blockquote>
    <p>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
    <a href="http://developer.android.com/reference/android/media/MediaPlayer.html#setDataSource%28java.io.FileDescriptor,%20long,%20long%29" rel="noreferrer">MediaPlayer.setDataSource()</a> 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:</p>
    
    <p>zip -n .mp4;.ogg main_expansion media_files</p>
  </blockquote>
  
  <p>I've made an (uncompressed) zip package, but I cannot figure out how to get from a <code>ZipEntry</code> to a <code>FileDescriptor</code>, and they don't explain any further. How do I get a <code>FileDescriptor</code> without unpacking the zip file?</p>