diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..ddb6ff8 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "visualstudiotoolsforunity.vstuc" + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..da60e25 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,10 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Attach to Unity", + "type": "vstuc", + "request": "attach" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..f5979e9 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,62 @@ +{ + "settings": { + "dotnet.defaultSolution": "LivekitUnitySampleApp.sln" + }, + "files.exclude": { + "**/.DS_Store": true, + "**/.git": true, + "**/.vs": true, + "**/.gitmodules": true, + "**/.vsconfig": true, + "**/*.booproj": true, + "**/*.pidb": true, + "**/*.suo": true, + "**/*.user": true, + "**/*.userprefs": true, + "**/*.unityproj": true, + "**/*.dll": true, + "**/*.exe": true, + "**/*.pdf": true, + "**/*.mid": true, + "**/*.midi": true, + "**/*.wav": true, + "**/*.gif": true, + "**/*.ico": true, + "**/*.jpg": true, + "**/*.jpeg": true, + "**/*.png": true, + "**/*.psd": true, + "**/*.tga": true, + "**/*.tif": true, + "**/*.tiff": true, + "**/*.3ds": true, + "**/*.3DS": true, + "**/*.fbx": true, + "**/*.FBX": true, + "**/*.lxo": true, + "**/*.LXO": true, + "**/*.ma": true, + "**/*.MA": true, + "**/*.obj": true, + "**/*.OBJ": true, + "**/*.asset": true, + "**/*.cubemap": true, + "**/*.flare": true, + "**/*.mat": true, + "**/*.meta": true, + "**/*.prefab": true, + "**/*.unity": true, + "build/": true, + "Build/": true, + "Library/": true, + "library/": true, + "obj/": true, + "Obj/": true, + "Logs/": true, + "logs/": true, + "ProjectSettings/": true, + "UserSettings/": true, + "temp/": true, + "Temp/": true + } +} \ No newline at end of file diff --git a/.gitignore b/LivekitUnitySampleApp/.gitignore similarity index 100% rename from .gitignore rename to LivekitUnitySampleApp/.gitignore diff --git a/LivekitUnitySampleApp/Assets/LivekitSamples.cs b/LivekitUnitySampleApp/Assets/LivekitSamples.cs index ab934d6..7bd38f2 100644 --- a/LivekitUnitySampleApp/Assets/LivekitSamples.cs +++ b/LivekitUnitySampleApp/Assets/LivekitSamples.cs @@ -59,24 +59,24 @@ public void OnClickPublishVideo() Debug.Log("OnClickPublishVideo clicked!"); } - public void onClickPublishData() + public void OnClickPublishData() { publishData(); Debug.Log("onClickPublishData clicked!"); } - public void onClickMakeCall() + public void OnClickMakeCall() { Debug.Log("onClickMakeCall clicked!"); if(webCamTexture == null) { StartCoroutine(OpenCamera()); } - + StartCoroutine(MakeCall()); } - public void onClickHangup() + public void OnClickHangup() { Debug.Log("onClickHangup clicked!"); room.Disconnect(); @@ -102,7 +102,7 @@ IEnumerator MakeCall() UpdateStatusText("Connected"); } } - + } void CleanUp() @@ -115,7 +115,7 @@ void CleanUp() } _audioObjects.Clear(); - + foreach (var item in _rtcAudioSources) { item.Stop(); @@ -173,7 +173,7 @@ void AddVideoTrack(RemoteVideoTrack videoTrack) image.texture = tex; } }; - + _videoObjects[videoTrack.Sid] = imgObject; imgObject.transform.SetParent(layoutGroup.gameObject.transform, false); @@ -254,7 +254,7 @@ public IEnumerator publishMicrophone() { Debug.Log("Track published!"); } - + _rtcAudioSources.Add(rtcSource); yield return rtcSource.PrepareAndStart(); } diff --git a/LivekitUnitySampleApp/Assets/Scenes/SampleScene.unity b/LivekitUnitySampleApp/Assets/Scenes/SampleScene.unity index 79472fe..1959e12 100644 --- a/LivekitUnitySampleApp/Assets/Scenes/SampleScene.unity +++ b/LivekitUnitySampleApp/Assets/Scenes/SampleScene.unity @@ -207,7 +207,7 @@ MonoBehaviour: m_Calls: - m_Target: {fileID: 1478206704} m_TargetAssemblyTypeName: LivekitSamples, Assembly-CSharp - m_MethodName: onClickPublishData + m_MethodName: OnClickPublishData m_Mode: 1 m_Arguments: m_ObjectArgument: {fileID: 0} @@ -1737,7 +1737,7 @@ MonoBehaviour: m_Calls: - m_Target: {fileID: 1478206704} m_TargetAssemblyTypeName: LivekitSamples, Assembly-CSharp - m_MethodName: onClickHangup + m_MethodName: OnClickHangup m_Mode: 1 m_Arguments: m_ObjectArgument: {fileID: 0} @@ -1870,7 +1870,7 @@ MonoBehaviour: m_Calls: - m_Target: {fileID: 1478206704} m_TargetAssemblyTypeName: LivekitSamples, Assembly-CSharp - m_MethodName: onClickMakeCall + m_MethodName: OnClickMakeCall m_Mode: 1 m_Arguments: m_ObjectArgument: {fileID: 0} diff --git a/SDK.code-workspace b/SDK.code-workspace new file mode 100644 index 0000000..8801212 --- /dev/null +++ b/SDK.code-workspace @@ -0,0 +1,10 @@ +{ + "folders": [ + { + "path": "../client-sdk-unity" + }, + { + "path": "./LivekitUnitySampleApp" + } + ] +} \ No newline at end of file