An open API service indexing awesome lists of open source software.

https://github.com/opentok/opentok-macos-sdk-samples


https://github.com/opentok/opentok-macos-sdk-samples

Last synced: 18 days ago
JSON representation

Awesome Lists containing this project

README

        

# OpenTok MacOS SDK Samples

Tokbox is now known as Vonage

[![Build Status](https://travis-ci.org/opentok/opentok-macos-sdk-samples.svg?branch=main)](https://travis-ci.org/opentok/opentok-macos-sdk-samples)

This repository is meant to provide some examples for you to better understand
the features of the OpenTok MacOS SDK.

The sample applications here can be used either in regular desktop environments
or in any tiny single-board computer such as the Raspberry Pi.

The sample applications are meant to be used with the latest version of the
OpenTok MacOS 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 MacOS SDK. See the License for more
information.

## What's inside

### [Basic Video Chat](Basic-Video-Chat)

This sample application shows you how to connect to an OpenTok session, publish
a stream, and subscribe to a stream. It implements a simple video call
application with several clients. If you're just getting started with OpenTok,
this is where you should start.

### [Custom Audio Driver](Custom-Audio-Driver)

This project demonstrate how to use an external audio source with the OpenTok SDK

### [Custom Video Capturer](Custom-Video-Capturer)

This project demonstrate how to use an external video source with the OpenTok SDK

### [Screen Sharing](Screen-Sharing)

This project demostrates how to use a custom video capturer
to publish a stream that uses ScreenCaptureKit (instead of a camera)
to capture the display of the machine as the video source.

### [Basic Video Chat with Metal](Basic-Video-Chat-Metal)

This sample application shows you how to connect to an OpenTok session, publish
a stream, and subscribe to a stream. It implements a simple video call
application with two clients. If you're just getting started with OpenTok,
this is where you should start.
Notice the video renderer class is written with Metal framework.

## Adding the OpenTok library

In this example the OpenTok iOS SDK was not included as a dependency,
you can do it through Swift Package Manager or Cocoapods.

### Swift Package Manager
To add a package dependency to your Xcode project, you should select
*File* > *Swift Packages* > *Add Package Dependency* and enter the repository URL:
`https://github.com/Vonage/client-sdk-video-macos.git`.

### Cocoapods
To use CocoaPods to add the OpenTok library and its dependencies into this sample app
simply open Terminal, navigate to the root directory of the project and run: `pod install`.