You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 65c65db
Browse filesBrowse the repository at this point in the historyBrowse files
`snapshot()` returns a copy of the picture shown, for saving a still or for tests.
320
320
321
+
Both views reject nonpositive dimensions and frames above `VideoView.MAX_PIXELS`
322
+
(3840 × 2160 pixels) with `IllegalArgumentException`. Use `new VideoView(maxPixels)`
323
+
to choose a smaller limit, for example `new VideoView(1280 * 720)` for a preview.
324
+
Conversion buffers reserve their configured maximum capacity on first use and stay
325
+
available across resolution changes and `clear()`. They are freed when the view
326
+
becomes unreachable. Swing uses one direct buffer; JavaFX uses up to three.
327
+
Including displayed images and a replacement image during a resize, live pixel
328
+
storage is at most `maxPixels * 16L` bytes for Swing and `maxPixels * 20L` for
329
+
JavaFX (about 127 MiB and 159 MiB at the default limit). Input frames, snapshots,
330
+
toolkit rendering resources, and discarded heap images awaiting collection are
331
+
additional. Set a smaller limit when displaying several videos.
332
+
321
333
For JavaFX, the `webrtc-java-javafx` module has a `VideoView` node in `dev.onvoid.webrtc.client.javafx` that works the same way. It needs Java 11 and the JavaFX your application already uses:
0 commit comments