@gjsify/video 0.4.30 → 0.4.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import"./_virtual/_rolldown/runtime.js";import e from"gi://Gst?version=1.0";import{DOMException as t}from"@gjsify/dom-exception";let n=!1;function ensureGstInit(){n||=(e.init(null),!0)}function ensurePaintableSinkAvailable(){ensureGstInit(),e.ElementFactory.find(`gtk4paintablesink`)||throwNotSupported(`GStreamer element "gtk4paintablesink" not available. Install gst-plugins-rs:
1
+ import"./_virtual/_rolldown/runtime.js";import e from"gi://Gst?version=1.0";import{DOMException as t}from"@gjsify/dom-exception";let n=!1;function ensureGstInit(){n||=(e.init(),!0)}function ensurePaintableSinkAvailable(){ensureGstInit(),e.ElementFactory.find(`gtk4paintablesink`)||throwNotSupported(`GStreamer element "gtk4paintablesink" not available. Install gst-plugins-rs:
2
2
  Fedora: dnf install gstreamer1-plugin-gtk4
3
3
  Ubuntu/Debian: apt install gstreamer1.0-gtk4
4
4
  Verify with: gst-inspect-1.0 gtk4paintablesink`)}function throwNotSupported(e){throw new t(e,`NotSupportedError`)}export{e as Gst,ensureGstInit,ensurePaintableSinkAvailable};
@@ -28,7 +28,7 @@ export interface MediaStreamPipelineResult {
28
28
  * The tee element allows other consumers (e.g. RTCPeerConnection.addTrack)
29
29
  * to request additional branches without moving the source across pipelines.
30
30
  */
31
- export declare function buildMediaStreamPipeline(gstSource: any, gstPipeline: any): MediaStreamPipelineResult;
31
+ export declare function buildMediaStreamPipeline(gstSource: Gst.Element, gstPipeline: Gst.Pipeline | null): MediaStreamPipelineResult;
32
32
  /**
33
33
  * Build a pipeline for playing a URI (video.src = "file:///..." or URL).
34
34
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/video",
3
- "version": "0.4.30",
3
+ "version": "0.4.31",
4
4
  "description": "VideoBridge — GTK container for HTMLVideoElement backed by GStreamer gtk4paintablesink",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -35,14 +35,14 @@
35
35
  "@girs/gobject-2.0": "2.88.0-4.0.1",
36
36
  "@girs/gst-1.0": "1.28.1-4.0.1",
37
37
  "@girs/gtk-4.0": "4.23.0-4.0.1",
38
- "@gjsify/bridge-types": "^0.4.30",
39
- "@gjsify/dom-elements": "^0.4.30",
40
- "@gjsify/dom-events": "^0.4.30",
41
- "@gjsify/dom-exception": "^0.4.30",
42
- "@gjsify/event-bridge": "^0.4.30"
38
+ "@gjsify/bridge-types": "^0.4.31",
39
+ "@gjsify/dom-elements": "^0.4.31",
40
+ "@gjsify/dom-events": "^0.4.31",
41
+ "@gjsify/dom-exception": "^0.4.31",
42
+ "@gjsify/event-bridge": "^0.4.31"
43
43
  },
44
44
  "devDependencies": {
45
- "@gjsify/cli": "^0.4.30",
45
+ "@gjsify/cli": "^0.4.31",
46
46
  "@types/node": "^25.9.1",
47
47
  "typescript": "^6.0.3"
48
48
  }