Exception when calling setDataSource(FileDescriptor) method (failed.: status=0x80000000)
Don't forgot permission
<uses-permission android:name="android.permission.INTERNET" />
Okay, I've arrived to the conclusion that errors like:
Prepare failed.: status=0x1 (when calling prepare() )
and
setDataSourceFD failed.: status=0x80000000 (when calling setDataSourceFD() )
have to do with the file format and probably mean that the file is incomplete, corrupted or something like that...
As I have post in this link, I've found an specific video which works fine while streaming it (though I use setDataSource
, not setDataSourceFD
), but it'll not work with most of the videos.