Can I enable screen share from my agent end or do ...
# ask-ai
h
Can I enable screen share from my agent end or do I have to enable that from my frontend?
t
Thanks for reaching out, Ahmed. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Just a quick heads-up: screen sharing in LiveKit needs to be turned on from the frontend because it requires the user’s permission and interaction with their browser or OS. So, agents can’t enable screen sharing directly. To get it going, the frontend has to call a method like
room.localParticipant.setScreenShareEnabled(true)
, which will then ask the user to pick a screen, window, or tab to share. Hope that helps clear things up! Sources: Screen sharing | LiveKit Docs | complex-agents/nova-sonic/nova-sonic-form-agent/components/livekit/agent-co... | app/src/main/java/io/livekit/android/example/voiceassistant/screen/VoiceAss... | Sources/LiveKit/Participant/LocalParticipant.swift