-
Notifications
You must be signed in to change notification settings - Fork 95
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
OpenTok.StartArchive with layout != LayoutType.Custom and StyleSheet == "" #148
Comments
Hi @ababutski, I can't reproduce this on my end - are you sure that's the state of the layout object when you're calling |
Hi @ababutski - this does point out some missing test cases in the PR I just merged so I opened a new one with them. Your case is: https://github.com/opentok/Opentok-.NET-SDK/pull/149/files#diff-2e1774c18226f056e66f367a2d4587f1R718 - and it is passing. Let me know if you have anything that can help me track down what the issue is. Thanks, |
Hi @slorello89. I looked at tests. They are run with mocked HttpClient, so requests are not sent to real server. And this is a key difference. In this case, HttpRequest body, that is sent to TokBox server, will look like this: {"sessionId":"some session id","name":"","hasVideo":true,"hasAudio":true,"outputMode":"composed","resolution":"1280x720","layout":{"type":"verticalPresentation", Second example: var layoutType = new ArchiveLayout Hope this helps |
Thanks @ababutski - this has been very helpful - I see exactly what you mean - have updated the PR To manage this :) Ironically I did have a test case to test this scenario - but of course it was only testing with a null string. |
OpenTok.StartArchive() method call with
var layout = new ArchiveLayout
{
Type = LayoutType.verticalPresentation,
StyleSheet = ""
};
throws an exception "Only custom type may have stylesheet". But it looks like this case has to be covered in here
Opentok-.NET-SDK/OpenTok/OpenTok.cs
Line 286 in 06211aa
The text was updated successfully, but these errors were encountered: