https://github.com/opentok/opentok-macos-sdk-samples
https://github.com/opentok/opentok-macos-sdk-samples
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/opentok/opentok-macos-sdk-samples
- Owner: opentok
- License: mit
- Created: 2022-11-16T22:59:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-19T21:04:27.000Z (9 months ago)
- Last Synced: 2024-08-20T00:53:07.098Z (9 months ago)
- Language: Objective-C
- Size: 15.2 MB
- Stars: 2
- Watchers: 10
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenTok MacOS SDK Samples
[](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`.