Kickflip / kickflip-android-sdk

Kickflip Android SDK - Live Video Streaming to the Cloud
https://kickflip.io
Apache License 2.0
660 stars 212 forks source link

Crashing when stop playing recorded livestream #36

Open 4netinteractive opened 9 years ago

4netinteractive commented 9 years ago

On some Android 4.2 devices we tested we have sometimes the issue that it crashes at the end of the recorded livestream with the Kickflip MediaPlayer integrated in the SDK.

Any idea what causes this and how this can be solved?

Stacktrace: E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.cloozup.app, PID: 31217 java.lang.IllegalStateException at android.media.MediaPlayer.getCurrentPosition(Native Method) at io.kickflip.sdk.fragment.MediaPlayerFragment.getCurrentPosition(MediaPlayerFragment.java:245) at android.widget.MediaController.setProgress(MediaController.java:423) at android.widget.MediaController.access$500(MediaController.java:71) at android.widget.MediaController$3.handleMessage(MediaController.java:394) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:157) at android.app.ActivityThread.main(ActivityThread.java:5356) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081) at dalvik.system.NativeStart.main(Native Method)

OnlyInAmerica commented 9 years ago

Kickflip's minimum Android version is 4.3, but if all you're doing is playback that should be fine.

Would you be able to email me the link of the stream in question? It's possible the manifest was corrupted. Feel free to email me (see my Github profile for my address).

Aso I must say that Google's ExoPlayer is now the best choice for HLS playback on Android.

4netinteractive commented 9 years ago

Hi,

Thanks for your quick reply. I don't think a manifest is corrupted because it only happens now and then. The devices were tested with android 4.4.2 (sorry not 4.2). We will have a look at the ExoPlayer and see if that is doing better.