Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit edc8d3e

Browse files
author
matthewcarroll
committed
Bug fixes
1 parent 2f9d805 commit edc8d3e

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

player/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function update(node){
8585
break;
8686
case "url":
8787
var url = player.getVideoUrl();
88-
document.getElementById("url").innerHTML = "<a href=\""+url+"\">"+url+"</a>";
88+
document.getElementById("url").innerHTML = "<a href=\""+url+"\" target=\"_blank\">"+url+"</a>";
8989
break;
9090
case "embedCode":
9191
var embedCode = player.getVideoEmbedCode();

player/event_listeners.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<td>Current Player Rate:</td>
5252
<td>
5353
<!-- div for displaying rate status for a method you will implement -->
54-
<span id="currentState"></span>
54+
<span id="currentRate"></span>
5555
</td>
5656
</tr>
5757
</table>

player/event_listeners.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,7 @@ function onPlaybackRateChange(event){
5252
// Implment this function to display the rate of the player on the page
5353
var currentRate;
5454

55+
// You code goes here
56+
5557
document.getElementById('currentRate').innerText = currentRate;
5658
}

player/player_control.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ function onPlayerReady (){
2020
setTimeout(pauseVideo, 4000);
2121
setTimeout(loadNewVideo, 6000);
2222
setTimeout(stopVideo, 8500);
23-
// Uncommend the following line after implmenting getContent
24-
//setInterval(getContent, 1000);
23+
setInterval(getContent, 1000);
2524
};
2625

2726
function pauseVideo(){

0 commit comments

Comments
 (0)