Skip to content

Commit

Permalink
Expose LocalVideoTrack.source as a public field (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
holofermes authored Dec 24, 2024
1 parent 9198fcc commit 9d8f58e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Runtime/Scripts/Track.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ public static LocalAudioTrack CreateAudioTrack(string name, RtcAudioSource sourc

public sealed class LocalVideoTrack : Track, ILocalTrack, IVideoTrack
{
RtcVideoSource _source;
public RtcVideoSource source;

IRtcSource ILocalTrack.source { get => _source; }
IRtcSource ILocalTrack.source => source;

internal LocalVideoTrack(OwnedTrack track, Room room, RtcVideoSource source) : base(track, room, room?.LocalParticipant) {
_source = source;
this.source = source;
}

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

0 comments on commit 9d8f58e

Please sign in to comment.