kakone / GoogleCast

Implementation of the Google Cast protocol (.NET Standard 2.0 library)
GNU General Public License v3.0
141 stars 22 forks source link

Serialization.InvalidDataContractException for GenericMediaMetadata #15

Closed cncb-gh closed 5 years ago

cncb-gh commented 5 years ago

When I try to call LoadAsync() to play an audio file and try to pass in GenericMediaMetadata the Serialization.InvalidDataContractException is thrown with the message: No set method for property 'MetadataType' in type 'GoogleCast.Models.Media.GenericMediaMetadata'.

The top of the stack trace is: at System.Runtime.Serialization.Json.JsonFormatWriterInterpreter.InternalSerialize(

kakone commented 5 years ago

Fixed in version 1.6.5.