Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Appcelerator Studio - Android app crashes on Marshmallow when I load a URL in video player

I download a video from my remote server and saving it in application data directory. Once it is completed I pass its URL to video player (UI element on my window). Then my app crashes.

This is only happening on Marshmallow (Android version 6.0). I've tested it on Lollypop (4-5 devices) but it is working fine there.

I tried different solutions but am still not able to fix this issue. It is really killing me. If anyone of you have idea about it, please help. I would be grateful.

This is my log (from comments):

[ERROR] : TiVideoView8: java.io.IOException: setDataSource failed. [ERROR] : TiVideoView8: at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1095) [ERROR] : TiVideoView8: at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1041) [ERROR] : TiVideoView8: at android.media.MediaPlayer.setDataSource(MediaPlayer.java:987) [ERROR] : TiVideoView8: at android.media.MediaPlayer.setDataSource(MediaPlayer.java:968)

like image 457
In-Vogue Avatar asked Apr 18 '16 10:04

In-Vogue


1 Answers

You ran into TIMOB-20440 which is fixed in Titanium 5.3 (beta this week, GA 2 weeks later).

like image 99
Fokke Zandbergen Avatar answered Sep 21 '22 01:09

Fokke Zandbergen