videokit-ai / videokit

Low-code, cross-platform media SDK for Unity Engine. Register at https://videokit.ai
https://videokit.ai
Apache License 2.0
92 stars 14 forks source link

0.0.19 can't record on iOS and editor, cannot create session token #136

Closed marvpaul closed 2 months ago

marvpaul commented 2 months ago

Suddenly I can't record on iOS and in the editor anymore, even though it worked before with the same build and I have a valid subscription key which I added to Unity.

InvalidOperationException: Cannot create session token because your access key is invalid VideoKit.Internal.VideoKitClient.CreateSessionToken (System.String buildToken) (at ./Library/PackageCache/ai.natml.videokit@0.0.19/Runtime/Internal/VideoKitClient.cs:165) VideoKit.Internal.VideoKitClient.CheckSession () (at ./Library/PackageCache/ai.natml.videokit@0.0.19/Runtime/Internal/VideoKitClient.cs:58) 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) (at ./Library/PackageCache/ai.natml.videokit@0.0.19/Runtime/MediaRecorder.cs:176) VideoKit.VideoKitRecorder.StartRecording () (at ./Library/PackageCache/ai.natml.videokit@0.0.19/Runtime/Components/VideoKitRecorder.cs:481) System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__7_0 (System.Object state) (at <8f2b770c4a1b401a99ba9ed80a5c09b9>:0) UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153) UnityEngine.UnitySynchronizationContext.Exec () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:83) UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)

Also in the web dashboard my current plan looks weird. It says that it cancels this month but it will not (at least I didn't canceled the subscription).

Screenshot 2024-07-15 at 09 37 26
marvpaul commented 2 months ago

Found out that the old website and token is not working anymore. I was able to generate a new token from here: https://www.videokit.ai/

olokobayusuf commented 2 months ago

@marvpaul sorry for the confusion. We've moved VideoKit to its own website, videokit.ai. We'll send out an email announcement this week.