This repository has been archived by the owner on Mar 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 283
Add multi-track support to C# library via transceiver API #221
Merged
djee-ms
merged 26 commits into
microsoft:merge/multi_track
from
djee-ms:merge/multi_track_cs
Mar 19, 2020
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
b984d09
Original C# library change before interop merge
djee-ms afc5e11
Merge audio and video transceivers C# interop
djee-ms b98dc59
Merge TestAppUWP changes
djee-ms d228e21
Delayed RenegotiationNeeded to avoid reentrency
djee-ms c9f929c
Ensure C# LocalVideoTrack tests wait for SDP
djee-ms 42f5546
Parameterize LocalVideoTrackTests on SDP semantic
djee-ms 732ffe0
Add missing XML comments
djee-ms 68935b0
Minor comment fixes for transceivers
djee-ms e56dc91
UserData-based wrapper creation and storage
djee-ms 681b675
Simplify C# tests with base class
djee-ms 6f6a54b
Fix stream ID for transceivers
djee-ms 0ba4332
Remove dead code in RemoteAudioTrackInterop.cs
djee-ms 5347677
Mark DelayedEvent and co. as internal
djee-ms 8e11e8d
Merge AudioTransceiver and VideoTransceiver
djee-ms e6a1e7d
Add missing Transceiver merge for TestAppUWP
djee-ms a0be4a2
Simplify implementation of DelayedEvent
djee-ms f941f80
Remove lists of media tracks in PeerConnection
djee-ms bfc5322
Rely on PC callbacks to clean-up tracks
djee-ms e4451d5
Fix data channel destruction sequence
djee-ms f38b025
Clean-up remote tracks add/remove sync
djee-ms 8bfa91e
Clean-up local tracks add/remove sync
djee-ms f06761a
Fix C# documenting comments after recent changes
djee-ms a63935d
Remove Transceiver.SetDirection()
djee-ms 56ba7cf
Replace operator->() with get()
djee-ms ef88d9e
Make DataChannel non-IDisposable
djee-ms 52510ca
Remove unnecessary call to GC.SuppressFinalize()
djee-ms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
libs/Microsoft.MixedReality.WebRTC/Interop/AudioTrackInterop.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Microsoft.MixedReality.WebRTC.Interop | ||
{ | ||
internal class AudioTrackInterop | ||
{ | ||
#region Native callbacks | ||
|
||
// The callbacks below ideally would use 'in', but that generates an error with .NET Native: | ||
// "error : ILT0021: Could not resolve method 'EETypeRva:0x--------'". | ||
// So instead use 'ref' to ensure the signature is compatible with the C++ const& signature. | ||
|
||
[UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi)] | ||
public delegate void AudioFrameUnmanagedCallback(IntPtr userData, ref AudioFrame frame); | ||
|
||
#endregion | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The call to GC.SuppressFinalize is unnecessary now, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.