martinbonnin / ExoPlayer

Apache License 2.0
22 stars 3 forks source link

File Not Found exception when playing same video #22

Open hiteshgupta33 opened 10 years ago

hiteshgupta33 commented 10 years ago

@martinbonnin

I got file not found exception when playing the same url over again. The exception was thrown in getInputStream in exoplayer/hls/MainPlaylist while trying to get inputstream.

This was weird, because i just the played the same url and then tried to play over and got this exception. So, when i changed the connection.setDoOutput() from false to true, it started working fine.

I think the connection timeout and readtimeout is set for 8 seconds and is causing the problem. It must be trying to read the same url for which the connection is already busy since we are also not disconnecting the connection.

So, if you play the url and then again play the url after 8 seconds, it plays fine.

Change it to true. Cheers

martinbonnin commented 10 years ago

This sounds strange. I don't see why the setDoOutput(true) would change anything. Are you sure this was not a transient server error ? Any way I can reproduce myself ?

hiteshgupta33 commented 10 years ago

@martinbonnin yup it was not at all transient server error.

I gave a sample link yesterday. Here try this http://vod.hdi.cdn.ril.com/vod/_definst_/mp4:hdivod/4/284/0_y74kwawj_0_l6yiuri4_9.mp4/playlist.m3u8

oh one more thing i did, i closed reader as well in parse method under MainPlaylist. But yes had to setoutput to true.

Steps to reproduce: Play the video press back press and finish the activity again play the same video.

martinbonnin commented 10 years ago

I don't reproduce this on my Nexus 5. Tried playing the same stream 10 times in a row and it's working fine. Can you post the full exception stacktrace ?

hiteshgupta33 commented 10 years ago

not happening on nexus 5, try it on any tablet. :)

On Fri, Sep 5, 2014 at 5:34 PM, Martin Bonnin notifications@github.com wrote:

I don't reproduce this on my Nexus 5. Tried playing the same stream 10 times in a row and it's working fine. Can you post the full exception stacktrace ?

— Reply to this email directly or view it on GitHub https://github.com/martinbonnin/ExoPlayer/issues/22#issuecomment-54616650 .

Hi

Regards Hitesh Gupta