-
Notifications
You must be signed in to change notification settings - Fork 17
hotfix: update Livekit to latest version/Fix black screen streaming in Mac #7276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
7d6788a
42531e4
d3b1b61
3ac5a81
3772def
757334a
7fe2f18
4bfd425
f4ff0ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| using DCL.Diagnostics; | ||
| using LiveKit; | ||
| using LiveKit.Rooms.Tracks; | ||
| using LiveKit.RtcSources.Video; | ||
|
|
||
| namespace DCL.Multiplayer.Connections.Rooms.Logs | ||
| { | ||
| public class LogLocalTracks: ILocalTracks | ||
| { | ||
| private const string PREFIX = "LogLocalTracks:"; | ||
|
|
||
| private readonly ILocalTracks origin; | ||
|
|
||
| public LogLocalTracks(ILocalTracks origin) | ||
| { | ||
| this.origin = origin; | ||
| } | ||
|
|
||
| public ITrack CreateAudioTrack(string name, IRtcAudioSource source) | ||
| { | ||
| ReportHub | ||
| .WithReport(ReportCategory.LIVEKIT) | ||
| .Log($"{PREFIX} {nameof(CreateAudioTrack)} called name:{name} sourceType:{source.GetType().Name}"); | ||
|
|
||
| ITrack track = origin.CreateAudioTrack(name, source); | ||
|
|
||
| ReportHub | ||
| .WithReport(ReportCategory.LIVEKIT) | ||
| .Log($"{PREFIX} {nameof(CreateAudioTrack)} result trackType:{track.GetType().Name}"); | ||
|
|
||
| return track; | ||
| } | ||
|
|
||
| public ITrack CreateVideoTrack(string name, RtcVideoSource source) | ||
| { | ||
| ReportHub | ||
| .WithReport(ReportCategory.LIVEKIT) | ||
| .Log($"{PREFIX} {nameof(CreateVideoTrack)} called name:{name} sourceType:{source.GetType().Name}"); | ||
|
|
||
| ITrack track = origin.CreateVideoTrack(name, source); | ||
|
|
||
| ReportHub | ||
| .WithReport(ReportCategory.LIVEKIT) | ||
| .Log($"{PREFIX} {nameof(CreateVideoTrack)} result trackType:{track.GetType().Name}"); | ||
|
|
||
| return track; | ||
| } | ||
| } | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| using LiveKit; | ||
| using LiveKit.Internal; | ||
| using LiveKit.Proto; | ||
| using LiveKit.Rooms; | ||
| using LiveKit.Rooms.Participants; | ||
| using LiveKit.Rooms.Tracks; | ||
| using LiveKit.RtcSources.Video; | ||
| using System; | ||
|
|
||
| namespace DCL.Multiplayer.Connections.Rooms.Nulls | ||
| { | ||
| public class NullLocalTracks : ILocalTracks | ||
| { | ||
| public static readonly NullLocalTracks INSTANCE = new (); | ||
|
|
||
| public ITrack CreateAudioTrack(string name, IRtcAudioSource source) => | ||
| NullTrack.INSTANCE; | ||
|
|
||
| public ITrack CreateVideoTrack(string name, RtcVideoSource source) => | ||
| NullTrack.INSTANCE; | ||
|
|
||
| private class NullTrack : ITrack | ||
| { | ||
| public static readonly NullTrack INSTANCE = new (); | ||
|
|
||
| public Origin Origin => Origin.Local; | ||
| public string Sid => "NullTrack: Sid null"; | ||
| public string Name => "NullTrack: Name null"; | ||
| public TrackKind Kind => TrackKind.KindUnknown; | ||
| public StreamState StreamState => StreamState.StateUnknown; | ||
| public bool Muted => true; | ||
| public WeakReference<IRoom> Room => NullRoom.WEAK_INSTANCE; | ||
| public WeakReference<Participant> Participant => NullParticipantsHub.WEAK_NULL_PARTICIPANT; | ||
| public FfiHandle? Handle => null; | ||
|
|
||
| public void UpdateMuted(bool muted) { } | ||
| } | ||
| } | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.