This repository has been archived by the owner on Jun 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* OTS-283: docs refactor (#145) * edited for clarity and professionalism * OTS-283: 1-1 sample app reorg * OTS-283: 1-1 sample app reorg * OTS-283: 1-1 sample app reorg * Bump npm version. * Bug fix: unsubscribe streams from the session (#147) * add reconnection logic * Updating one-to-one in Android (#148) * add permission for avoiding crash in iOS 10 * Fixing dirs (#152) * update README.md
- Loading branch information
1 parent
5a969d8
commit e231af4
Showing
200 changed files
with
574 additions
and
965 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,54 @@ | ||
![logo](./tokbox-logo.png) | ||
|
||
# OpenTok One-to-One Communication Sample Apps<br/>Version 1.1 | ||
# OpenTok One-to-One Communication Sample App<br/>Version 1.2 | ||
|
||
This is where you can explore the OpenTok sample apps! These samples include the use of accelerator packs, available from your TokBox representative, which you can use to quickly and easily develop powerful OpenTok applications. | ||
The OpenTok One-to-One Communication Sample App is an open-source solution that enables you to quickly get started in your development efforts to set up interoperable, production-quality audio/video communication between users. | ||
|
||
All of the sample apps are based on the the OpenTok One-to-One Communication Sample App, which is an open-source solution that enables you to quickly get started in your development efforts to set up interoperable, production-quality audio/video communication between users. | ||
As you get started with this OpenTok sample, you will learn the best practices used to develop and manage the audio, video, and camera elements on mobile devices or in the browser. We recommend this is as your first step in delivering [Real Time Communications (WebRTC)](https://tokbox.com/about-webrtc) solutions on the OpenTok platform. | ||
|
||
- **[One-to-One Communication Sample App](./one-to-one-sample-app)**: Begin by exploring this sample app, and learn the best practices used to develop and manage the audio, video, and camera elements on mobile devices or in the browser. | ||
With this sample app, you can: | ||
|
||
- Start and end audio/visual communication between two users. | ||
- Achieve interoperability between web and mobile devices. | ||
- Mute or unmute audio. | ||
- Enable or disable video. | ||
- Control the camera to point in the forward direction or in the reverse direction (selfie mode). | ||
- Customize the UI features and layout. | ||
|
||
You can create mobile apps for Android and iOS, or embed the interactive session between users into any website. | ||
|
||
To get started with your development, visit the following sites: | ||
|
||
- [OpenTok One-to-One Communication Sample App for Android](./android) | ||
- [OpenTok One-to-One Communication Sample App for iOS](./iOS) | ||
- [OpenTok One-to-One Communication Sample App for JavaScript](./js) | ||
|
||
_**NOTE: The audio-video communication logic provided in all OpenTok One-to-One Communication Sample Apps is contained in the [OpenTok Common Accelerator Session Pack](https://github.com/opentok/acc-pack-common).**_ | ||
|
||
|
||
|
||
# Device interoperability with One-to-One communication | ||
|
||
The OpenTok One-to-One Communication Sample App highlights the interoperability of web and mobile devices using the OpenTok platform. Regardless of the supported devices used, the OpenTok platform supports the ability of users to interact with each other and exchange audio and video. Even if the clients are on different platforms, they can both connect, publish, and subscribe to streams in the same session. | ||
|
||
This sample app requires a **Session ID**, **Token**, and **API Key**. In the sample, you can get these values at the [OpenTok Developer Dashboard](https://dashboard.tokbox.com/). For production deployment, you must generate the **Session ID** and **Token** values using one of the [OpenTok Server SDKs](https://tokbox.com/developer/sdks/server/). | ||
|
||
For example, suppose one user is using a web (JS) version of the One-to-One Communication Sample App and another user is using a mobile version (Android or iOS). If they are both using the same **Session ID** and **API Key**, they can subscribe to each other’s audio and video streams, and the user interface rendered on both devices will allow them to interact with each other and take advantage of all the features of the sample app. | ||
|
||
Use the following approach to try this out: | ||
|
||
1. Configure a web and mobile user with the required **Session ID**, **Token**, and **API Key** values, using the same **Session ID** and **API Key** for each. | ||
|
||
2. For mobile users, ensure that `SUBSCRIBE_TO_SELF = false` (Android) and `subscribeToSelf = NO` (iOS) in the configuration. | ||
|
||
3. Start the web and mobile apps. You will observe the following interactions: | ||
|
||
- Both apps connect to the session. | ||
- Both apps start publishing and subscribing to each other’s streams. | ||
|
||
4. Observe what happens for each user when you: | ||
|
||
- Enable or disable local audio/video on the mobile app. | ||
- Enable or disable local audio/video on the web app. | ||
- Enable or disable remote audio/video on the mobile app. | ||
- Enable or disable remote audio/video on the web app. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<resources> | ||
<string name="app_name">OneToOneSample</string> | ||
<string name="network_quality">Network connection is unstable.</string> | ||
<string name="reconnecting">The session is reconnecting</string> | ||
<string name="reconnected">The session reconnected</string> | ||
<string name="permissions_denied_title">Permissions Denied</string> | ||
<string name="permissions_denied">Cannot use this app without requested permission. Please, grant audio and video permissions</string> | ||
<string name="alert_permissions_denied">Without these permissions the app is unable to make call.Are you sure you want to deny these permissions?</string> | ||
</resources> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.