I download the video from a remote server and save it in the application data directory. Once it is completed, I pass its URL to the video player (user interface element in my window). Then my application crashes.
This only happens on Marshmallow (Android version 6.0). I tested it on Lollypop (4-5 devices), but it works fine there.
I tried different solutions, but still can not solve this problem. It really kills me. If any of you have an idea about this, please help. I will be grateful.
This is my journal (from comments):
[ERROR]: TiVideoView8: java.io.IOException: setDataSource failed. [ERROR]: TiVideoView8: on android.media.MediaPlayer.setDataSource (MediaPlayer.java:1095) [ERROR]: TiVideoView8: on android.media.MediaPlayer.setDataSource (MediaPlayer.java:1041) [ERROR]: TiVideoView8: .media.MediaPlayer.setDataSource (MediaPlayer.java:987) [ERROR]: TiVideoView8: on android.media.MediaPlayer.setDataSource (MediaPlayer.java:968)
source share