will help you You never instantiated the MediaPlayer object which is what is throwing the NPE you're getting; you only left it as: MediaPlayer m1p Before setting the data source, you need to instantiate it with:
m1p = new MediaPlayer();
when i setdatasource of crystal report .it gives error " Cannot assign to 'SetDataSource' because it is a 'method g
I hope this helps you . My "Video_30.h264" is raw h264 stream that is not inside any container. while MediaExtractor.setDataSource(source) expects Stream inside supported containers like mp4, etc. I put my raw stream in mp4 container and it worked fine. hope this would help.
hope this fix your issue I am learning Android for few days. While Developing a simple Music Player I got this exception while using setDataSource(String fileName) method , mp is null, because you have never assigned it a value.
Runtime Exception using Glide Image Load setDataSource failed: status =
hope this fix your issue Well, code seems fine but 0x80000000 means that the file is incomplete, corrupted or something like that. So try: other images, or try to put the image path in string first and then open it as new file.