Skip to content

Commit

Permalink
Allow streaming resolutions > 720p on HL2
Browse files Browse the repository at this point in the history
Temporarily disable RGB callbacks
  • Loading branch information
fibann committed Dec 19, 2019
1 parent 5650982 commit 2ae2408
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libs/Microsoft.MixedReality.WebRTC/LocalVideoTrack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ private void RegisterInteropCallbacks()
_selfHandle = Utils.MakeWrapperRef(this);
LocalVideoTrackInterop.LocalVideoTrack_RegisterI420AFrameCallback(
_nativeHandle, _interopCallbackArgs.I420AFrameCallback, _selfHandle);
LocalVideoTrackInterop.LocalVideoTrack_RegisterArgb32FrameCallback(
_nativeHandle, _interopCallbackArgs.Argb32FrameCallback, _selfHandle);
//LocalVideoTrackInterop.LocalVideoTrack_RegisterArgb32FrameCallback(
// _nativeHandle, _interopCallbackArgs.Argb32FrameCallback, _selfHandle);
}

/// <inheritdoc/>
Expand Down
4 changes: 2 additions & 2 deletions libs/Microsoft.MixedReality.WebRTC/PeerConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -850,8 +850,8 @@ public Task InitializeAsync(PeerConnectionConfiguration config = null, Cancellat
_nativePeerhandle, _peerCallbackArgs.DataChannelRemovedCallback, self);
PeerConnectionInterop.PeerConnection_RegisterI420ARemoteVideoFrameCallback(
_nativePeerhandle, _peerCallbackArgs.I420ARemoteVideoFrameCallback, self);
PeerConnectionInterop.PeerConnection_RegisterArgb32RemoteVideoFrameCallback(
_nativePeerhandle, _peerCallbackArgs.Argb32RemoteVideoFrameCallback, self);
//PeerConnectionInterop.PeerConnection_RegisterArgb32RemoteVideoFrameCallback(
// _nativePeerhandle, _peerCallbackArgs.Argb32RemoteVideoFrameCallback, self);
PeerConnectionInterop.PeerConnection_RegisterLocalAudioFrameCallback(
_nativePeerhandle, _peerCallbackArgs.LocalAudioFrameCallback, self);
PeerConnectionInterop.PeerConnection_RegisterRemoteAudioFrameCallback(
Expand Down

0 comments on commit 2ae2408

Please sign in to comment.