Skip to content

gql-server: Allow all users to share screens (not only presenter) (backend portion) - #21303

Merged
gustavotrott merged 3 commits into
bigbluebutton:v3.0.x-releasefrom
gustavotrott:gql-user-screenshare-as-camera
Oct 1, 2024
Merged

gustavotrott merged 3 commits into
bigbluebutton:v3.0.x-releasefrom
gustavotrott:gql-user-screenshare-as-camera

Conversation

@gustavotrott

@gustavotrott gustavotrott commented Oct 1, 2024 •

Copy link
Copy Markdown
Contributor

We are enabling screen sharing for all users, not just the presenter.

Implementation:

  • Users share screens using the existing user_camera collection.
  • Screen shares act as user_camera streams.
  • Added contentType field to indicate if a stream is from a camera or a screen share.
  • Future plan to rename user_camera to user_stream.

GraphQL Schema Updates:

  • Subscription user_camera:

    subscription {
      user_camera {
        streamId
        contentType
        hasAudio
        focused
        user {
          name
        }
      }
    }
  • Mutation cameraBroadcastStart:

    • New required field: contentType
    • New optional field: hasAudio
  • Mutation cameraSetFocused: (only presenter can call)

    • Required field: streamId
    • Required field: focused

Add fields:
	contentType: to identify whether is camera or screenshare
	hasAudio: useful for screenshare
	focused: indicates if this screenshare will be shown in presentation area
@gustavotrott gustavotrott added this to the Release 3.0 milestone Oct 1, 2024
@gustavotrott
gustavotrott requested a review from Tainan404 October 1, 2024 18:02
@coderabbitai

coderabbitai Bot commented Oct 1, 2024 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

Walkthrough

The changes involve enhancements to the webcam broadcasting functionality within the application. Key modifications include updates to method signatures to incorporate new parameters such as contentType, hasAudio, and focused. The database schema has been adjusted to accommodate these new fields, and messaging structures have been expanded to include additional metadata for webcam streams. Validation logic in GraphQL actions has been improved, and new functions have been introduced to manage user focus states. Overall, the updates enhance the handling and management of webcam streams and related user interactions.

Changes

Files Change Summary
akka-bbb-apps/src/main/scala/.../UserBroadcastCamStartMsgHdlr.scala
.../UserCameraDAO.scala
.../Webcams.scala
Updated method signatures and data structures to include contentType, hasAudio, and focused parameters in WebcamStream and related classes. Enhanced logic for creating WebcamStream instances and modified database models to store new fields.
bbb-common-message/src/main/scala/.../WebcamsMsgs.scala Expanded UserBroadcastCamStartedEvtMsgBody and UserBroadcastCamStartMsgBody case classes to include contentType and hasAudio. Introduced new message type SetCamFocusStateReqMsg for managing focus states.
bbb-graphql-actions/src/actions/.../cameraBroadcastStart.ts
.../cameraSetFocused.ts
Modified buildRedisMessage function to include new validation for contentType and hasAudio in cameraBroadcastStart.ts. Introduced a new function in cameraSetFocused.ts to handle focus state changes, validating input parameters and constructing a Redis message.
bbb-graphql-server/bbb_schema.sql Added new tables and views for enhanced meeting management, updated existing functions, and included new logic for tracking user states and permissions related to breakout rooms and shared content.
bbb-graphql-server/metadata/databases/.../public_v_user_camera.yaml Updated v_user_camera table configuration to include new columns in the permissions for the bbb_client role, enhancing data accessibility.
bigbluebutton-html5/imports/ui/components/.../video-provider/container.tsx
.../mutations.ts
Updated sendUserShareWebcam function to include contentType in the mutation call. Modified CameraBroadcastStart mutation to require contentType as a parameter in GraphQL queries.

Possibly related PRs

Suggested reviewers

  • JoVictorNunes
  • Tainan404

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7

🧹 Outside diff range and nitpick comments (13)
bigbluebutton-html5/imports/ui/components/video-provider/mutations.ts (1)

4-4: Consider renaming the mutation for clarity.

Now that this mutation is used for both camera broadcasts and screen sharing, the name CameraBroadcastStart might be misleading. Consider renaming it to something more generic, such as StreamBroadcastStart, to better reflect its expanded functionality.

bbb-graphql-actions/src/actions/cameraSetFocused.ts (1)

13-32: Use lowercase 'string' type and consider adding a comment for clarity.

  1. Replace String with string in the routing object for consistency and to address the static analysis hint:
const routing = {
  meetingId: sessionVariables['x-hasura-meetingid'] as string,
  userId: sessionVariables['x-hasura-userid'] as string
};
  1. Consider adding a brief comment explaining the purpose of the SetCamFocusStateReqMsg event for better code documentation:
// Event to set the focus state of a camera/screen share stream
const eventName = `SetCamFocusStateReqMsg`;

These changes will improve code consistency and clarity.

🧰 Tools
🪛 Biome

[error] 15-15: Don't use 'String' as a type.

Use lowercase primitives for consistency.
Safe fix: Use 'string' instead

(lint/complexity/noBannedTypes)


[error] 16-16: Don't use 'String' as a type.

Use lowercase primitives for consistency.
Safe fix: Use 'string' instead

(lint/complexity/noBannedTypes)

bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_camera.yaml (1)

32-34: LGTM! Consider future renaming for clarity.

The addition of contentType, focused, and hasAudio columns to the select_permissions for the bbb_client role aligns well with the PR objectives. These changes effectively support the new functionality of allowing all users to share screens.

As mentioned in the PR objectives, there's a plan to rename the user_camera collection to user_stream in the future. When implementing this change, consider updating the following:

  1. The custom_name field in this file (currently set to user_camera).
  2. Any references to user_camera in other parts of the codebase.
  3. Documentation and comments referencing this collection.

This renaming will improve clarity and better represent the expanded functionality of this collection.

akka-bbb-apps/src/main/scala/org/bigbluebutton/core/models/Webcams.scala (1)

Line range hint 1-108: Summary of changes and next steps

The changes to the WebcamStream case class successfully implement the new fields required for supporting screen sharing for all users. However, there are a few areas that require attention:

  1. Verify that all usages of WebcamStream in the codebase are updated to accommodate the new fields.
  2. Review and update the methods in the Webcams object and class to ensure they handle the new fields correctly.
  3. Consider updating the isPublisher method to account for the new contentType field when differentiating between camera streams and screen shares.

Please address these points to ensure a smooth integration of the new features.

As mentioned in the PR objectives, there's a plan to rename the user_camera collection to user_stream. Consider whether this renaming should be part of this PR or if it should be done in a separate PR. If it's part of this PR, update the relevant parts of the code (including comments and documentation) to reflect this change.

bigbluebutton-html5/imports/ui/components/video-provider/container.tsx (2)

47-47: Approve addition of contentType, but consider screen sharing implementation

The addition of contentType: 'camera' to the cameraBroadcastStart mutation aligns with the PR objectives. However, there are a few points to consider:

  1. This change doesn't fully implement the "Allow all users to share screens" objective mentioned in the PR summary.
  2. The hardcoded 'camera' value suggests this function is specific to camera broadcasts.

Consider the following suggestions:

  1. Implement a separate function for initiating screen shares, or
  2. Modify sendUserShareWebcam to accept a contentType parameter, making it more flexible:
const sendUserShareMedia = (mediaId: string, contentType: 'camera' | 'screen') => {
  return cameraBroadcastStart({ variables: { cameraId: mediaId, contentType } });
};

This approach would allow the function to handle both camera and screen sharing, aligning better with the PR objectives.


Expand Screen Sharing Implementation in VideoProviderContainer

The current changes introduce the contentType parameter but do not fully integrate screen sharing functionality as intended by the PR objective "Allow all users to share screens". To ensure comprehensive screen sharing capabilities:

  • Add Dedicated Screen Sharing Functions:

    • Implement functions to initiate and manage screen sharing, similar to sendUserShareWebcam.
  • Update VideoProvider Props:

    • Extend the VideoProvider component to accept and handle screen sharing-related props.
  • Integrate with Existing Screen Sharing Logic:

    • Ensure that screen share streams are properly managed and displayed by leveraging the existing screen sharing implementations identified in the codebase.
🔗 Analysis chain

Line range hint 1-180: Consider expanding implementation for screen sharing functionality

While the addition of the contentType parameter is a step towards implementing screen sharing, the current changes don't fully reflect the PR objective of "Allow all users to share screens". Consider the following points:

  1. No new functions or components have been added to handle screen sharing specifically.
  2. The VideoProvider component props haven't been updated to include screen sharing capabilities.

To fully implement screen sharing:

  1. Add a new function to initiate screen sharing, similar to sendUserShareWebcam.
  2. Update the VideoProvider component to include props for screen sharing.
  3. Modify the usersVideo filtering logic to accommodate screen share streams.
  4. Update the VideoProvider render method to display screen shares appropriately.

To ensure consistency across the codebase, let's check for any related changes:

This will help identify if screen sharing functionality is implemented elsewhere or if additional changes are needed.


To accurately search for screen sharing related changes in TypeScript files, let's adjust the file type specification:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for screen sharing related changes
rg --type typescript -i "screen.?shar(e|ing)"

Length of output: 82


Script:

#!/bin/bash
# Search for screen sharing related changes in TypeScript files using the correct type or extension
rg --type ts -i "screen.?shar(e|ing)"

Length of output: 10961

bbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/WebcamsMsgs.scala (2)

21-25: LGTM: Consistent changes to UserBroadcastCamStartMsgBody.

The addition of contentType and hasAudio fields to UserBroadcastCamStartMsgBody is consistent with the earlier changes and aligns with the PR objectives.

Consider grouping related message classes together in the file for better organization. For example, you could move UserBroadcastCamStartMsg and UserBroadcastCamStartMsgBody closer to UserBroadcastCamStartedEvtMsg and UserBroadcastCamStartedEvtMsgBody.


188-194: LGTM: New SetCamFocusStateReqMsg adds useful functionality.

The addition of SetCamFocusStateReqMsg and SetCamFocusStateReqMsgBody introduces the ability to change the video focus state, which aligns with the PR objective of enhancing screen sharing capabilities.

Consider adding a brief comment to explain the purpose of the setBy field in SetCamFocusStateReqMsgBody. This would improve code clarity and maintainability.

akka-bbb-apps/src/main/scala/org/bigbluebutton/core2/testdata/FakeUserGenerator.scala (1)

118-118: Approve changes with suggestions for improvement

The modifications to the WebcamStream instantiation align with the PR objectives by introducing the contentType field and hasAudio parameter. However, I have a few suggestions to enhance the implementation:

  1. Consider making the contentType parameter dynamic instead of hardcoding "camera". This would allow the method to create both camera and screen share streams, aligning better with the PR's goal of enabling screen sharing for all users.

  2. The method name createFakeWebcamStreamFor might be misleading now that it can potentially represent screen shares as well. Consider renaming it to something like createFakeUserStreamFor to better reflect its expanded functionality.

  3. Could you please clarify the purpose of the focused parameter? It's not mentioned in the PR objectives, and its intended use is not immediately clear.

Here's a suggested refactor to address points 1 and 2:

-def createFakeWebcamStreamFor(userId: String, subscribers: Set[String]): WebcamStream = {
+def createFakeUserStreamFor(userId: String, contentType: String, subscribers: Set[String]): WebcamStream = {
   val streamId = RandomStringGenerator.randomAlphanumericString(10)
-  WebcamStream(streamId, userId, "camera", hasAudio = false, focused = false, subscribers)
+  WebcamStream(streamId, userId, contentType, hasAudio = false, focused = false, subscribers)
}

This change allows the method to create both camera and screen share streams, providing more flexibility and better aligning with the PR objectives.

bbb-graphql-server/bbb_schema.sql (3)

640-642: LGTM! Consider adding a check constraint for contentType.

The additions to the user_camera table align well with the PR objectives. The contentType column allows differentiation between camera and screen share streams, hasAudio is relevant for screen sharing with audio, and focused could be used to highlight a specific stream.

Consider adding a check constraint to ensure contentType only accepts valid values:

ALTER TABLE "user_camera" ADD CONSTRAINT "check_content_type" 
CHECK ("contentType" IN ('camera', 'screenshare'));

1531-1531: LGTM! Consider aligning constraints with user_camera table.

The addition of the contentType column to the screenshare table is consistent with the changes made to the user_camera table and supports the PR objectives.

For consistency, consider adding a check constraint similar to the one suggested for the user_camera table:

ALTER TABLE "screenshare" ADD CONSTRAINT "check_content_type" 
CHECK ("contentType" IN ('camera', 'screenshare'));

This will ensure data integrity and consistency across both tables.


Line range hint 1-1647: Overall, the changes effectively support screen sharing for all users.

The modifications to the user_camera and screenshare tables, along with the new index, provide a solid foundation for implementing screen sharing functionality for all users. The changes align well with the PR objectives and maintain consistency across the schema.

Consider the following architectural advice:

  1. Ensure that the application logic properly handles the new contentType field when managing streams.
  2. Update any existing queries or views that rely on the modified tables to take advantage of the new structure.
  3. If not already planned, consider adding appropriate access control mechanisms to manage who can initiate screen sharing based on meeting settings or user roles.
bbb-graphql-actions/src/actions/cameraBroadcastStart.ts (1)

14-20: Consider adding unit tests for contentType validation

To ensure the new validation logic for contentType works as expected, consider adding unit tests that cover both valid and invalid values. This will help prevent future regressions and ensure robust input handling.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 87964ca and 9e8b1ff.

📒 Files selected for processing (11)
  • akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/webcam/UserBroadcastCamStartMsgHdlr.scala (3 hunks)
  • akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/UserCameraDAO.scala (2 hunks)
  • akka-bbb-apps/src/main/scala/org/bigbluebutton/core/models/Webcams.scala (1 hunks)
  • akka-bbb-apps/src/main/scala/org/bigbluebutton/core2/testdata/FakeUserGenerator.scala (1 hunks)
  • bbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/WebcamsMsgs.scala (2 hunks)
  • bbb-graphql-actions/src/actions/cameraBroadcastStart.ts (2 hunks)
  • bbb-graphql-actions/src/actions/cameraSetFocused.ts (1 hunks)
  • bbb-graphql-server/bbb_schema.sql (2 hunks)
  • bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_user_camera.yaml (1 hunks)
  • bigbluebutton-html5/imports/ui/components/video-provider/container.tsx (1 hunks)
  • bigbluebutton-html5/imports/ui/components/video-provider/mutations.ts (1 hunks)
🧰 Additional context used
🪛 Biome
bbb-graphql-actions/src/actions/cameraSetFocused.ts

[error] 15-15: Don't use 'String' as a type.

Use lowercase primitives for consistency.
Safe fix: Use 'string' instead

(lint/complexity/noBannedTypes)


[error] 16-16: Don't use 'String' as a type.

Use lowercase primitives for consistency.
Safe fix: Use 'string' instead

(lint/complexity/noBannedTypes)

🔇 Additional comments (11)
bigbluebutton-html5/imports/ui/components/video-provider/mutations.ts (2)

4-4: LGTM! The changes align with the PR objectives.

The addition of the contentType parameter to the CameraBroadcastStart mutation is correct and aligns with the PR objectives of introducing a new contentType field to differentiate between camera and screen share streams.

Also applies to: 7-7


Line range hint 12-18: Verify if CAMERA_BROADCAST_STOP needs updating.

The CAMERA_BROADCAST_STOP mutation hasn't been updated to include the contentType parameter. Please verify if this is intentional or if it should be updated to match the changes made to CAMERA_BROADCAST_START.

✅ Verification successful

Verification Complete: The CAMERA_BROADCAST_STOP mutation does not require the contentType parameter and is correctly implemented as is. No updates are necessary.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check if CAMERA_BROADCAST_STOP is used differently for camera and screen sharing

# Test: Search for usages of CAMERA_BROADCAST_STOP
rg --type typescript -A 5 'CAMERA_BROADCAST_STOP'

Length of output: 84


Script:

#!/bin/bash
# Description: Search for usages of CAMERA_BROADCAST_STOP in .ts and .tsx files

rg --glob '*.ts' --glob '*.tsx' -A 5 'CAMERA_BROADCAST_STOP'

Length of output: 2774


Script:

#!/bin/bash
# Description: Retrieve the definition of CAMERA_BROADCAST_START in .ts and .tsx files

rg --glob '*.ts' --glob '*.tsx' -A 10 'export const CAMERA_BROADCAST_START'

Length of output: 1158

bbb-graphql-actions/src/actions/cameraSetFocused.ts (1)

1-2: LGTM: Import statements are appropriate.

The import statements correctly bring in the necessary types and validation functions for the buildRedisMessage function.

akka-bbb-apps/src/main/scala/org/bigbluebutton/core/models/Webcams.scala (1)

Line range hint 7-98: Consider updating Webcams object and class methods to handle new WebcamStream fields.

While the WebcamStream case class has been updated with new fields (contentType, hasAudio, and focused), the methods in the Webcams object and class haven't been modified to handle these new fields. Please review the following methods and update them if necessary:

  1. addWebcamStream
  2. removeWebcamStream
  3. addSubscriber
  4. removeSubscriber
  5. isPublisher

Particularly, the isPublisher method might need to consider the contentType field to differentiate between camera streams and screen shares.

To help identify which methods might need updating, please run the following script:

#!/bin/bash
# Description: Analyze Webcams object and class methods

# Search for method definitions in Webcams object and class
echo "Searching for method definitions in Webcams object and class:"
ast-grep --lang scala --pattern $'(object|class) Webcams {
  $$$
  def $METHODNAME($$$) {
    $$$
  }
  $$$
}'

# Search for usages of WebcamStream fields within these methods
echo "Searching for usages of WebcamStream fields within Webcams methods:"
rg --type scala -A 5 'def\s+\w+.*WebcamStream.*\{[\s\S]*?(streamId|userId|contentType|hasAudio|focused|subscribers)'

Please review the output of this script to determine which methods need to be updated to handle the new WebcamStream fields.

bbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/WebcamsMsgs.scala (2)

Line range hint 1-194: Summary: Changes successfully implement PR objectives.

The modifications to UserBroadcastCamStartedEvtMsgBody and UserBroadcastCamStartMsgBody, along with the addition of SetCamFocusStateReqMsg, successfully implement the PR objectives of enabling screen sharing for all users. The new contentType field allows differentiation between camera and screen share streams, while the hasAudio field provides important metadata about the stream's audio capabilities.

The introduction of the focus state functionality enhances control over shared screens, which is particularly useful in a multi-user screen sharing environment.

These changes lay a solid foundation for the planned future renaming of the user_camera collection to user_stream, as mentioned in the PR summary.


10-13: LGTM: Changes align with PR objectives.

The addition of contentType and hasAudio fields to UserBroadcastCamStartedEvtMsgBody is consistent with the PR objectives. These changes support differentiating between camera and screen share streams, and provide information about audio presence in the stream.

To ensure these changes are consistently applied throughout the codebase, let's verify the usage:

✅ Verification successful

****: The contentType and hasAudio fields in UserBroadcastCamStartedEvtMsgBody are consistently used across the codebase, aligning with the PR objectives.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify usage of UserBroadcastCamStartedEvtMsgBody with new fields

# Test: Search for UserBroadcastCamStartedEvtMsgBody usage
rg --type scala -A 5 "UserBroadcastCamStartedEvtMsgBody"

Length of output: 1804

bbb-graphql-server/bbb_schema.sql (1)

647-647: LGTM! Efficient index for querying streams.

The new index on user_camera table is well-designed. It will improve query performance when filtering streams by meeting, content type, and focus status, which aligns with the new table structure and the PR objectives.

akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/UserCameraDAO.scala (3)

17-17: Confirm that the projection mapping includes all fields

The projection in the * method correctly includes the new fields contentType, hasAudio, and focused. This ensures proper mapping between the table columns and the UserCameraDbModel.


21-23: New columns are correctly added to the table schema

The new columns contentType, hasAudio, and focused are properly defined in the table schema, matching the corresponding fields in UserCameraDbModel.


35-37: Verify that WebcamStream includes the new fields

The insert method now accesses webcam.contentType, webcam.hasAudio, and webcam.focused. Please ensure that the WebcamStream class has these fields defined to prevent potential runtime errors.

To confirm, you can run the following script:

✅ Verification successful

Verification Successful

The WebcamStream class includes the fields contentType, hasAudio, and focused as required.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that WebcamStream includes the new fields

# Test: Search for the definition of WebcamStream with the new fields.

ast-grep --lang scala --pattern $'case class WebcamStream(
  streamId: $_,
  userId: $_,
  contentType: $_,
  hasAudio: $_,
  focused: $_,
  $$$
)'

Length of output: 947

akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/webcam/UserBroadcastCamStartMsgHdlr.scala (1)

Line range hint 20-54: Changes are acceptable and align with PR objectives

The additions of contentType and hasAudio parameters in the broadcastEvent method and the WebcamStream constructor are correctly implemented. The logic for startFocused accurately determines whether the stream should be focused based on the content type and user role.

…m/UserBroadcastCamStartMsgHdlr.scala

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@gustavotrott
gustavotrott merged commit 91cf451 into bigbluebutton:v3.0.x-release Oct 1, 2024
@sonarqubecloud

sonarqubecloud Bot commented Oct 1, 2024

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
22.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@github-actions

github-actions Bot commented Oct 1, 2024

Copy link
Copy Markdown

Automated tests Summary

✅ All the CI tests have passed!

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

Successfully merging this pull request may close these issues.

1 participant