Example usage for com.google.gwt.tok.client PublishProperties setMicrophoneGain

List of usage examples for com.google.gwt.tok.client PublishProperties setMicrophoneGain

Introduction

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

Prototype

public final native void setMicrophoneGain(Integer microphoneGain) ;

Source Link

Document

The desired microphone gain, between 0 and 100, when the Publisher is first published (default: 50).

Usage

From source file:com.google.gwt.tok.test.client.widget.PublisherPanel.java

@UiHandler("publishButton")
protected void onPublishClicked(ClickEvent event) {
    if (publishing) {
        EVENT_BUS.fireEvent(new UnpublishEvent());
    } else {//from   w ww  . jav a  2  s .  c  o  m
        PublishProperties publishProperties = PublishProperties.get();
        publishProperties.setHeight(Integer.valueOf(height.getValue()));
        publishProperties.setWidth(Integer.valueOf(width.getValue()));
        publishProperties.setMicrophoneGain(Integer.valueOf(microphoneGain.getValue()));
        publishProperties.setMirror(mirror.getValue());
        publishProperties.setPublishAudio(publishAudio.getValue());
        publishProperties.setPublishVideo(publishVideo.getValue());

        EVENT_BUS.fireEvent(new PublishEvent(publisherDiv.getId(), publishProperties));
    }
}