Skip to content

Commit

Permalink
refactor: add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
WofWca committed Jun 20, 2024
1 parent 29ee939 commit b8a727a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ async function setUpNewVideoDisplay(containerElement, mimeType) {
// video.srcObject = mediaSource;
// TODO revokeObjectURL
video.src = URL.createObjectURL(mediaSource);
// TODO this fails if the user hasn't interacted with the page.
// That is they won't see the video play.
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play#usage_notes
video.play();

await new Promise(r => {
Expand Down

0 comments on commit b8a727a

Please sign in to comment.