-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
Exoplayer: r1.3.1 from jcenter.
When playing HLS with unknown resolutions playback fails.
The master playlist looks like this:
EXTM3U
EXT-X-STREAM-INF:BANDWIDTH=627168,RESOLUTION=0x0
/1.m3u8
The exeption is this:
java.lang.ArithmeticException: divide by zero
at com.google.android.exoplayer.util.Util.ceilDivide(Util.java:189)
at com.google.android.exoplayer.chunk.VideoFormatSelectorUtil.getMaxVideoSizeInViewport(VideoFormatSelectorUtil.java:180)
at com.google.android.exoplayer.chunk.VideoFormatSelectorUtil.selectVideoFormats(VideoFormatSelectorUtil.java:112)
at com.google.android.exoplayer.chunk.VideoFormatSelectorUtil.selectVideoFormatsForDefaultDisplay(VideoFormatSelectorUtil.java:61)
at .HlsRendererBuilder.onSingleManifest(HlsRendererBuilder.java:97)
at .HlsRendererBuilder.onSingleManifest(HlsRendererBuilder.java:50)
at com.google.android.exoplayer.util.ManifestFetcher$SingleFetchHelper.onLoadCompleted(ManifestFetcher.java:328)
at com.google.android.exoplayer.upstream.Loader$LoadTask.handleMessage(Loader.java:277)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)