Changing the video controls


(Steve Warby) #1

Hi guys have a look at a work in progress here
http://toolfolks.com/tw/

  1. When the controls show on the video it looks untidy as the control is the width of the element and not the width of the video.
  2. The controls also cover part of the video.

Is this something I can rectify please?

Cheers

Steve Warby


(Jonathan Deutsch) #2

As you are not changing the height, the video size is actually not changing. So you can have the element not actually grow in width, and then the video controls will stay the same size to the video. If you still want the letterbox effect you could make another black element behind the video that is set to grow in width.

This isn’t possible per-se; you could make the height larger but you’ll wind up with letter boxing. The only workaround is to not show controls and then re-implement them yourself (calling into the video element). I think there might be some libraries around that can offer alternate controls.