Vimeo video stops playing on Android 6 devices : <p>I'm trying to play video's from Vimeo in my app. The problem is that on Android 6 devices the video stops playing after a certain time. On devices with a lower API everything plays fine.</p>

<ul>
<li>The time depends on the quality. For the video of the provided url's below plays a certain minutes (1 to 3). How lower the video quality how longer it keeps playing.</li>
<li>After 1 to 3 minutes the mediaplayer throws an ProtocolException. The app does not crash on this but the video freezes when the buffered video piece is played. <code>[MediaHTTPConnection] readAt 25182208 / 32768 =&gt; java.net.ProtocolException: unexpected end of stream and shows this in de log</code></li>
<li>After the exception the video plays 30 seconds (buffered), then the application outputs this <code>[MediaPlayer] error (1, -1004)</code></li>
</ul>

<p>We're emailing for weeks now with Vimeo Support but they can't provide a solution or a possible cause. Now after weeks of mailing the support desk says that they're not supporting Android, but we've tried their suggestions:</p>

<ul>
<li>Use the redirected and unredirected url's</li>
</ul>

<p><a href="http://player.vimeo.com/external/185069251.hd.mp4?s=fd7b4178a59166b3f636f2e48f1d49b99db66ed2&amp;profile_id=174" rel="noreferrer">http://player.vimeo.com/external/185069251.hd.mp4?s=fd7b4178a59166b3f636f2e48f1d49b99db66ed2&amp;profile_id=174</a> [Redirected URL]</p>

<p><a href="https://fpdl.vimeocdn.com/vimeo-prod-skyfire-std-us/01/2013/7/185069251/610514667.mp4?token=586a9287_0xbb25f73405c612b30e0c64dc4c3a169e30137f84" rel="noreferrer">https://fpdl.vimeocdn.com/vimeo-prod-skyfire-std-us/01/2013/7/185069251/610514667.mp4?token=586a9287_0xbb25f73405c612b30e0c64dc4c3a169e30137f84</a> [Not redirected URL]</p>

<ul>
<li><p>Use a video view instead of a mediaplayer </p></li>
<li><p>We've tried a native Android and a Xamarin Android implementation</p></li>
<li><p>Try to download the file => this works but we want to stream because some video's are longer then 30 minutes (>100mb). Uncomment the code in the onCreate in the DownLoadActivity to test downloading.</p></li>
</ul>

<p>In the browser everything works fine. </p>

<p>I've placed a testproject on We-Transfer where you can see the problem <a href="https://bazookas.wetransfer.com/downloads/40dadcc8a01f7ebf025345cdf88b731220170102160508/21970a" rel="noreferrer">https://bazookas.wetransfer.com/downloads/40dadcc8a01f7ebf025345cdf88b731220170102160508/21970a</a></p>
