Skip to content

Commit

Permalink
#13
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoprestesmachado committed Nov 1, 2016
1 parent 82fbb8b commit 6acd059
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 22 deletions.
8 changes: 4 additions & 4 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
Expand Down
1 change: 0 additions & 1 deletion .settings/org.eclipse.wst.common.project.facet.core.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="GlassFish 4"/>
<fixed facet="jst.web"/>
<fixed facet="wst.jsdt.web"/>
<fixed facet="java"/>
Expand Down
17 changes: 17 additions & 0 deletions .tern-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"plugins": {
"guess-types": {

},
"outline": {

},
"angular": {

}
},
"libs": [
"ecma5",
"browser"
]
}
6 changes: 3 additions & 3 deletions WebContent/sound-chat/sound-chat.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@

<template>

<audio id="audioConnect" src="sounds/connect2.mp3" preload="auto"></audio>
<audio id="audioSend" src="sounds/send.mp3" preload="auto"></audio>
<audio id="audioTyping" src="sounds/typing4.mp3" preload="auto"></audio>
<audio id="audioConnect" src="sounds/connect2.mp3"></audio>
<audio id="audioSend" src="sounds/send.mp3"></audio>
<audio id="audioTyping" src="sounds/typing4.mp3"></audio>

<paper-dialog id="windowLogin" modal="true" opened="true" autoCloseDisabled>
<paper-input id="inputName" label="{{localizaton.labelInputLogin}}" tabindex="1"></paper-input>
Expand Down
19 changes: 5 additions & 14 deletions WebContent/sound-chat/sound-chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ Polymer({
this.labelMessageStatus = "on";
this.labelTypingStatus = "on";

// Load the sound
this.$.audioConnect.load();
this.$.audioSend.load();
this.$.audioTyping.load();

this.language = this.getBrowserLanguage();
this.localizaton = this.loadLocalization();
},
Expand All @@ -64,20 +69,6 @@ Polymer({
*/
loginAction: function() {
if (this.$.inputName.value != ""){

//var soundContext = new AudioContext();
//this.gainEffect = soundContext.createGain();

//this.srcAudioConnect = soundContext.createMediaElementSource(this.$.audioConnect);
//this.srcAudioSend = soundContext.createMediaElementSource(this.$.audioSend);
//this.srcAudioTyping = soundContext.createMediaElementSource(this.$.audioTyping);

//this.srcAudioConnect.connect(this.gainEffect);
//this.srcAudioSend.connect(this.gainEffect);
//this.srcAudioTyping.connect(this.gainEffect);

//this.gainEffect.connect(soundContext.destination);

this.fire("connect", {name: this.$.inputName.value});
}
},
Expand Down

0 comments on commit 6acd059

Please sign in to comment.