In the all samples I see usage of Twilio VIdeo only on node.js as a web server.
Is it possible to run it on IIS and the both, server and client part written on C#?
In the all samples I see usage of Twilio VIdeo only on node.js as a web server.
Is it possible to run it on IIS and the both, server and client part written on C#?
Twilio evangelist here.
This page has code for generating Access Tokens in C#:
using System;
using Twilio.Jwt.AccessToken;
class Example
{
static void Main(string[] args)
{
// Substitute your Twilio AccountSid and ApiKey details
var AccountSid = "accountSid";
var ApiKeySid = "apiKeySid;
var ApiKeySecret = "apiKeySecret";
var identity = "example-user";
// Create a video grant for the token
var grant = new VideoGrant();
grant.Room = "cool room";
var grants = new HashSet { grant };
// Create an Access Token generator
var token = new Token(accountSid, apiKey, apiSecret, identity: identity, grants: grants);
// Serialize the token as a JWT
Console.WriteLine(token.ToJwt());
}
}
There is also a Github repo with a full token server sample in C#.
Hope that helps.