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.
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.
This project demonstrate how to use an external audio source with the OpenTok SDK
This project demonstrate how to use an external video source with the OpenTok SDK
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.
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.
In this example the OpenTok iOS SDK was not included as a dependency, you can do it through Swift Package Manager or Cocoapods.
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
.
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
.