Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ngominhtrint opened this issue Apr 28, 2017 · 1 comment

Comments

@ngominhtrint
Copy link

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.

@HoldenMills
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants