Skip to content

Commit

Permalink
revert unnecessary changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Jun 25, 2023
1 parent 201bbc1 commit 0230717
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ constructor(
viewRenderer.setEnableHardwareScaler(false /* enabled */)
}

suspend private fun emitWhenConnected(event: RoomEvent) {
private suspend fun emitWhenConnected(event: RoomEvent) {
if (state == State.CONNECTED) {
eventBus.postEvent(event)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import livekit.LivekitRtc
import org.webrtc.MediaStreamTrack
import org.webrtc.RTCStatsCollectorCallback
import org.webrtc.RTCStatsReport
import org.webrtc.RtpReceiver
import org.webrtc.RtpSender

abstract class Track(
name: String,
Expand All @@ -27,8 +25,6 @@ abstract class Track(
internal set
var sid: String? = null
internal set


var streamState: StreamState by flowDelegate(StreamState.PAUSED) { newValue, oldValue ->
if (newValue != oldValue) {
eventBus.tryPostEvent(TrackEvent.StreamStateChanged(this, newValue))
Expand Down

0 comments on commit 0230717

Please sign in to comment.