question

Sinistar avatar image
Sinistar asked

Long videos in videoview and webview

This is a test webview, which is based on your web template for a video player. I have put it in my own webview and in Amazon's app tester app. On videos bigger than about 50 mb (or 13 minutes), it throws up a alert "Cannot play this video". What seems to be happening is that something called NuPlayer, fills it's buffer and when the buffer is exhausted, it never comes back from the dead. 1, The video plays 2. NuPlayer gives "unexpected end of file" 3. The buffer runs out (Error -1,1004) 4. The alert dialog on the Fire TV pops. Is Amazon getting in the middle of this stream with a proxy server like they use on silk? This does seem kind of like what happens to videos on Silk if you don't turn acceleration off. http://retrovision.tv/mrss This does work if you run it in a webview on normal Android devices (give or take the layout xml). Three tested. It also does the same thing on this very simple test of a webview which is just an autoplay html5 player. It dies after 13 minutes. http://retrovision.tv/killer.html Help? Message was edited by: Sinistar
fire tv
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sinistar avatar image
Sinistar answered
Oh... forgot to mention.... This does the same thing if you use a videoview on a Fire Stick and it works on a Nexus 7 etc.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sinistar avatar image
Sinistar answered
After 13 or 14 minutes: 08-27 16:00:09.857 9848-9969/tv.retrovision.movies D/MediaResourceGetter﹕ extracted valid metadata: MediaMetadata[durationInMilliseconds=4796330, width=480, height=360, success=true] 08-27 16:00:09.877 9848-9972/tv.retrovision.movies E/chromium﹕ [ERROR: webmediaplayer_android.cc(424)] Not implemented reached in virtual void content::WebMediaPlayerAndroid::setRate(double) 08-27 16:00:09.877 9848-9848/tv.retrovision.movies D/MediaPlayer﹕ Couldn't open file on client side, trying server side 08-27 16:00:13.977 9848-9848/tv.retrovision.movies E/MediaPlayer﹕ Should have subtitle controller already set 08-27 16:00:13.977 9848-9848/tv.retrovision.movies D/MediaPlayer﹕ getMetadata 08-27 16:00:14.567 9848-9863/tv.retrovision.movies W/MediaPlayer﹕ info/warning (3, 0) 08-27 16:12:13.427 9848-10210/tv.retrovision.movies W/MediaHTTPConnection﹕ readAt 49509482 / 32768 => java.net.ProtocolException: unexpected end of stream 08-27 16:13:49.017 9848-10210/tv.retrovision.movies E/MediaPlayer﹕ error (1, -1004) 08-27 16:13:49.017 9848-9848/tv.retrovision.movies E/MediaPlayer﹕ Error (1,-1004) 08-27 16:13:49.087 9848-9848/tv.retrovision.movies I/chromium﹕ [INFO:CONSOLE(184)] "ErrorType : Video Playback Error ErrorMessage : Video source not available or supported ErrorStack : Error at Error (native) at ErrorHandler.genStack ( http://www.retrovision.tv/mrss/js/error-handler.js:172:21) at PlayerView. ( http://www.retrovision.tv/mrss/js/player-view.js:173:57) Timestamp : Thu Aug 27 2015 16:13:49 GMT-0700 (PDT)" 08-27 16:13:52.387 9848-10210/tv.retrovision.movies E/MediaPlayer﹕ error (1, -1004) 08-27 16:13:52.387 9848-9848/tv.retrovision.movies E/MediaPlayer﹕ Error (1,-1004) Message was edited by: Sinistar
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.