Friday, 15 July 2011

orientation - iOS - Is video/image on server portrait or landscape? -



orientation - iOS - Is video/image on server portrait or landscape? -

if user uploads video server , later seek play mpmovieplayercontroller remote url, how know if video taken in portrait or landscape mode? same image. need set view frame based on orientation of original asset.

your mpmovieplayercontroller reports naturalsize. if naturalsize.width > naturalsize.height, you've got landscape video.

similarly, uiimage reports size. if size.width > size.height, you've got landscape image.

ios orientation mpmovieplayercontroller alasset

No comments:

Post a Comment