StreamingClientLibrary
StreamingClientLibrary copied to clipboard
YouTube ChatClient Connect() silently never returns
When trying to call Connect() on a YouTube chat client, the call fails silently and never returns a boolean.
In the logs, I can see two exceptions:
Exception thrown: 'System.ArgumentNullException' in System.Private.CoreLib.dll
Exception thrown: 'System.ArgumentNullException' in System.Private.CoreLib.dll
Which may or may not be related.
This is using the latest Nuget release.
Correction, it doesn't fail silently, I had just screwed up. However, it does throw an exception if you are not currently streaming and you call Connect() on a ChatClient.
Looking further, it seems it is doing this (for me) even when a stream is running. An exception is being thrown and only logged, and is failing with the following GoogleApiException:
'Incompatible parameters specified in the request: mine, broadcastStatus'
I haven't had a chance to sit down and test out the YouTube live broadcast chat functionality, so a lot of it's built of what documentation is posted up on YouTube's site. See if the above changes solve the problem for you.