anchor.diff:  <portlet:resourceURL var="saveQuestionURL" id="saveQuestion" />
   
   <script>
  - 	
  +
    	var player;
  - 
  +
        document.addEventListener('DOMContentLoaded', function() {
  -    	 
  -    	 
  +
  +
       	var answerQuestion = true;
     	 	var plays = 0;
     	 	var finished = false;
   
  -  	 	
  +
     	 	if('${isVimeoIframe}' == 'true' && '${controls}' == ''){
     	 		console.log("SIN CONTROLES");
     	 		$('#playervideo').mediaelementplayer({
     	     	    features: ['playpause','volume'], //Adding the feature 'markers' enables this plugin
     	     		pluginPath: '/liferaylms-portlet/js/mediaelement/',
     	     	    success: function (media) {
  +					media.setMuted(false);
     	     	    	player = media;
  +
     	     	    }
  -  	     	}); 
  +  	     	});
     	 	}else{
     	 		console.log("CON CONTROLES");
     	 		player = new MediaElement("playervideo", {
     		 		pluginPath: '/liferaylms-portlet/js/mediaelement/',
     		        shimScriptAccess: 'always',
     		        success: function (media, node) {
  -  		        	
  +
     		        }
  -  		    });	
  +  		    });
     	 	}
  -	 	
  -	
  +
  +
   	    var currentTime = parseInt('${currentTime}');
   		if(currentTime > 0){
   			player.setCurrentTime(currentTime);
   		}
  -		
  +
   		player.addEventListener('play', function () {
   			if(!$('#<portlet:namespace/>videoQuestionFeedback').hasClass("aui-helper-hidden")){
   				$('#<portlet:namespace/>videoQuestionFeedback').addClass("aui-helper-hidden")
  -			}	
  +			}
   			$('#<portlet:namespace/>videoQuestionFeedback').html("");
   			finished = false;
   			if(plays > 0){
   				if($('[id^=<portlet:namespace/>question_div_]')!=null){
  -					$('[id^=<portlet:namespace/>question_div_]').addClass("aui-helper-hidden");	
  +					$('[id^=<portlet:namespace/>question_div_]').addClass("aui-helper-hidden");
   				}
   			}
   			plays++;
  -			
  -			
  -			
  -		});	
  -		
  +
  +
  +
  +		});
  +
   		if('${!hasPermissionAccessCourseFinished}' == 'true'){
  -				
  +
   			player.addEventListener('ended',function() {
  -				
  +
   				var duration = player.getDuration();
  -				
  -				<portlet:namespace/>finishTry(100,duration,plays);	
  -	
  +
  +				<portlet:namespace/>finishTry(100,duration,plays);
  +
   				// Process Success - A LearningActivityResult returned
  -				finished = true;	
  +				finished = true;
   				setTimeout(function(){ Liferay.Portlet.refresh('#p_p_id_activityNavigator_WAR_liferaylmsportlet_'); }, 1000);
   				setTimeout(function(){Liferay.Portlet.refresh('#p_p_id_lmsactivitieslist_WAR_liferaylmsportlet_'); }, 1000);
   				player.setControls(true);
  
positive.code: 				}
  			});
  		}
  			
  		if('${!hasPermissionAccessCourseFinished}' == 'true'){
  			
  			var unloadEvent = function (e) {
  				//console.log("unload event vimeo");  
  				if(!finished){
  					var duration = player.getDuration();
  					currentTime = player.getCurrentTime();
  						
  					var isDefaultScore = '${isDefaultScore}' == 'true';
  					var positionToSave = parseFloat('${videoPosition}');
  					var oldScore = parseInt('${oldScore}');
  					if (currentTime > positionToSave)
  						positionToSave = currentTime;
  					var score = 100;														
  					if (!isDefaultScore) score = Math.round((currentTime/duration)*100);
  					//debugger;
  					if(score>100){
  					score=100;
  					}
  					<portlet:namespace/>finishTry(score, positionToSave,plays);													
  				  
  				}
  			};
  			
  			window.addEventListener("beforeunload", unloadEvent);
  		}
  	});
       
   	function <portlet:namespace/>answerQuestion(questionId){
   		//Cogemos la respuesta
   		//console.log("guardamos respuesta");
  
negative.code:  				url: '${saveQuestionURL}',
   			    cache:false,
   				data: $("#<portlet:namespace />questionform_" + questionId).serialize(),
   				success: function(data){
   					if(data){
   						if(data.correct){
   							$('#<portlet:namespace />question_div_'+questionId).remove();
   							if(data.questionFeedback){
   								$('#<portlet:namespace />feedback_'+questionId).removeClass("aui-helper-hidden");
   	 							$('#<portlet:namespace />feedback_content_'+questionId).html(data.feedback);
   							}else{
   								$('#<portlet:namespace />feedback_'+questionId).remove();
   								player.play();
   							}
  
  
   						}
   					}
   				},
   				error: function(){
  
   				}
   			});
   		}else{
   			//Mostramos los mensajes que sean
   		}
   	}
  
  
   	function <portlet:namespace/>continueQuestion(questionId){
   		//Cogemos la respuesta
   		$('#<portlet:namespace />feedback_'+questionId).remove();
  