Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/utils/media/pipeline/TrackEnabler.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,15 @@ export default class TrackEnabler extends TrackSinkSource {
}

_handleInputTrack(trackId, track) {
this._setOutputTrack('default', track)

// Ignore the enabled state of the input and force the desired state by
// the node. The state must be forced before setting the output track to
// ensure that it will have the desired state from the start (and thus
// "_setOutputTrackEnabled" can not be used).
if (track && track.enabled !== this._enabled) {
this._setOutputTrackEnabled('default', this._enabled)
track.enabled = this._enabled
}

this._setOutputTrack('default', track)
}

_handleInputTrackEnabled(trackId, enabled) {
Expand Down
Loading