Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(547)

Side by Side Diff: webrtc/examples/unityplugin/README

Issue 2993273002: Add Android Camera To Unity Plugin (Closed)
Patch Set: Presubmit Fix Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/examples/unityplugin/DEPS ('k') | webrtc/examples/unityplugin/classreferenceholder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 This directory contains an example Unity native plugin for Windows OS. 1 This directory contains an example Unity native plugin for Windows OS and Androi d.
2
2 The APIs use Platform Invoke (P/Invoke) technology as required by Unity native p lugin. 3 The APIs use Platform Invoke (P/Invoke) technology as required by Unity native p lugin.
3 This plugin dll can also be used by Windows C# applications other than Unity. 4 This plugin dll can also be used by Windows C# applications other than Unity.
4 5
6 For detailed build instruction on Android, see ANDROID_INSTRUCTION
7
5 An example of wrapping native plugin into a C# managed class in Unity is given a s following: 8 An example of wrapping native plugin into a C# managed class in Unity is given a s following:
6 9
7 using System; 10 using System;
8 using System.Collections.Generic; 11 using System.Collections.Generic;
9 using System.Runtime.InteropServices; 12 using System.Runtime.InteropServices;
10 13
11 namespace SimplePeerConnectionM { 14 namespace SimplePeerConnectionM {
12 // A class for ice candidate. 15 // A class for ice candidate.
13 public class IceCandidate { 16 public class IceCandidate {
14 public IceCandidate(string candidate, int sdpMlineIndex, string sdpMid) { 17 public IceCandidate(string candidate, int sdpMlineIndex, string sdpMid) {
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 300
298 private LocalSdpReadytoSendInternalDelegate localSdpReadytoSendDelegate = nu ll; 301 private LocalSdpReadytoSendInternalDelegate localSdpReadytoSendDelegate = nu ll;
299 public event LocalSdpReadytoSendDelegate OnLocalSdpReadytoSend; 302 public event LocalSdpReadytoSendDelegate OnLocalSdpReadytoSend;
300 303
301 private IceCandiateReadytoSendInternalDelegate iceCandiateReadytoSendDelegat e = null; 304 private IceCandiateReadytoSendInternalDelegate iceCandiateReadytoSendDelegat e = null;
302 public event IceCandiateReadytoSendDelegate OnIceCandiateReadytoSend; 305 public event IceCandiateReadytoSendDelegate OnIceCandiateReadytoSend;
303 306
304 private int mPeerConnectionId = -1; 307 private int mPeerConnectionId = -1;
305 } 308 }
306 } 309 }
OLDNEW
« no previous file with comments | « webrtc/examples/unityplugin/DEPS ('k') | webrtc/examples/unityplugin/classreferenceholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698