Example usage for com.google.gwt.tok.client DeviceManager detectDevice

List of usage examples for com.google.gwt.tok.client DeviceManager detectDevice

Introduction

In this page you can find the example usage for com.google.gwt.tok.client DeviceManager detectDevice.

Prototype

public native void detectDevice() ;

Source Link

Document

Has the OpenTok API detect connected cameras and microphones.

Usage

From source file:com.google.gwt.tok.test.client.model.TokModel.java

private void connect() {
    // Check devices
    DeviceManager deviceManager = tokBox.initDeviceManager(API_KEY);
    deviceManager.addDeviceStatusHandler(this);
    deviceManager.detectDevice();

    // Init session
    session = tokBox.initSession(DEV_SESSION_ID);
    session.addSessionHandler(this);
    session.connect(API_KEY, DEV_TOKEN);
}