Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Add screensharing field to track metadata and handle it in custom lay… #265

Merged
merged 1 commit into from
May 11, 2023

Conversation

Karolk99
Copy link
Contributor

@Karolk99 Karolk99 commented Apr 22, 2023

No description provided.

@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Merging #265 (267235e) into master (d83f395) will decrease coverage by 0.30%.
The diff coverage is 43.75%.

@@            Coverage Diff             @@
##           master     #265      +/-   ##
==========================================
- Coverage   60.51%   60.21%   -0.30%     
==========================================
  Files          43       43              
  Lines        2031     2041      +10     
==========================================
  Hits         1229     1229              
- Misses        802      812      +10     
Impacted Files Coverage Δ
lib/membrane_rtc_engine/endpoints/hls_endpoint.ex 76.15% <0.00%> (-1.03%) ⬇️
...ne_rtc_engine/endpoints/hls/custom_layout_maker.ex 50.00% <50.00%> (-6.82%) ⬇️

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d83f395...267235e. Read the comment docs.

@@ -469,7 +469,7 @@ defmodule Membrane.RTC.HLSEndpointTest do
pt: 96
},
id: video_track_id,
metadata: %{"mainPresenter" => true}
metadata: %{"mainPresenter" => true, "isScreenSharing" => false}
Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't use metadata in such a way. Metadata are meant to contain arbitrary user data and engine is not supposed to look into this data. Maybe a new field like options on the client side, which contains all possible options is the way to go 🤔

We can merge it as it is but that's something we should address ASAP. Please make an issue

Comment on lines 53 to +54
@impl true
def track_updated(track, stream_format \\ nil, state)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is callback so there is no need to define default values

Suggested change
@impl true
def track_updated(track, stream_format \\ nil, state)

@Karolk99 Karolk99 merged commit ae6c221 into master May 11, 2023
@Karolk99 Karolk99 deleted the handle-screen-sharing-hls branch May 11, 2023 09:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants