Maybe use this function in android.media.MediaPlayer? public int getVideoHeight () Added in API level 1 Returns the height of the video. Returns the height of the video, or 0 if there is no video, no display surface was set, or the height has not been determined yet. The OnVideoSizeChangedListener can be registered via setOnVideoSizeChangedListener(OnVideoSizeChangedListener) to provide a notification when the height is available.
On Monday, December 10, 2012 7:00:19 AM UTC-6, abhay_401 wrote: > > Hi, > > I am playing a video from Gallery, how can i find the width and the height > of that video which is playing...?? > Can anybody is having any idea regarding this...??? > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

