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

Commit

Permalink
make simulcastConfig nulable in TracksAdded
Browse files Browse the repository at this point in the history
  • Loading branch information
karkakol committed Jan 10, 2024
1 parent d536baa commit f4297bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ constructor(

otherEndpoints.forEach {
this.remoteEndpoints[it.id] = it
Timber.tag("AAA").d(it.toString())

for ((trackId, metadata) in it.trackIdToMetadata) {
val context = TrackContext(track = null, endpoint = it, trackId = trackId, metadata = metadata, simulcastConfig = it.tracks[trackId]?.simulcastConfig)
Expand Down Expand Up @@ -353,10 +352,8 @@ constructor(
remoteEndpoints[updatedEndpoint.id] = updatedEndpoint

for ((trackId, metadata) in updatedEndpoint.trackIdToMetadata) {


val context = TrackContext(track = null, endpoint = endpoint, trackId = trackId, metadata = metadata, simulcastConfig = updatedEndpoint.tracks[trackId]?.simulcastConfig)
Timber.tag("AAA").d(context.toString())

this.trackContexts[trackId] = context

this.listener.onTrackAdded(context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ data class OfferData(val type: ReceivableEventType, val data: Data) : Receivable

data class TracksAdded(val type: ReceivableEventType, val data: Data) : ReceivableEvent() {
data class Data(val endpointId: String, val trackIdToMetadata: Map<String, Metadata>, val tracks: Map<String, TrackData>){
data class TrackData(val metadata: Metadata, val simulcastConfig: SimulcastConfig)
data class TrackData(val metadata: Metadata, val simulcastConfig: SimulcastConfig?)
}
}

Expand Down

0 comments on commit f4297bd

Please sign in to comment.