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

[FEATURE] - Customize the DisabledVideoWidget #116

Closed
haroonkhan335 opened this issue Dec 26, 2022 · 3 comments
Closed

[FEATURE] - Customize the DisabledVideoWidget #116

haroonkhan335 opened this issue Dec 26, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@haroonkhan335
Copy link

There is absolutely no way to customize the UIKIT VideoViewer. For example, the DisabledVideoWidget cannot be customized at all. There are cases when people want to show their profile image or even just the name of the user when they disabled the camera. There is no callback or anything on the UIKIT on knowing which user disabled the camera. Even if you provide your own widget it just stays the same for everyone that disables the video.

Describe the solution you'd like
Maybe a callback in the VideoViewer class when someone disables the video that returns a Widget to set the disabled video widget for anyone that have disabled their camera. That way we can customize the disabled widget for each user that disables the camera.

@haroonkhan335 haroonkhan335 added the enhancement New feature or request label Dec 26, 2022
@haroonkhan335 haroonkhan335 changed the title [FEATURE] [FEATURE] - Customize the DisabledVideoWidget Dec 26, 2022
@Meherdeep
Copy link
Contributor

You can use the onRemoteVideoStateChanged and onLocalVideoStateChanged callback to check which user has disabled/enabled the camera.
However, UIKit already takes care of that with the DisabledVideoWidget as you mentioned and gives you method to customise it as well. Are you getting any error while using this?
For example, if you want to display the profile pic when the video is disabled you can do something like this inside the AgoraVideoViewer

disabledVideoWidget: Container(
    color: Colors.black,
    padding: const EdgeInsets.all(8.0),
    child: Center(
        child: Image.network(
            'https://link-to-your-img.png',
        ),
     ),
)

@tadaspetra
Copy link
Contributor

Closing issue, since the UI Kit does support disabled Video customization. Please reopen if you disagree

@haroonkhan335
Copy link
Author

This

You can use the onRemoteVideoStateChanged and onLocalVideoStateChanged callback to check which user has disabled/enabled the camera. However, UIKit already takes care of that with the DisabledVideoWidget as you mentioned and gives you method to customise it as well. Are you getting any error while using this? For example, if you want to display the profile pic when the video is disabled you can do something like this inside the AgoraVideoViewer

disabledVideoWidget: Container(
    color: Colors.black,
    padding: const EdgeInsets.all(8.0),
    child: Center(
        child: Image.network(
            'https://link-to-your-img.png',
        ),
     ),
)

This sets the image for all the canvases who have joined the call. Consider 4 people in the video call with 4 different canvases. If all of them have disabled their camera then I would be showing the same image on all of the canvases which should not be the case. Each canvas should show its own image, which is impossible with the current setup.

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

No branches or pull requests

3 participants