Skip to content

Commit

Permalink
Merge pull request #101 from youennf/reject-write-on-closed-video-frame
Browse files Browse the repository at this point in the history
Writing a closed video frame should reject
  • Loading branch information
youennf authored Feb 2, 2024
2 parents e527fb2 + d84f0c1 commit 3c2ca96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ is accessed for the first time, it MUST be initialized with the following steps:

The <dfn>writeFrame</dfn> algorithm is given a |generator| and a |frame| as input. It is defined by running the following steps:
1. If |frame| is not a {{VideoFrame}} object, return [=a promise rejected with=] a {{TypeError}}.
1. If the value of |frame|’s [[Detached]] internal slot is true, return [=a promise rejected with=] a {{TypeError}}.
1. If |generator|.`[[isMuted]]` is false, send the media data backing |frame| to all live tracks sourced from |generator|.
1. Run the [=Close VideoFrame=] algorithm with |frame|.
1. Return [=a promise resolved with=] undefined.
Expand Down

0 comments on commit 3c2ca96

Please sign in to comment.