Android - Playing mp4 video file from Expansion File
<p>I have followed all the steps in testing an expansion file for my application. Where I am stuck now is how to play a video file contained in that expansion file. </p>

<p>I have successfully been able to download it from Google Play and I can see it in the folder it is supposed to be in when I browse through my file manager.</p>

<p>I have looked for the past couple of days in trying to figure out how to play the file. At the moment there is only one for, to maintain appropriate size for testing. </p>

<p>I have tried to parse the URI and set it in the videoview, however, it always shows that the video cannot be played. </p>

<p>I have also tried this code so far to access it(As read in the docs and I have replaced the params with my params):</p>

<pre><code>// Get a ZipResourceFile representing a merger of both the main and patch files
ZipResourceFile expansionFile = APKExpansionSupport.getAPKExpansionZipFile(appContext,
    mainVersion, patchVersion);

// Get an input stream for a known file inside the expansion file ZIPs
InputStream fileStream = expansionFile.getInputStream(pathToFileInsideZip);
</code></pre>

<p>But I do not know what to do with the input stream in order to play the video.</p>

<p>Any help would be appreciated.</p>

<p>Thankyou.</p>
