Animating OTVideoView size

Ask questions about the iOS API here

Animating OTVideoView size

Postby dimitry » Tue Nov 06, 2012 11:51 am

Hello,

I think I already know the answer to this, but just wondering if it's possible to animate the size of the video feed in OTVideoView?

Animating using UIView block animations (changing the frame), jumps instantly to the new size.

I tried setting autoresize mask directly to videoView subview, no luck.

Perhaps I'm trying to animate it incorrectly?

Thanks!
Was this post helpful? (0)
dimitry
 
Posts: 2
Joined: Tue Nov 06, 2012 11:48 am
Thumbs Up: 0

Re: Animating OTVideoView size

Postby don » Tue Nov 06, 2012 11:59 am

Try wrapping OTVideoView inside your own UIView and animating that and let me know if that solves your problem. The OTVideoView may be more aggressive than it needs to in settings its own Frame/Bounds to prevent the aspect ratio from being skewed.
Was this post helpful? (0)
don
 
Posts: 148
Joined: Wed Dec 14, 2011 1:45 pm
Thumbs Up: 10

Re: Animating OTVideoView size

Postby dimitry » Tue Nov 06, 2012 12:15 pm

That's what it was originally - I'm changing the frame of it's parent (normal UIView). Forgot to mention that. The ratio is 4:3 (animating from 200x150 to 400x300). In either case (animating the parent or OTVideoView directly), it snaps to the new height. In the parent case, the parent itself animates, but its child (OTVideoView) snaps right away.

Thank you
Was this post helpful? (0)
dimitry
 
Posts: 2
Joined: Tue Nov 06, 2012 11:48 am
Thumbs Up: 0


Return to iOS



Who is online

Users browsing this forum: No registered users and 1 guest

cron