private void applyMuteState(){
  if (hasAudio()) {
    long now=System.currentTimeMillis();
    long lastUnmutedVideo=preferences.getLong(KEY_LAST_UNMUTED_VIDEO,0);
    long diff=(now - lastUnmutedVideo) / 1000;
    setMuted(diff > 10 * 60);
  }
 else {
    videoPlayer.setMuted(true);
  }
}

private void applyMuteState ( ) { if ( hasAudio ( ) ) { long now = System . currentTimeMillis ( ) ; long lastUnmutedVideo = preferences . getLong ( KEY_LAST_UNMUTED_VIDEO , 0 ) ; long diff = ( now - lastUnmutedVideo ) / 1000 ; setMuted ( diff > 10 * 60 ) ; } else { videoPlayer . setMuted ( true ) ; } }
mute if not " unmuted " within the last 10 minutes .
