Coder Social home page Coder Social logo

calmyao / opentok-windows-sdk-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opentok/opentok-windows-sdk-samples

0.0 1.0 0.0 70 KB

Sample applications illustrating best practices using OpenTok Windows SDK

License: MIT License

C# 100.00%

opentok-windows-sdk-samples's Introduction

OpenTok Windows SDK Samples

This repository provides sample applications for you to better understand the features of the OpenTok Windows SDK. Feel free to copy and modify the source code herein for your own projects. Please consider sharing your modifications with us, especially if they might benefit other developers using the OpenTok Windows SDK. See the License for more information.

Quick Start

  1. Get values for your OpenTok API key, session ID, and token.

    You can obtain these values from your TokBox account. Make sure that the token isn't expired.

    For testing, you can use a session ID and token generated at your TokBox account page. However, the final application should obtain these values using the OpenTok server SDKs. For more information, see the OpenTok developer guides on session creation and token creation.

  2. In Visual Studio, open the .sln solution file for the sample app you are using (CustomVideoRenderer/CustomVideoRenderer.sln, ScreenSharing/ScreenSharing.sln, or SimpleMultiparty/SimpleMultiparty.sln).

  3. Open the MainWindow.xaml.cs file for the app and edit the values for API_KEY, SESSION_ID, and TOKEN to match API key, session ID, and token data you obtained in step 1.

NuGet automatically installs the OpenTok SDK when you build the project.

Test on non-development machines: OpenTok SDK includes native code that depends on Visual C++ Redistributable for Visual Studio 2015. It's probably already installed on your development machine but not on test machines. Also, you may need 32-bit version even if all your code is AnyCPU running on a 64-bit OS.

What's Inside

BasicVideoChat

This app shows how to implement a simple video call.

SimpleMultiparty

This app shows how to implement a video call application with several clients.

CustomVideoRenderer

This app shows how to use a custom video renderer. Most applications work fine with the default renderer (VideoRenderer) included with the OpenTok Windows SDK. However, if you need to add custom effects, this sample application provides an understanding of how to implement a custom video renderer.

ScreenSharing

This app shows how to publish a screen-sharing stream to a session. This implements a custom video capturer to capturer to capture the screen as the video source for an OpenTok publisher.

FrameMetadata

This app shows how to add metadata to video frames in a published stream and how to read the metadata in a subscriber to the stream. It also shows to to use a very simple custom video capturer and custom video renderer.

opentok-windows-sdk-samples's People

Contributors

jeffswartz avatar fidergo-stephane-gourichon avatar nitrillo avatar msach22 avatar robjperez avatar jaoo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.