title: Gluon-Mobile application plays no sound
body: <p>I'm working on a YouTube-player and used the JavaFX WebView and YouTube-Embedded_Player for playing the videos.<br>
  This worked fine until I switched to Gluon-Mobile (the relevant code was not changed). Now if I want to play a video, the video is showing but there is no sound (also I tested to play sound files with some mechanisms but there is the same problem).
  The odd thing is: in my sound mixer of Windows, the application is listed and sound is visualized but I can not hear anything; I tested the application on an other computer and there it worked.<br>
  JDK: 1.8 (x64)  </p>
  
  <p>Code:</p>
  
  <pre><code>public class PlayerPresenter extends GluonPresenter&lt;Main&gt; implements Initializable{
     private static final String PLAYER_HTML = Context.class.getResource("videoContainer.html").toString();
     [...]
     @FXML private View view;
     @FXML private WebView webView;
     [...]
     @Override
     public void initialize(URL location, ResourceBundle resources){
        webView.getEngine().load(PLAYER_HTML);
     }
     [...]
     private void play(){
        webView.getEngine().executeScript("playVideo('" + video.id + "', '" + video.type.name() + "')");
        // video is an instance from a class which holds informations about a YouTube video / playlist
     }
     [...]
  }
  </code></pre>
  
  <p>videoConatiner.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8;charset=utf-8"/&gt;
      &lt;script type="text/javascript" src="videoControl.js"&gt;&lt;/script&gt;
      &lt;style&gt;
          html, body{
              height: 100%;
              width: 100%;
              overflow-x: hidden;
              overflow-y: hidden;
              margin: auto;
          }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="player"&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>videoControl.js</p>
  
  <pre><code>var player;
  var id;
  var mode;
  var ready = false;
  var onReady = null;
  
  setUp();
  
  function setUp(){
      this.ready = false;
      var tag = document.createElement('script');
      tag.src = "https://www.youtube.com/iframe_api";
      var firstScriptTag = document.getElementsByTagName('script')[0];
      firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
  }
  function onYouTubeIframeAPIReady() {
      player = new YT.Player('player', {
          height: "100%",
          width: "100%",
          events: {
             'onReady': onPlayerReady,
             'onStateChange': onPlayerStateChange
          },
          playerVars: {
              fs: 0,
              rel: 0
          }
      });
  }
  
  function onPlayerReady(event) {
      this.ready = true;
      if(this.onReady != null) this.onReady();
  }
  function onPlayerStateChange(event) {
      if (event.data == YT.PlayerState.PLAYING) {
          var videoData = player.getVideoData();
          this.id = videoData.video_id;
      }
  }
  
  function playVideo(id, type){
      if(!isReady()){
          this.onReady = function (){
              this.onReady = null;
              playVideo0(id, type);
          }
      }else{
          playVideo0(id, type);
      }
      return null;
  }
  function playVideo0(id, type){
      this.id = id;
      this.mode = type;
  
      switch (mode){
          case "VIDEO":
              player.loadVideoById({
                  videoId:id
              });
              break;
          case "PLAYLIST":
              player.loadPlaylist({
                  list:id,
                  listType:"playlist",
                  index:0
             });
             break;
      }
      return null;
  }
  function stop(){
      player.stopVideo();
  }
  function getVideoId(){
      return this.id;
  }
  function isReady(){
      return this.ready;
  }
  </code></pre>
  
  <p>So my question is: is it a bug in my applicaton or does my computer cause the problem (and how can I solve this).<br>
  Thanks for your help.</p>