Skip to content

Commit

Permalink
FF132Relnote: HTMLVideoElement.requestVideoFrameCallback + expr feat
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee committed Oct 4, 2024
1 parent 870c915 commit 6ff260e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 40 deletions.
40 changes: 0 additions & 40 deletions files/en-us/mozilla/firefox/experimental_features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1252,46 +1252,6 @@ The [(?ims-ims:...)](/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Mo

### Graphics: Canvas, WebGL, and WebGPU

#### Request video frame callbacks

The {{domxref('HTMLVideoElement/requestVideoFrameCallback','requestVideoFrameCallback()')}} method of the {{domxref('HTMLVideoElement')}} interface registers a callback function that runs when a new video frame is sent to the compositor. Developers can use this to perform operations on each video frame, enabling more efficient painting to a canvas, video analysis, synchronization with external audio sources, and so on. The method returns a callback handle that can be passed to {{domxref('HTMLVideoElement.cancelVideoFrameCallback()')}} in order to cancel the outstanding callback request. ([Firefox bug 1800882](https://bugzil.la/1800882)).

<table>
<thead>
<tr>
<th>Release channel</th>
<th>Version added</th>
<th>Enabled by default?</th>
</tr>
</thead>
<tbody>
<tr>
<th>Nightly</th>
<td>130</td>
<td>Yes</td>
</tr>
<tr>
<th>Developer Edition</th>
<td>130</td>
<td>No</td>
</tr>
<tr>
<th>Beta</th>
<td>130</td>
<td>No</td>
</tr>
<tr>
<th>Release</th>
<td>130</td>
<td>No</td>
</tr>
<tr>
<th>Preference name</th>
<td colspan="2"><code>media.rvfc.enabled</code></td>
</tr>
</tbody>
</table>

#### Hit regions

Whether the mouse coordinates are within a particular area on the canvas is a common problem to solve. The hit region API allows you to define an area of your canvas and provides another possibility to expose interactive content on a canvas to accessibility tools.
Expand Down
2 changes: 2 additions & 0 deletions files/en-us/mozilla/firefox/releases/132/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ This article provides information about the changes in Firefox 132 that affect d

#### Media, WebRTC, and Web Audio

- The {{domxref('HTMLVideoElement/requestVideoFrameCallback','requestVideoFrameCallback()')}} and {{domxref('HTMLVideoElement/cancelVideoFrameCallback','cancelVideoFrameCallback()')}} methods of the {{domxref('HTMLVideoElement')}} interface are now supported. The `requestVideoFrameCallback()` registers a callback function that runs when a new video frame is sent to the compositor. Developers can use this function to perform operations on each video frame, enabling more efficient painting to a canvas, video analysis, synchronization with external audio sources, and so on. The method returns a callback handle that can be passed to `cancelVideoFrameCallback()` in order to cancel the outstanding callback request. ([Firefox bug 1919367](https://bugzil.la/1919367), [Firefox bug 1800882](https://bugzil.la/1800882)).

#### Removals

### WebAssembly
Expand Down

0 comments on commit 6ff260e

Please sign in to comment.