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

2

6

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)

Overlay answered 18/4, 2016 at 10:3 Comment(3)
@ have you requesting run time permission.Mclean
No, I didn't found any permission for reading from application data directory...Overlay
@SohailZahid : were you able to understand the problem???Overlay
B
1

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

Bond answered 19/4, 2016 at 7:30 Comment(1)
Thank you very much for your time...:)Overlay
G
0

This is a bug that did exists on earlier SDK of appceleration. But is fixed now. The bug arose because of new run time permission that is introduced in Andorid M. Fix version 5.3.0 or higher. There is work around though. Get the applicationDataDirectory permission using ti.permission module.

Grieco answered 25/4, 2016 at 11:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.