private bool liveStreaming = false; // Set false by force because not fully implemented

        void Start()
        {
            if (string.IsNullOrEmpty(outputPath))
            {
                outputPath = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "Gallery");
                // create the directory
                if (!Directory.Exists(outputPath))
                {
                    Directory.CreateDirectory(outputPath);
                }
            }

            surroundCapture    = GetComponent <SurroundCapture>();
            nonSurroundCapture = GetComponent <NonSurroundCapture>();

            if (doSurroundCapture)
            {
                surroundCapture.enabled         = true;
                nonSurroundCapture.enabled      = false;
                surroundCapture.isLiveStreaming = liveStreaming;
            }
            else
            {
                nonSurroundCapture.enabled         = true;
                surroundCapture.enabled            = false;
                nonSurroundCapture.isLiveStreaming = liveStreaming;
            }
        }
        void Awake()
        {
#if (UNITY_ANDROID && !UNITY_EDITOR) || UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
            Destroy(gameObject);
            return;
#endif
            if (singleton != null)
            {
                DestroyImmediate(gameObject);
                return;
            }
            singleton = this;
        }
Example #3
0
        void Awake()
        {
#if (UNITY_ANDROID && !UNITY_EDITOR) || UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
            Destroy(gameObject);
            return;
#endif
            if (singleton != null)
            {
                DestroyImmediate(gameObject);
                return;
            }
            singleton = this;

            SetOutputSize(captureWidth, captureHeight);
        }
Example #4
0
        void Start()
        {
            if (string.IsNullOrEmpty(outputPath))
            {
                outputPath = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "Gallery");
                // create the directory
                if (!Directory.Exists(outputPath))
                {
                    Directory.CreateDirectory(outputPath);
                }
            }

            surroundCapture    = GetComponent <SurroundCapture>();
            nonSurroundCapture = GetComponent <NonSurroundCapture>();

            doSurroundCapture   = doSurroundCaptureOption;
            liveStreaming       = liveStreamingOption;
            liveStreamServerUrl = streamKeyOption;
        }
Example #5
0
        void Start()
        {
            if (string.IsNullOrEmpty(outputPath))
            {
                outputPath = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "Gallery");
                // create the directory
                if (!Directory.Exists(outputPath))
                {
                    Directory.CreateDirectory(outputPath);
                }
            }

            surroundCapture    = GetComponent <SurroundCapture>();
            nonSurroundCapture = GetComponent <NonSurroundCapture>();

            surroundCapture.enabled            = doSurroundCapture;
            nonSurroundCapture.enabled         = !doSurroundCapture;
            surroundCapture.isLiveStreaming    = doSurroundCapture && liveStreaming;
            nonSurroundCapture.isLiveStreaming = !doSurroundCapture && liveStreaming;

            myCaptureOption = doSurroundCapture;
        }