Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playback recording on Edge throws Exception #81

Closed
NeoCoderMatrix86 opened this issue Feb 3, 2021 · 2 comments · Fixed by #89
Closed

Playback recording on Edge throws Exception #81

NeoCoderMatrix86 opened this issue Feb 3, 2021 · 2 comments · Fixed by #89
Labels
bug Something isn't working waiting for external Waiting for externals (like bugfix from 3rd party, etc.)
Milestone

Comments

@NeoCoderMatrix86
Copy link
Owner

Describe the bug
Playing the recording of a live record on edge throws the following exception:

System.Text.Json.JsonException: The JSON value could not be converted to System.Int32. Path: $ | LineNumber: 0 | BytePositionInLine: 4.
 ---> System.InvalidOperationException: Cannot get the value of a token type 'Null' as a number.
   at System.Text.Json.Utf8JsonReader.TryGetInt32(Int32& value)
   at System.Text.Json.Utf8JsonReader.GetInt32()
   at System.Text.Json.Serialization.Converters.Int32Converter.Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)
   at System.Text.Json.Serialization.JsonConverter`1[[System.Int32, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, Int32& value)
   at System.Text.Json.Serialization.JsonConverter`1[[System.Int32, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   --- End of inner exception stack trace ---
   at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, Utf8JsonReader& reader, Exception ex)
   at System.Text.Json.Serialization.JsonConverter`1[[System.Int32, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.Serialization.JsonConverter`1[[System.Int32, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ReadCoreAsObject(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadCore[Object](JsonConverter jsonConverter, Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
   at System.Text.Json.JsonSerializer.ReadValueCore[Object](JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& state)
   at System.Text.Json.JsonSerializer.Deserialize(Utf8JsonReader& reader, Type returnType, JsonSerializerOptions options)
   at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.ParseArguments(JSRuntime jsRuntime, String methodIdentifier, String arguments, Type[] parameterTypes)
   at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.InvokeSynchronously(JSRuntime jsRuntime, DotNetInvocationInfo& callInfo, IDotNetObjectReference objectReference, String argsJson)
   at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.BeginInvokeDotNet(JSRuntime jsRuntime, DotNetInvocationInfo invocationInfo, String argsJson)
@NeoCoderMatrix86 NeoCoderMatrix86 added the bug Something isn't working label Feb 3, 2021
@NeoCoderMatrix86
Copy link
Owner Author

Seems to be a Bug of the underlying framework (Howler): StefH/Howler.Blazor#10

@NeoCoderMatrix86 NeoCoderMatrix86 added this to the 2.0.1 milestone Feb 3, 2021
@NeoCoderMatrix86 NeoCoderMatrix86 added the waiting for external Waiting for externals (like bugfix from 3rd party, etc.) label Feb 3, 2021
@NeoCoderMatrix86 NeoCoderMatrix86 modified the milestones: 2.0.1, 2.1 Feb 3, 2021
@NeoCoderMatrix86
Copy link
Owner Author

Seems like the recording has no duration on edge and chrome. On firefox the duration is set and the playback can be used. Also the file can be downloaded and imported on edge and chrome for playback. Maybe we need to search for getting the duration set correctly?!

@NeoCoderMatrix86 NeoCoderMatrix86 modified the milestones: 2.1, 2.0.2 Feb 3, 2021
NeoCoderMatrix86 added a commit that referenced this issue Feb 3, 2021
…n-Edge-throws-Exception

Added external library to calculate duration
NeoCoderMatrix86 added a commit that referenced this issue Feb 3, 2021
…n-Edge-throws-Exception

Added external library to calculate duration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for external Waiting for externals (like bugfix from 3rd party, etc.)
Projects
Development

Successfully merging a pull request may close this issue.

1 participant