streaming-ios
streaming-ios copied to clipboard
Drawing UIView (UIButton) on top of preview in R5VideoViewController?
Can you include an example where there's some custom drawing done over the Preview layer in R5VideoViewController
? I am trying to draw a custom "Start" and "Stop" UIButton
on top of the streaming preview.
Right now it looks like the stream is rendering as a GLKView
, but there should be a way to add UIView
s to the view directly if I'm not mistaken. But I don't see any methods to access the GLKView
view itself.
@ngominhtrint My apologies for the delay in getting back to you. We do not have an example like that drawn up. I don't think you can correctly add children directly to the R5VideoViewController - it works a little differently to a basic view controller which is why we suggest it not be the base view for any particular screen. You shouldn't have trouble adding other elements as children of its parent view though.