Dear All,

 Please let me know if the MediaMetadataRetriever.java class can be
used to retrieve the metadata for RTSP link like this :
rtsp://208.29.16.222:554/test/neww_pw_MPEG4_128k_10fps_AAC_32k.mp4.

I am getting a runtime exception when I try to use it like this.

retriever = new MediaMetadataRetriever();
retriever.setMode(MediaMetadataRetriever.MODE_GET_METADATA_ONLY);
retriever.setDataSource(this, mUri);
//mUri = rtsp://208.29.16.222:554/test/neww_pw_MPEG4_128k_10fps_AAC_32k.mp4
retriever.extractMetadata
( MediaMetadataRetriever.METADATA_KEY_FRAME_RATE );
retriever.extractMetadata
( MediaMetadataRetriever.METADATA_KEY_VIDEO_FORMAT );
retriever.extractMetadata( MediaMetadataRetriever.METADATA_KEY_CODEC);
retriever.release();

My objective is to find the FrameRate, CodecType for the media file
which we are streaming.  Please guide me if there is any other way to
accomplish this.


Regards,
Gopalakrishnan.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to