コード例 #1
0
 private VideoCapabilities FromNativeVideoCapabilities(NativeVideoCapabilities capabilities)
 {
     bool[] captureModesSupported = new bool[this.mManager.NumCaptureModes];
     captureModesSupported[0] = capabilities.SupportsCaptureMode(Types.VideoCaptureMode.FILE);
     captureModesSupported[1] = capabilities.SupportsCaptureMode(Types.VideoCaptureMode.STREAM);
     bool[] qualityLevelsSupported = new bool[this.mManager.NumQualityLevels];
     qualityLevelsSupported[0] = capabilities.SupportsQualityLevel(Types.VideoQualityLevel.SD);
     qualityLevelsSupported[1] = capabilities.SupportsQualityLevel(Types.VideoQualityLevel.HD);
     qualityLevelsSupported[2] = capabilities.SupportsQualityLevel(Types.VideoQualityLevel.XHD);
     qualityLevelsSupported[3] = capabilities.SupportsQualityLevel(Types.VideoQualityLevel.FULLHD);
     return(new VideoCapabilities(capabilities.IsCameraSupported(), capabilities.IsMicSupported(), capabilities.IsWriteStorageSupported(), captureModesSupported, qualityLevelsSupported));
 }
 private VideoCapabilities FromNativeVideoCapabilities(NativeVideoCapabilities capabilities)
 {
     bool[] captureModes = new bool[mManager.NumCaptureModes];
     captureModes[(int)VideoCaptureMode.File]   = capabilities.SupportsCaptureMode(Types.VideoCaptureMode.FILE);
     captureModes[(int)VideoCaptureMode.Stream] = capabilities.SupportsCaptureMode(Types.VideoCaptureMode.STREAM);
     bool[] qualityLevels = new bool[mManager.NumQualityLevels];
     qualityLevels[(int)VideoQualityLevel.SD]     = capabilities.SupportsQualityLevel(Types.VideoQualityLevel.SD);
     qualityLevels[(int)VideoQualityLevel.HD]     = capabilities.SupportsQualityLevel(Types.VideoQualityLevel.HD);
     qualityLevels[(int)VideoQualityLevel.XHD]    = capabilities.SupportsQualityLevel(Types.VideoQualityLevel.XHD);
     qualityLevels[(int)VideoQualityLevel.FullHD] = capabilities.SupportsQualityLevel(Types.VideoQualityLevel.FULLHD);
     return(new VideoCapabilities(capabilities.IsCameraSupported(),
                                  capabilities.IsMicSupported(),
                                  capabilities.IsWriteStorageSupported(),
                                  captureModes,
                                  qualityLevels));
 }
コード例 #3
0
 private GooglePlayGames.BasicApi.Video.VideoCapabilities FromNativeVideoCapabilities(NativeVideoCapabilities capabilities)
 {
     bool[] array = new bool[mManager.NumCaptureModes];
     array[0] = capabilities.SupportsCaptureMode(Types.VideoCaptureMode.FILE);
     array[1] = capabilities.SupportsCaptureMode(Types.VideoCaptureMode.STREAM);
     bool[] array2 = new bool[mManager.NumQualityLevels];
     array2[0] = capabilities.SupportsQualityLevel(Types.VideoQualityLevel.SD);
     array2[1] = capabilities.SupportsQualityLevel(Types.VideoQualityLevel.HD);
     array2[2] = capabilities.SupportsQualityLevel(Types.VideoQualityLevel.XHD);
     array2[3] = capabilities.SupportsQualityLevel(Types.VideoQualityLevel.FULLHD);
     return(new GooglePlayGames.BasicApi.Video.VideoCapabilities(capabilities.IsCameraSupported(), capabilities.IsMicSupported(), capabilities.IsWriteStorageSupported(), array, array2));
 }