Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
Codereview feedback (#198)
Browse files Browse the repository at this point in the history
* code review feedback
  • Loading branch information
ericwolz authored Jun 24, 2019
1 parent dcb5064 commit 9003fb3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function OnClickPlay() {
}
}

// process moof packet
// process moof packet
if (e.data.byteLength > 8) {
let packet = new Uint8Array(payload);

Expand Down Expand Up @@ -97,7 +97,7 @@ function OnClickPlay() {
}
}
}

if (buffer.updating || queue.length > 0) {
queue.push(payload);
} else {
Expand Down Expand Up @@ -197,6 +197,7 @@ video.addEventListener('canplay', () => {
if (promise !== undefined) {
promise.then(_ => {
// Autoplay started!
console.log('autoplay started');
}).catch(error => {
// Autoplay was prevented.
// Show a "Play" button so that user can start playback.
Expand Down

0 comments on commit 9003fb3

Please sign in to comment.