screen-sharing

Detect participant screen share start and stop events in CometChat iOS calls.

31|9|Updated Mar 10, 2023
One-click install
npx skills add https://github.com/cometchat/calls-sdk-ios --skill screen-sharing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: screen-sharing
Source: https://github.com/cometchat/calls-sdk-ios/tree/main/skills/screen-sharing
Command: npx skills add https://github.com/cometchat/calls-sdk-ios --skill screen-sharing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you handle screen sharing in CometChat iOS calls by letting your app detect when a remote participant starts or stops sharing their screen and react to it appropriately.

Core Features & Use Cases

  • Screen-share event handling: Capture lifecycle events for when a participant starts or stops screen sharing.
  • Presenter status awareness: Use event callbacks to identify who is currently presenting.
  • Use case: When someone in a meeting shares their screen from the web, automatically adjust your call UI logic to reflect that shared content and log the presenter for analytics or debugging.

Quick Start

Use the screen-sharing Skill to listen for participant screen-share events in your call session and update your UI or presenter status when callbacks fire.

Frequently Asked Questions about screen-sharing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect when a participant starts screen sharing in a CometChat iOS call?

To detect screen sharing in a CometChat iOS call, register a ParticipantEventListener and implement the onParticipantStartedScreenShare callback to receive events when a remote participant begins presenting.

How does iOS handle screen shares initiated by web clients during a real-time communication session?

iOS handles web client screen shares by using the ParticipantEventListener to capture start and stop events, passing the participant object to update the app state and display the shared content within the call UI.

What is presenter status awareness and how do I track it in call UI workflows?

Presenter status awareness tracks the active sharer by capturing screen-share event callbacks, using the provided participant object to identify who is currently presenting and updating the app state accordingly.

Does CometChat iOS support listener callbacks for stopping screen sharing?

Yes, CometChat iOS supports listener callbacks for stopping screen sharing by implementing the onParticipantStoppedScreenShare method within the ParticipantEventListener to detect when a participant stops presenting.

Can I use participant events to log presenter analytics during WebRTC sessions?

Yes, you can use participant events to log presenter analytics by capturing the screen-share lifecycle callbacks and using the participant object data to record who started or stopped presenting for debugging.

How do I update app state when a participant stops screen sharing on iOS?

To update app state when screen sharing stops, implement the onParticipantStoppedScreenShare callback within the ParticipantEventListener to detect the event and adjust the call UI logic to reflect the change.