Closed marvpaul closed 5 months ago
@lanreolokoba I tested with your 0.0.18alpha13 again on Android and now I get the following error when I start recording through VideoKitRecorder component :/
05-22 15:56:52.637 16597 16621 E Unity : NullReferenceException: Object reference not set to an instance of an object 05-22 15:56:52.637 16597 16621 E Unity : at VideoKit.Internal.VideoKitClient.CreateSessionToken (System.String buildToken) [0x0017f] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Internal/VideoKitClient.cs:146 05-22 15:56:52.637 16597 16621 E Unity : at VideoKit.Internal.VideoKitClient.CheckSession () [0x00046] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Internal/VideoKitClient.cs:61 05-22 15:56:52.637 16597 16621 E Unity : at VideoKit.MediaRecorder.Create (VideoKit.MediaRecorder+Format format, System.Int32 width, System.Int32 height, System.Single frameRate, System.Int32 sampleRate, System.Int32 channelCount, System.Int32 videoBitRate, System.Int32 keyframeInterval, System.Single compressionQuality, System.Int32 audioBitRate, System.String prefix) [0x0001a] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/MediaRecorder.cs:176 05-22 15:56:52.637 16597 16621 E Unity : at VideoKit.VideoKitRecorder.StartRecording () [0x0024b] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Components/VideoKitRecorder.c 05-22 15:56:53.008 16597 16621 E Unity : NullReferenceException: Object reference not set to an instance of an object 05-22 15:56:53.008 16597 16621 E Unity : at VideoKit.Internal.VideoKitClient.CreateSessionToken (System.String buildToken) [0x0017f] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Internal/VideoKitClient.cs:146 05-22 15:56:53.008 16597 16621 E Unity : at VideoKit.Internal.VideoKitClient.CheckSession () [0x00046] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Internal/VideoKitClient.cs:61 05-22 15:56:53.008 16597 16621 E Unity : at VideoKit.MediaRecorder.Create (VideoKit.MediaRecorder+Format format, System.Int32 width, System.Int32 height, System.Single frameRate, System.Int32 sampleRate, System.Int32 channelCount, System.Int32 videoBitRate, System.Int32 keyframeInterval, System.Single compressionQuality, System.Int32 audioBitRate, System.String prefix) [0x0001a] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/MediaRecorder.cs:176 05-22 15:56:53.008 16597 16621 E Unity : at VideoKit.VideoKitRecorder.StartRecording () [0x0024b] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Components/VideoKitRecorder.c 05-22 15:56:53.295 16597 16621 E Unity : NullReferenceException: Object reference not set to an instance of an object 05-22 15:56:53.295 16597 16621 E Unity : at VideoKit.Internal.VideoKitClient.CreateSessionToken (System.String buildToken) [0x0017f] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Internal/VideoKitClient.cs:146 05-22 15:56:53.295 16597 16621 E Unity : at VideoKit.Internal.VideoKitClient.CheckSession () [0x00046] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Internal/VideoKitClient.cs:61 05-22 15:56:53.295 16597 16621 E Unity : at VideoKit.MediaRecorder.Create (VideoKit.MediaRecorder+Format format, System.Int32 width, System.Int32 height, System.Single frameRate, System.Int32 sampleRate, System.Int32 channelCount, System.Int32 videoBitRate, System.Int32 keyframeInterval, System.Single compressionQuality, System.Int32 audioBitRate, System.String prefix) [0x0001a] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/MediaRecorder.cs:176 05-22 15:56:53.295 16597 16621 E Unity : at VideoKit.VideoKitRecorder.StartRecording () [0x0024b] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Components/VideoKitRecorder.c 05-22 15:56:53.516 16597 16621 E Unity : NullReferenceException: Object reference not set to an instance of an object 05-22 15:56:53.516 16597 16621 E Unity : at VideoKit.Internal.VideoKitClient.CreateSessionToken (System.String buildToken) [0x0017f] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Internal/VideoKitClient.cs:146 05-22 15:56:53.516 16597 16621 E Unity : at VideoKit.Internal.VideoKitClient.CheckSession () [0x00046] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Internal/VideoKitClient.cs:61 05-22 15:56:53.516 16597 16621 E Unity : at VideoKit.MediaRecorder.Create (VideoKit.MediaRecorder+Format format, System.Int32 width, System.Int32 height, System.Single frameRate, System.Int32 sampleRate, System.Int32 channelCount, System.Int32 videoBitRate, System.Int32 keyframeInterval, System.Single compressionQuality, System.Int32 audioBitRate, System.String prefix) [0x0001a] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/MediaRecorder.cs:176 05-22 15:56:53.516 16597 16621 E Unity : at VideoKit.VideoKitRecorder.StartRecording () [0x0024b] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Components/VideoKitRecorder.c 05-22 15:56:53.866 16597 16621 E Unity : NullReferenceException: Object reference not set to an instance of an object 05-22 15:56:53.866 16597 16621 E Unity : at VideoKit.Internal.VideoKitClient.CreateSessionToken (System.String buildToken) [0x0017f] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Internal/VideoKitClient.cs:146 05-22 15:56:53.866 16597 16621 E Unity : at VideoKit.Internal.VideoKitClient.CheckSession () [0x00046] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Internal/VideoKitClient.cs:61 05-22 15:56:53.866 16597 16621 E Unity : at VideoKit.MediaRecorder.Create (VideoKit.MediaRecorder+Format format, System.Int32 width, System.Int32 height, System.Single frameRate, System.Int32 sampleRate, System.Int32 channelCount, System.Int32 videoBitRate, System.Int32 keyframeInterval, System.Single compressionQuality, System.Int32 audioBitRate, System.String prefix) [0x0001a] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/MediaRecorder.cs:176 05-22 15:56:53.866 16597 16621 E Unity : at VideoKit.VideoKitRecorder.StartRecording () [0x0024b] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Components/VideoKitRecorder.c 05-22 15:56:54.180 16597 16621 E Unity : NullReferenceException: Object reference not set to an instance of an object 05-22 15:56:54.180 16597 16621 E Unity : at VideoKit.Internal.VideoKitClient.CreateSessionToken (System.String buildToken) [0x0017f] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Internal/VideoKitClient.cs:146 05-22 15:56:54.180 16597 16621 E Unity : at VideoKit.Internal.VideoKitClient.CheckSession () [0x00046] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Internal/VideoKitClient.cs:61 05-22 15:56:54.180 16597 16621 E Unity : at VideoKit.MediaRecorder.Create (VideoKit.MediaRecorder+Format format, System.Int32 width, System.Int32 height, System.Single frameRate, System.Int32 sampleRate, System.Int32 channelCount, System.Int32 videoBitRate, System.Int32 keyframeInterval, System.Single compressionQuality, System.Int32 audioBitRate, System.String prefix) [0x0001a] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/MediaRecorder.cs:176 05-22 15:56:54.180 16597 16621 E Unity : at VideoKit.VideoKitRecorder.StartRecording () [0x0024b] in ./Library/PackageCache/ai.natml.videokit@0.0.18-alpha.13/Runtime/Components/VideoKitRecorder.c 05-22 15:56:57.641 1245 3584 I ActivityManager: PendingStartActivityUids startActivity to updateOomAdj delay:23392ms, uid:10368
@marvpaul does your app have internet access? Seems like a runtime session token couldn't be created.
Audio recording bugs have been fixed in the latest alpha builds. I'm closing this issue pending the 0.0.18 update that will go out either later today or tomorrow. Feel free to open a new issue if you face any new bugs around audio recording.
When recording video + audio (AudioListener) it dosen't seem to work (0.0.18 alpha 7/8). On Mac editor it has a weird sound in the final recording, even though I play a harmonic meditation music in the scene. On iOS it's even worse, when I click record, I hear a weird sound directly on my phone and the audio which I currently play inside my app will be completely silent.
This is a sample project and when I record within the editor using this sample project, it results in those videos (no error log): https://github.com/marvpaul/videokitbug
https://github.com/natmlx/videokit/assets/10696948/c1719b15-11e4-4a6e-9efb-804bc59fbe5d
On iOS the final recording is without any audio. Also I got this error log