Hi bob,

thanks for the reply.... 
I tried to record a video whose resolution is set to 320*240 from settings, 
after that i played the video and tried to retrieve the height and width as 
u said, is giving height as 240 and width as 320. 
suppose if i record a video whose resolution is 320*240 means can we say 
the width and height of my video is 320 and 240...

why i am asking like this means i have recorded a hd video(1280*720) when 
playing in Landscape is playing properly but when i try to play the same 
video  in portrait mode the video 
is getting cut... just i want to know the video width and height at that 
time. 




On Monday, December 10, 2012 8:31:17 PM UTC+5:30, bob wrote:  
>
>
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to