E/MediaPlayer Error with Android 4.4 and later

1,544 views
Skip to first unread message

Julian Bankston

unread,
May 8, 2014, 3:17:36 PM5/8/14
to ima...@googlegroups.com
I am using the IMA SDK version 5. Prerolls and videos play on versions of Android 4.3 and earlier. When I attempt to run the app on a Nexus 4 or Nexus 5 with 4.4 or later the preroll runs and on completion the app force closes. Below is the logcat error. Thanks in advance.


05-08 12:08:11.000    1041-1041/tv..app D/dalvikvm﹕ GC_FOR_ALLOC freed 2043K, 14% free 15042K/17372K, paused 78ms, total 80ms
05-08 12:08:12.540    1041-1041/tv..app I/MediaPlayer﹕ Info (700,465)
05-08 12:08:15.570    1041-1041/tv..app I/MediaPlayer﹕ Info (700,819)
05-08 12:08:18.640    1041-1041/tv..app I/MediaPlayer﹕ Info (700,339)
05-08 12:08:20.300    1041-1041/tv..app D/MediaPlayer﹕ Couldn't open file on client side, trying server side
05-08 12:08:20.490    1041-1041/tv..app D/dalvikvm﹕ GC_FOR_ALLOC freed 1102K, 12% free 15386K/17372K, paused 75ms, total 79ms
05-08 12:08:20.620    1041-1041/tv..app D/dalvikvm﹕ GC_FOR_ALLOC freed 4K, 10% free 16065K/17716K, paused 55ms, total 55ms
05-08 12:08:20.730    1041-1041/tv..app D/dalvikvm﹕ GC_FOR_ALLOC freed <1K, 10% free 16406K/18060K, paused 70ms, total 71ms
05-08 12:08:20.840    1041-1041/tv..app D/dalvikvm﹕ GC_FOR_ALLOC freed <1K, 9% free 16747K/18404K, paused 57ms, total 58ms
05-08 12:08:20.940    1041-1041/tv..app D/dalvikvm﹕ GC_FOR_ALLOC freed <1K, 9% free 17089K/18748K, paused 68ms, total 69ms
05-08 12:08:21.100    1041-1041/tv..app D/dalvikvm﹕ GC_FOR_ALLOC freed <1K, 9% free 17430K/19092K, paused 102ms, total 104ms
05-08 12:08:21.190    1041-1041/tv..app I/Choreographer﹕ Skipped 53 frames!  The application may be doing too much work on its main thread.
05-08 12:08:24.870    1041-1041/tv..app D/MediaPlayer﹕ getMetadata
05-08 12:08:25.090    1041-1067/tv..app E/MediaPlayer﹕ error (1, -2147483648)
05-08 12:08:25.100    1041-1041/tv..app E/MediaPlayer﹕ Error (1,-2147483648)
05-08 12:08:25.100    1041-1041/tv..app D/VideoView﹕ Error: 1,-2147483648

Bret McGowen

unread,
May 9, 2014, 1:04:56 PM5/9/14
to ima...@googlegroups.com
Hi Julian,

Thanks for the logcat, we'll take a look. In the meantime do you have an example ad tag that you're using to recreate the issue?

Thanks,
Bret McGowen
IMA SDK Team

JBankston

unread,
May 9, 2014, 4:11:16 PM5/9/14
to ima...@googlegroups.com

Shawn Busolits (IMA SDK Team)

unread,
May 12, 2014, 12:51:07 PM5/12/14
to ima...@googlegroups.com
Hey Julian,

This looks similar to an error that we had in the past related to resetting the MediaPlayer between ads and content. Take a look at the first three lines of onCompletion here. Are you doing something similar to reset the MediaPlayer? If not, give that a shot and let me know if it works.

Thanks,
Shawn Busolits
IMA SDK Team
Reply all
Reply to author
Forward
0 new messages