iosswiftbrightcove

How can I set a title at the top of a customized Brightcove UI player?


In this tutorial The UI is built using 'lines' of views from the bottom. Which is perfect for just a traditional bottom view like the one with progress bar below, but I want to have a title label like the example too. I can't add empty lines of views as the screens differs.

Should I build a new custom UIView from scratch?

enter image description here


Solution

  • After days of search, the answer was actually in the repository: https://github.com/BrightcoveOS/ios-player-samples/tree/master/Player/CustomControls

    There is an nib file which has the UIView as custom controls view to the video player, which is much easier to implement and has much more freedom to design as you wish.