-
Notifications
You must be signed in to change notification settings - Fork 66
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
SwiftUI Support #120
Comments
Hi @usayuki You might not be able to use |
@zhinang-amazon I think we need a CVPixelBuffer to render with the renderFrame() method. |
Your |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is it possible to share example of how to display VideoRenderView or VideoTileController in SWIFTUI? |
Thanks for this but can you help us with a Complete ChimeSDK SwiftUI example to make the stuff easy for us? |
Is it possible to share example of how to display VideoRenderView or VideoTileController in SWIFTUI? |
My project is completely built using SWIFTUI no storyboard. I was able to get this to work and the audio call works perfectly fine but I don't know how to render the video signal in SWIFTUI any help on this? I have tried meetingModel.videoModel but don't know where or how to render the Video signal in SWIFTUI. Any help or idea please? |
Hi zhinang Can you just show a little bit of how to implement this. I have spent 2 months trying to understand this but to no avail. Thanks |
I got this errors Here is my ImageView code
I will be glad if anyone can help. Thanks |
Hi @adesun2k one workaround you could do is put wrapper around
and when you bind Let me know if this workaround works for you. Thanks. |
@adesun2k were you able to make it work? I am also stuck trying to make Chime work in SwiftUI. |
|
@adesun2k Thanks, it is encouraging to know that there is a solution after all. I'll try that too and see how it goes. If you get a chance to post some code for reference, that will save my time. I am stuck on it for over a week and I tend to struggle a bit with UIViewRepresentable. |
I am successfully using SwiftUI without storyboard. @zeeshanz post your code? |
@jonah-katz I am using storyboard so I have nothing new to post. If you have managed to make it work without the storyboard, could you please share your code? |
Sure. I basically have this class which houses the UIKit imageview:
And then I have a manager class (similar to the controller class in the demo), which initiates and saves a a bunch of VideoTilesView's:
Then finally in the View I can just grab the views and render them:
PS. wrote that all offhand. Im sure there's some bugs, but it captures the important pieces. |
How's everyone getting along with this? If it's not too late then @hokyungh solution worked for me. |
Is it now possible to create it with SwiftUI? |
Is your feature request related to a problem? Please describe.
Is it possible to use it in SwiftUI?
Describe the solution you'd like
I want to display VideoRenderView in Swift UI.
It is possible to place it by using UIViewRepresentable, but I need to pass a VideoRenderView in bindVideoView, so I would like to know how to do it.
The text was updated successfully, but these errors were encountered: