Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tabCapture/receiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ window.addEventListener('load', function() {
// Start video play-out of the captured audio/video MediaStream once the page
// has loaded.
var player = document.getElementById('player');
player.addEventListener('canplay', function() {
player.addEventListener('playing', function() {
this.volume = 0.75;
this.muted = false;
this.play();
});
player.setAttribute('controls', '1');
player.src = URL.createObjectURL(window.currentStream);
//player.src = URL.createObjectURL(window.currentStream);
player.srcObject = window.currentStream;

// Add onended event listeners. This detects when tab capture was shut down by
// closing the tab being captured.
Expand Down