Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Handle simulcast set target track encoding #154

Merged
merged 47 commits into from
Jan 25, 2024

Conversation

karkakol
Copy link
Member

Allow for operate on target track encodings, changing them

@@ -25,6 +25,7 @@ prepare_react_native_project!
# }
# }
# ```
pod 'MembraneRTC', :git => 'https://github.com/jellyfish-dev/membrane-webrtc-ios.git', :branch => 'karkakol/add_simulcast_config_to_endpoints'
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is ok, just don't forget to remove it before merging

<string>development</string>
<key>com.apple.security.application-groups</key>
<array/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

you removed group from here and it's probably going to break screencast in the example

@@ -35,6 +35,7 @@ export type Track<MetadataType extends Metadata> = {
vadStatus: VadStatus;
// Encoding that is currently received. Only present for remote tracks.
encoding: TrackEncoding | null;
simulcastConfig: SimulcastConfig | null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

add docs

val videoTracks: HashMap<String, VideoTrack> = hashMapOf(),
val audioTracks: HashMap<String, AudioTrack> = hashMapOf(),
val tracksMetadata: HashMap<String, Metadata> = hashMapOf(),
val tracks: Map<String, TracksAdded.Data.TrackData> = mapOf(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

why are there videoTracks, audioTracks and tracks? o.o are they yet another tracks? ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

I do not know, it was before, i just adjusted this so it can contain simulcast data

Copy link
Collaborator

Choose a reason for hiding this comment

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

why delete Podfile.lock?

Copy link
Collaborator

Choose a reason for hiding this comment

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

why delete this?

Comment on lines 26 to 28
self.videoTracks = videoTracks
self.audioTracks = audioTracks
self.tracksMetadata = tracksMetadata
self.tracks = tracks
Copy link
Collaborator

Choose a reason for hiding this comment

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

still confusing for me why do we have "videoTracks" "audioTracks" and "tracks" in general

Comment on lines 507 to 509
if trackId == localAudioTrack?.trackId() ||
trackId == localVideoTrack?.trackId() ||
trackId == localScreencastTrack?.trackId(){
Copy link
Collaborator

Choose a reason for hiding this comment

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

you're checking if the given track is local, is there a better way to do this than 3 lines long if?

@karkakol karkakol merged commit f12a56a into master Jan 25, 2024
2 checks passed
@karkakol karkakol deleted the handle-simulcast-setTargetTrackEncoding branch January 25, 2024 18:14
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