public override GpsPosition GetGPSPosition()
    {
        if (_providerStatus != ProviderStatus.Ready)
        {
            Debug.Log("Sample GPsProvider is not yet ready");
            return(null);
        }

        GpsPosition gpsPosition = new GpsPosition
        {
            Latitude  = _sampleManage.GetDataAtCurrentIndex().latitude,
            Longitude = _sampleManage.GetDataAtCurrentIndex().longitude,
            Height    = _sampleManage.GetDataAtCurrentIndex().height
        };

        return(gpsPosition);
    }
    public override Quaternion GetOrientation()
    {
        if (_providerStatus != ProviderStatus.Ready)
        {
            return(Quaternion.identity);
        }

        return(OrientationUtils.WorldToUnity(_sampleManager.GetDataAtCurrentIndex().quaternion));
    }
    public override int GetWidth()
    {
        if (_providerStatus != ProviderStatus.Ready)
        {
            Debug.LogError(" Sample Video Provider is not yet ready");
            return(0);
        }

        // First attempt to read from Sample Data
        int width = (int)_sampleManager.GetDataAtCurrentIndex().sceneWidth;

        // If no width data available in sample, then read from texture
        if (width == 0)
        {
            return(Frames[_sampleManager.Index].width);
        }

        return(width);
    }