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

Hiding the 'Recording' button in the UI #31

Closed
Siddhartha90 opened this issue Dec 20, 2024 · 2 comments
Closed

Hiding the 'Recording' button in the UI #31

Siddhartha90 opened this issue Dec 20, 2024 · 2 comments

Comments

@Siddhartha90
Copy link

It doesn't seem that the python library exposes the ability to granularly control the UI and hide this button
image

The alternative recommended is to use the Daily Prebuilt UI and bundles that into JS directly (probably via iframe) which does expose a flag to hide recording. However, we'd like to continue using daily via python in our backend. Are there other workaround here?

@aconchillo
Copy link
Contributor

You can hide the recording button from the UI as you mentioned, but you still can start recording from daily-python https://reference-python.daily.co/api_reference.html#daily.CallClient.start_recording.

If you mean that sometimes you want to show the button and sometimes you don't want to show the button and you want to control that from daily-python, it's possible for you to send app messages from daily-python (see https://reference-python.daily.co/api_reference.html#daily.CallClient.send_app_message). Those app messages can then be received by any client. For example, in JS you would receive an app-message event https://docs.daily.co/reference/daily-js/events/participant-events#app-message.

Another, probably easier option, would be for your app to pass a flag to the UI and then enable the button or not.

@aconchillo
Copy link
Contributor

Closing since this is not specifically daily-python related.

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