Example usage for com.google.gwt.tok.client.event DeviceStatusEvent getMicrophones

List of usage examples for com.google.gwt.tok.client.event DeviceStatusEvent getMicrophones

Introduction

In this page you can find the example usage for com.google.gwt.tok.client.event DeviceStatusEvent getMicrophones.

Prototype

public List<Microphone> getMicrophones() 

Source Link

Document

A list of Microphone objects corresponding to available microphones.

Usage

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

@Override
public void onDeviceStatus(DeviceStatusEvent event) {
    for (Camera camera : event.getCameras()) {
        this.log("Camera detected : " + camera.getName() + "(" + camera.getStatus() + ")");
    }/*from  w w w .j av a 2s. c o m*/
    for (Microphone microphone : event.getMicrophones()) {
        this.log("Microphone detected : " + microphone.getName() + "(status:" + microphone.getStatus() + ")");
    }
    Camera selectedCamera = event.getSelectedCamera();
    Microphone selectedMicrophone = event.getSelectedMicrophone();
    this.log("Microphone selected : " + selectedMicrophone.getName() + "(status:"
            + selectedMicrophone.getStatus() + ")");
    this.log("Camera selected : " + selectedCamera.getName() + "(status:" + selectedCamera.getStatus() + ")");
}