Skip to content

ArdyTokbox/learning-opentok-android

 
 

Repository files navigation

Learning OpenTok Android Sample App

This sample app shows how to accomplish basic tasks using the OpenTok Android SDK. It connects the user with another client so that they can share an OpenTok audio-video chat session. The app uses the OpenTok Android SDK to implement the following:

  • Connect to an OpenTok session
  • Publish an audio-video stream to the session
  • Subscribe to another client's audio-video stream
  • Record the session, stop the recording, and view the recording
  • Implement text chat
  • Use a simple custom audio driver for audio input and output
  • Use a custom video renderer
  • Use a simple custom video capturer
  • Use a custom video capturer that uses the device camera
  • Publish a screen-sharing stream
  • Use video capturer to obtain still screen captures of the camera used by a publisher

For a full description and walk-through of this code, go to https://tokbox.com/developer/tutorials/android/.

The code for this sample is found the following git branches:

  • basics.step-1 -- This branch shows you how to set up your project to use the OpenTok Android SDK.

  • basics.step-4 -- This branch shows you how to connect to the OpenTok session.

  • basics.step-5 -- This branch shows you how publish a stream to the OpenTok session.

  • basics.step-6 -- This branch shows you how to subscribe to a stream on the OpenTok session.

  • archiving -- This branch shows you how to record the session.

  • signaling.step-1 -- This branch shows you how to use the OpenTok signaling API.

  • signaling.step-2 -- This branch shows you how to implement text chat using the OpenTok signaling API.

  • signaling.step-3 -- This branch adds some UI improvements for the text chat feature.

  • audio-driver.step-1 -- This branch shows you how to implement a custom audio driver that uses a simple audio capturer.

  • audio-driver.step-2 -- This branch shows you how to implement a custom audio driver that uses a simple audio renderer.

  • basic-renderer -- This branch shows the basics of implementing a custom video renderer for an OpenTok subscriber.

  • basic-capturer -- This branch shows the basics of implementing a custom video capturer for an OpenTok publisher.

  • camera-capturer -- This branch shows you how to use a custom video capturer using the device camera as the video source.

  • screensharing -- This branch shows you how to use the device's screen (instead of a camera) as the video source for a published stream.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 70.0%
  • Java 30.0%