Add namespace
This commit is contained in:
parent
34e83ed312
commit
d8f5282892
|
@ -2,8 +2,10 @@ using System.Collections.Generic;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class ConfigureNavBar : MonoBehaviour
|
namespace WebViewStream
|
||||||
{
|
{
|
||||||
|
public class ConfigureNavBar : MonoBehaviour
|
||||||
|
{
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
private EndpointLoader endpointLoader;
|
private EndpointLoader endpointLoader;
|
||||||
|
|
||||||
|
@ -33,4 +35,5 @@ public class ConfigureNavBar : MonoBehaviour
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -2,8 +2,10 @@ using Microsoft.MixedReality.Toolkit;
|
||||||
using Microsoft.MixedReality.Toolkit.SpatialAwareness;
|
using Microsoft.MixedReality.Toolkit.SpatialAwareness;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class ConfigureObservers : MonoBehaviour
|
namespace WebViewStream
|
||||||
{
|
{
|
||||||
|
public class ConfigureObservers : MonoBehaviour
|
||||||
|
{
|
||||||
private IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem;
|
private IMixedRealitySpatialAwarenessSystem spatialAwarenessSystem;
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
|
@ -21,4 +23,5 @@ public class ConfigureObservers : MonoBehaviour
|
||||||
Debug.LogWarning("SAS is not available");
|
Debug.LogWarning("SAS is not available");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -2,8 +2,10 @@ using System.Collections.Generic;
|
||||||
using Microsoft.MixedReality.Toolkit.Utilities.Solvers;
|
using Microsoft.MixedReality.Toolkit.Utilities.Solvers;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class ConfigureOrbital : MonoBehaviour
|
namespace WebViewStream
|
||||||
{
|
{
|
||||||
|
public class ConfigureOrbital : MonoBehaviour
|
||||||
|
{
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
private EndpointLoader endpointLoader;
|
private EndpointLoader endpointLoader;
|
||||||
|
|
||||||
|
@ -83,4 +85,5 @@ public class ConfigureOrbital : MonoBehaviour
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -1,8 +1,10 @@
|
||||||
using Microsoft.MixedReality.Toolkit.Input;
|
using Microsoft.MixedReality.Toolkit.Input;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class ConfigurePointer : MonoBehaviour
|
namespace WebViewStream
|
||||||
{
|
{
|
||||||
|
public class ConfigurePointer : MonoBehaviour
|
||||||
|
{
|
||||||
private bool handRayPointerEnabled = true;
|
private bool handRayPointerEnabled = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -31,4 +33,5 @@ public class ConfigurePointer : MonoBehaviour
|
||||||
{
|
{
|
||||||
PointerUtils.SetHandRayPointerBehavior(PointerBehavior.AlwaysOff);
|
PointerUtils.SetHandRayPointerBehavior(PointerBehavior.AlwaysOff);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -2,8 +2,10 @@ using System;
|
||||||
using Microsoft.MixedReality.Toolkit.UI;
|
using Microsoft.MixedReality.Toolkit.UI;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class DialogHandler : MonoBehaviour
|
namespace WebViewStream
|
||||||
{
|
{
|
||||||
|
public class DialogHandler : MonoBehaviour
|
||||||
|
{
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
private GameObject dialogPrefab;
|
private GameObject dialogPrefab;
|
||||||
|
|
||||||
|
@ -33,4 +35,5 @@ public class DialogHandler : MonoBehaviour
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -5,8 +5,10 @@ using Microsoft.MixedReality.WebView;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Networking;
|
using UnityEngine.Networking;
|
||||||
|
|
||||||
public class EndpointLoader : MonoBehaviour
|
namespace WebViewStream
|
||||||
{
|
{
|
||||||
|
public class EndpointLoader : MonoBehaviour
|
||||||
|
{
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
private GameObject dynamicItem;
|
private GameObject dynamicItem;
|
||||||
|
|
||||||
|
@ -24,9 +26,9 @@ public class EndpointLoader : MonoBehaviour
|
||||||
private bool defaultEndpointLoaded = false;
|
private bool defaultEndpointLoaded = false;
|
||||||
private List<GameObject> instantiatedItems = new List<GameObject>();
|
private List<GameObject> instantiatedItems = new List<GameObject>();
|
||||||
private HashSet<MdnsService> availableServices = new HashSet<MdnsService>();
|
private HashSet<MdnsService> availableServices = new HashSet<MdnsService>();
|
||||||
private float loadTimeout = 10f;
|
|
||||||
private bool areItemsVisible = true;
|
private bool areItemsVisible = true;
|
||||||
|
|
||||||
|
private const float loadTimeout = 20f;
|
||||||
private const string defaultApiUrl = "http://windows.local:5000/api/endpoints";
|
private const string defaultApiUrl = "http://windows.local:5000/api/endpoints";
|
||||||
private const string defaultEndpoint1 = "http://windows.local:8100/mystream/";
|
private const string defaultEndpoint1 = "http://windows.local:8100/mystream/";
|
||||||
private const string defaultEndpoint2 = "http://windows.local:8200/mystream/";
|
private const string defaultEndpoint2 = "http://windows.local:8200/mystream/";
|
||||||
|
@ -342,4 +344,5 @@ public class EndpointLoader : MonoBehaviour
|
||||||
public T[] Items;
|
public T[] Items;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -1,5 +1,7 @@
|
||||||
public class MdnsService
|
namespace WebViewStream
|
||||||
{
|
{
|
||||||
|
public class MdnsService
|
||||||
|
{
|
||||||
public string IpAddress { get; }
|
public string IpAddress { get; }
|
||||||
public int Port { get; }
|
public int Port { get; }
|
||||||
public string Path { get; }
|
public string Path { get; }
|
||||||
|
@ -43,4 +45,5 @@ public class MdnsService
|
||||||
hash = hash * 31 + (Host?.GetHashCode() ?? 0);
|
hash = hash * 31 + (Host?.GetHashCode() ?? 0);
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -1,8 +1,10 @@
|
||||||
using Microsoft.MixedReality.Toolkit.UI;
|
using Microsoft.MixedReality.Toolkit.UI;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class ScrollablePagination : MonoBehaviour
|
namespace WebViewStream
|
||||||
{
|
{
|
||||||
|
public class ScrollablePagination : MonoBehaviour
|
||||||
|
{
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
private ScrollingObjectCollection scrollView;
|
private ScrollingObjectCollection scrollView;
|
||||||
|
|
||||||
|
@ -20,4 +22,5 @@ public class ScrollablePagination : MonoBehaviour
|
||||||
|
|
||||||
scrollView.MoveByTiers(amount);
|
scrollView.MoveByTiers(amount);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -6,8 +6,10 @@ using System.Net.Sockets;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class ServiceDiscovery : MonoBehaviour
|
namespace WebViewStream
|
||||||
{
|
{
|
||||||
|
public class ServiceDiscovery : MonoBehaviour
|
||||||
|
{
|
||||||
private UdpClient udpClient;
|
private UdpClient udpClient;
|
||||||
private Action<MdnsService> action;
|
private Action<MdnsService> action;
|
||||||
|
|
||||||
|
@ -312,7 +314,7 @@ public class ServiceDiscovery : MonoBehaviour
|
||||||
{
|
{
|
||||||
originalOffset = offset + 2;
|
originalOffset = offset + 2;
|
||||||
}
|
}
|
||||||
offset = ((data[offset] & 0x3F) << 8) | data[offset + 1];
|
offset = (data[offset] & 0x3F) << 8 | data[offset + 1];
|
||||||
jumped = true;
|
jumped = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -369,4 +371,5 @@ public class ServiceDiscovery : MonoBehaviour
|
||||||
udpClient?.Close();
|
udpClient?.Close();
|
||||||
udpClient = null;
|
udpClient = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -4,8 +4,10 @@ using Microsoft.MixedReality.Toolkit.Utilities;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class ServicesListPopulator : MonoBehaviour
|
namespace WebViewStream
|
||||||
{
|
{
|
||||||
|
public class ServicesListPopulator : MonoBehaviour
|
||||||
|
{
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
private ScrollingObjectCollection scrollView;
|
private ScrollingObjectCollection scrollView;
|
||||||
|
|
||||||
|
@ -100,4 +102,5 @@ public class ServicesListPopulator : MonoBehaviour
|
||||||
|
|
||||||
gameObject.SetActive(isVisible);
|
gameObject.SetActive(isVisible);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -7,8 +7,10 @@ using UnityEngine.Windows.WebCam;
|
||||||
using Windows.Storage;
|
using Windows.Storage;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public class VideoCaptureHandler : MonoBehaviour
|
namespace WebViewStream
|
||||||
{
|
{
|
||||||
|
public class VideoCaptureHandler : MonoBehaviour
|
||||||
|
{
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
private GameObject videoCaptureButton = null;
|
private GameObject videoCaptureButton = null;
|
||||||
|
|
||||||
|
@ -167,4 +169,5 @@ public class VideoCaptureHandler : MonoBehaviour
|
||||||
videoCapture.Dispose();
|
videoCapture.Dispose();
|
||||||
videoCapture = null;
|
videoCapture = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -3,8 +3,10 @@ using Microsoft.MixedReality.WebView;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class WebViewBrowser : MonoBehaviour
|
namespace WebViewStream
|
||||||
{
|
{
|
||||||
|
public class WebViewBrowser : MonoBehaviour
|
||||||
|
{
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
private TMP_InputField URLField;
|
private TMP_InputField URLField;
|
||||||
|
|
||||||
|
@ -42,4 +44,5 @@ public class WebViewBrowser : MonoBehaviour
|
||||||
Debug.LogWarning("Invalid URL entered.");
|
Debug.LogWarning("Invalid URL entered.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue