Closed marvpaul closed 8 months ago
@marvpaul are you running this on the Windows editor by any chance?
@marvpaul are you running this on the Windows editor by any chance?
No it's Mac os, unity 2022.3.10f1
I also created a simple test project where I was able to reproduce the issue. I just added VideoKit to an empty project and started recording when you click on the white square in the scene. Then the error occurs. https://github.com/marvpaul/videokit
Repro'ed, fix coming!
Fixed in 0.0.18-alpha.6. Also @marvpaul your access key is public in the repro you shared. I strongly recommend generating a new access key, and deleting that one to prevent leakage.
To omit the VideoKit settings from git tracking, add the following to your .gitignore
:
# VideoKit
ProjectSettings/VideoKit.asset
@lanreolokoba thank you, I can confirm it's solved! I also deleted my linked repository
Sounds good.
I tried to record with videokit and I got the following exception:
InvalidOperationException: Operation is not valid due to the current state of the object. VideoKit.Internal.VideoKit.Throw (VideoKit.Internal.VideoKit+Status status) (at ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.4/Runtime/Internal/VideoKit.cs:692) VideoKit.MediaRecorder.get_sampleRate () (at ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.4/Runtime/MediaRecorder.cs:126) VideoKit.MediaRecorder.Append (VideoKit.AudioBuffer audioBuffer) (at ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.4/Runtime/MediaRecorder.cs:157) VideoKit.Sources.SceneAudioSource+<>c__DisplayClass11_0.<.ctor>b__0 (System.Single[] data, System.Int32 channels) (at ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.4/Runtime/Sources/SceneAudioSource.cs:121) VideoKit.Sources.SceneAudioSource+AudioSourceAttachment.OnAudioFilterRead (System.Single[] data, System.Int32 channels) (at ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.4/Runtime/Sources/SceneAudioSource.cs:131)
My start recording mehtod:
I used the following settings:
Do you have any idea what could cause this problem?