Unable to run sample tokbox C# BasicVideoChat program

0

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:

Fatal error in: ../../src/media/engine/webrtcvoiceengine.cc, line 253

last system error: 0

Check failed: adm()

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)

tokbox
asked on Stack Overflow Sep 3, 2019 by michael • edited Sep 3, 2019 by michael

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0