Skip to content

Commit 9d8f58e

Browse files
authored
Expose LocalVideoTrack.source as a public field (#72)
1 parent 9198fcc commit 9d8f58e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Runtime/Scripts/Track.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ public static LocalAudioTrack CreateAudioTrack(string name, RtcAudioSource sourc
126126

127127
public sealed class LocalVideoTrack : Track, ILocalTrack, IVideoTrack
128128
{
129-
RtcVideoSource _source;
129+
public RtcVideoSource source;
130130

131-
IRtcSource ILocalTrack.source { get => _source; }
131+
IRtcSource ILocalTrack.source => source;
132132

133133
internal LocalVideoTrack(OwnedTrack track, Room room, RtcVideoSource source) : base(track, room, room?.LocalParticipant) {
134-
_source = source;
134+
this.source = source;
135135
}
136136

137137
public static LocalVideoTrack CreateVideoTrack(string name, RtcVideoSource source, Room room)

0 commit comments

Comments
 (0)