Obsolete
Status Update
Comments
jl...@gmail.com <jl...@gmail.com> #2
I have the same problem
jl...@gmail.com <jl...@gmail.com> #3
Discovered that exist a new method: setDataSource(link, headers);
I solved this problem with this:
if (Build.VERSION.SDK_INT >= 14)
mmr.setDataSource(link, new HashMap<String, String>());
else
mmr.setDataSource(link);
I solved this problem with this:
if (Build.VERSION.SDK_INT >= 14)
mmr.setDataSource(link, new HashMap<String, String>());
else
mmr.setDataSource(link);
pr...@gmail.com <pr...@gmail.com> #4
[Comment deleted]
pr...@gmail.com <pr...@gmail.com> #5
[Comment deleted]
pr...@gmail.com <pr...@gmail.com> #6
I tried the same thing, as mentioned in comment 2 but I wasn't able to get any metadata for the mp3 files. I am facing problem with the new Nexus tablet running jellbean. I think it definitely is a bug.
ko...@gmail.com <ko...@gmail.com> #7
I want to get metadata from mp3 url too, if this is not working then what are the other options for that?
di...@gmail.com <di...@gmail.com> #8
[Deleted User] <[Deleted User]> #9
ra...@gmail.com <ra...@gmail.com> #10
Excellent . Works for me !!!
en...@google.com <en...@google.com>
k0...@googlemail.com <k0...@googlemail.com> #11
setDataSource(link, new HashMap<String, String>()) .
It works on S4 phone but doesn't work on my tablet. Both devices are running on same version 4.4.2. Couldn't fix the problem.
[Deleted User] <[Deleted User]> #12
I tried the same thing, as mentioned in comment 2 but I wasn't able to get any metadata for the mp4 files.
My code is like this
mediaMetadataRetriever.setDataSource( "https://s3.amazonaws.com/demo/demo/19/video_20150423_183724.mp4 ",
new HashMap<String, String>());
but got an exception in logcat i.e.
java.lang.RuntimeException: setDataSource failed: status = 0x80000000
My code is like this
mediaMetadataRetriever.setDataSource( "
new HashMap<String, String>());
but got an exception in logcat i.e.
java.lang.RuntimeException: setDataSource failed: status = 0x80000000
ps...@gmail.com <ps...@gmail.com> #13
Второй комментарий помог, спасибо.
ka...@gmail.com <ka...@gmail.com> #14
I tried to retrieve sequence of images from video using following code.
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
retriever.setDataSource(videofilepath);
bitmap = retriever.getFrameAtTime(33333*i, MediaMetadataRetriever.OPTION_CLOSEST);
The above code retrieve sequence of images in lollipop but it's not working in
Marshmallow.In marshmallow it reaped same images, Please can any one help me to retrieve images in marshmallow I'm in critical situation please help me.
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
retriever.setDataSource(videofilepath);
bitmap = retriever.getFrameAtTime(33333*i, MediaMetadataRetriever.OPTION_CLOSEST);
The above code retrieve sequence of images in lollipop but it's not working in
Marshmallow.In marshmallow it reaped same images, Please can any one help me to retrieve images in marshmallow I'm in critical situation please help me.
ra...@gmail.com <ra...@gmail.com> #15
Lollipop and marshmallow user, please check you have provided the INTTERNET usage permission from the "Manifest". Previous versions do not require explicit permission but newer do ;) .
<uses-permission android:name ="android.permission.INTERNET" />
<uses-permission android:name ="android.permission.INTERNET" />
ka...@gmail.com <ka...@gmail.com> #16
On the Marshmallow, the MediaMetadataRetriever with OPTION_CLOSEST,OPTION_CLOSEST_SYNC,OPTION_NEXT_SYNC,OPTION_PREVIOUS_SYNC does not work.
The OPTION_CLOSEST works fine with all other versions of android,except Marshmallow.I tried to extract 30fps from video.Below code is I used.
it's working fine except marshmallow.
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
bitmap = retriever.getFrameAtTime(33333*i,MediaMetadataRetriever.OPTION_CLOSEST);
where, i-->1,2,3,...(next frames)
Please,Can any one help me to solve this problem. What can I do for extracting 30fps in marshmallow.
The OPTION_CLOSEST works fine with all other versions of android,except Marshmallow.I tried to extract 30fps from video.Below code is I used.
it's working fine except marshmallow.
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
bitmap = retriever.getFrameAtTime(33333*i,MediaMetadataRetriever.OPTION_CLOSEST);
where, i-->1,2,3,...(next frames)
Please,Can any one help me to solve this problem. What can I do for extracting 30fps in marshmallow.
ka...@gmail.com <ka...@gmail.com> #17
I tried ,
<uses-permission android:name ="android.permission.INTERNET" />
with this also but not working in marshmallow.
<uses-permission android:name ="android.permission.INTERNET" />
with this also but not working in marshmallow.
ch...@gmail.com <ch...@gmail.com> #18
If you're targeting Marshmallow or greater, make sure that you have requested the `Manifest.permission.WRITE_EXTERNAL_STORAGE` permission properly. I tried many different solutions, including another library that's an alternative to `MediaMetadataRetriever`, but it turned out that one of my code paths didn't request the proper permission.
sa...@gmail.com <sa...@gmail.com> #19
i am having a same issue with Marshmallow, MediaMetadataRetriever.OPTION_CLOSEST not work for me ...
ma...@aon.at <ma...@aon.at> #20
There can be non media files in the directory you are trying to access. I just tried to access my music directory and got the exeption. I checked it and found a dll file I accidentally copied in from my windows pc. After removing it it worked fine again.
st...@gmail.com <st...@gmail.com> #21
Just got the same problem, and found it surprisingly that this bug has been here OVER 6 YEARS...
I tried the methods (HashMap) from #3, and set Manifest with permission internet/write-external-storage as #15 #18 mentioned, but I still got a RuntimeException like #12 encountered.
I tried the methods (HashMap) from #3, and set Manifest with permission internet/write-external-storage as #15 #18 mentioned, but I still got a RuntimeException like #12 encountered.
tu...@gmail.com <tu...@gmail.com> #22
shame shame shame
ga...@gmail.com <ga...@gmail.com> #23
#3 just worked for me fortunately
a_...@inbox.lv <a_...@inbox.lv> #24
#2 not works. Android 10, Xiaomi Mi 9
mu...@gmail.com <mu...@gmail.com> #25
Facing same issue not working on MI 9, throwing same error
sa...@gmail.com <sa...@gmail.com> #26
Same issue here not working in Samsung m30s device. Am tried below method : ThumbnailUtils.createVideoThumbnail(file, size, null)
Occurs below issue : java.io.IOException: Failed to create thumbnail
sa...@gmail.com <sa...@gmail.com> #27
For me its fixed, the video file should be mp4 format than its working fine
ma...@gmail.com <ma...@gmail.com> #28
FFmpegMediaMetadataRetriever retriever = new FFmpegMediaMetadataRetriever();
retriever.setDataSource(videoUri);
1. Samsung A20 works fine. But the rest of the android device not work. What can I do?
retriever.setDataSource(videoUri);
1. Samsung A20 works fine. But the rest of the android device not work. What can I do?
sl...@gmail.com <sl...@gmail.com> #29
For me, It was file problem. A file of gallery was broken. I had to check at my pc whether the file was broken or not. In gallery, its thumbnail was fine. So I hadn't noticed that.
sg...@gmail.com <sg...@gmail.com> #30
if (! android.provider.Settings.canDrawOverla ys(MainActivity.this))( lntent int = new lntent(android.provider.Settings.ACTION _MANAGE_OVERLAY_PERMiSSiON. Uri.parse(“package:"+ getPackageName())): startActivity(intent): } else{ showFloatingWindow(): }
Description
Sample code:
String spec = "
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
if(retriever != null) {
try {
retriever.setDataSource(spec);
}
catch (IllegalArgumentException ex) {
ex.printStackTrace();
}
}
Result:
IllegalArgumentException from the setDataSource() call.
07-31 13:04:56.908: W/System.err(16770): java.lang.IllegalArgumentException
07-31 13:04:56.908: W/System.err(16770): at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:68)
07-31 13:04:56.908: W/System.err(16770): at com.andromo.test.audio.MediaMetadata.getMetadata(MediaMetadata.java:198)
Expected behavior:
The setDataSource call should connect to the remote site and extract the metadata from the MP3 file as it did in other versions (confirmed working in 2.1 all the way to 4.0.4).
Tested on a Nexus S running 4.1.1.