streaming-ios icon indicating copy to clipboard operation
streaming-ios copied to clipboard

Drawing UIView (UIButton) on top of preview in R5VideoViewController?

Open ngominhtrint opened this issue 7 years ago • 1 comments

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 UIViews to the view directly if I'm not mistaken. But I don't see any methods to access the GLKView view itself.

ngominhtrint avatar Apr 28 '17 09:04 ngominhtrint

@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.

HoldenMills avatar May 10 '17 15:05 HoldenMills