added api interface for video. Adjustable size.