Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewcarroll committed May 6, 2016
1 parent 2f9d805 commit edc8d3e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion player/demo.js
Expand Up @@ -85,7 +85,7 @@ function update(node){
break;
case "url":
var url = player.getVideoUrl();
document.getElementById("url").innerHTML = "<a href=\""+url+"\">"+url+"</a>";
document.getElementById("url").innerHTML = "<a href=\""+url+"\" target=\"_blank\">"+url+"</a>";
break;
case "embedCode":
var embedCode = player.getVideoEmbedCode();
Expand Down
2 changes: 1 addition & 1 deletion player/event_listeners.html
Expand Up @@ -51,7 +51,7 @@
<td>Current Player Rate:</td>
<td>
<!-- div for displaying rate status for a method you will implement -->
<span id="currentState"></span>
<span id="currentRate"></span>
</td>
</tr>
</table>
Expand Down
2 changes: 2 additions & 0 deletions player/event_listeners.js
Expand Up @@ -52,5 +52,7 @@ function onPlaybackRateChange(event){
// Implment this function to display the rate of the player on the page
var currentRate;

// You code goes here

document.getElementById('currentRate').innerText = currentRate;
}
3 changes: 1 addition & 2 deletions player/player_control.js
Expand Up @@ -20,8 +20,7 @@ function onPlayerReady (){
setTimeout(pauseVideo, 4000);
setTimeout(loadNewVideo, 6000);
setTimeout(stopVideo, 8500);
// Uncommend the following line after implmenting getContent
//setInterval(getContent, 1000);
setInterval(getContent, 1000);
};

function pauseVideo(){
Expand Down

0 comments on commit edc8d3e

Please sign in to comment.