I am trying to prototype a project for a client, who needs live streaming. Tokbox looks perfect but I'm unable to get the sample applications to work, it fails on
public const string API_KEY = "<my api key>";
public const string SESSION_ID = "<my sesssion id>";
public const string TOKEN = "<my token>";
Session Session;
Publisher Publisher;
public MainWindow()
{
InitializeComponent();
Publisher = new Publisher(Context.Instance, renderer: PublisherVideo); //FAILS HERE
Session = new Session(Context.Instance, API_KEY, SESSION_ID);
Session.Connected += Session_Connected;
Session.Disconnected += Session_Disconnected;
Session.Error += Session_Error;
Session.StreamReceived += Session_StreamReceived;
Session.Connect(TOKEN);
}
the error message outputted is:
The program '[19612] BasicVideoChat.exe' has exited with code -1073740791 (0xc0000409).
I've made sure I have C++ Visual C++ Redistributable for Visual Studio installed.
I have tried on VS 2017 and VS2019
I'm am using the latest nugget tokbox and just trying to run this github project:
https://github.com/opentok/opentok-windows-sdk-samples
no changed made to app besides adding in the api key, session i and token. (i have tried running in both x86 and x64)
User contributions licensed under CC BY-SA 3.0