wpesrc
The wpesrc element is used to produce a video texture representing a web page rendered off-screen by WPE.
Starting from WPEBackend-FDO 1.6.x, software rendering support is available. This
features allows wpesrc to be used on machines without GPU, and/or for testing
purpose. To enable it, set the LIBGL_ALWAYS_SOFTWARE=true
environment
variable and make sure video/x-raw, format=BGRA
caps are negotiated by the
wpesrc element.
Hierarchy
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBaseSrc ╰──GstPushSrc ╰──GstGLBaseSrc ╰──wpesrc
Implemented interfaces
Factory details
Authors: – Philippe Normand
Classification: – Source/Video
Rank – none
Plugin – wpe
Package – gst-plugins-bad
Pad Templates
src
video/x-raw(memory:GLMemory):
format: RGBA
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
pixel-aspect-ratio: 1/1
texture-target: 2D
video/x-raw:
format: BGRA
Signals
configure-web-view
configure_web_view_callback (GstElement * src, GObject * webview, gpointer udata)
def configure_web_view_callback (src, webview, udata):
#python callback for the 'configure-web-view' signal
function configure_web_view_callback(src: GstElement * src, webview: GObject * webview, udata: gpointer udata): {
// javascript callback for the 'configure-web-view' signal
}
Allow application to configure the webView settings.
Parameters:
src
–
the object which received the signal
webview
–
the webView
udata
–
Flags: Run Last
Action Signals
load-bytes
g_signal_emit_by_name (src, "load-bytes", bytes);
ret = src.emit ("load-bytes", bytes)
let ret = src.emit ("load-bytes", bytes);
Load the specified bytes into the internal webView.
Parameters:
the object which received the signal
the GBytes data to load
Properties
draw-background
“draw-background” gboolean
Whether to draw the WebView background
Flags : Read / Write
Default value : true
The results of the search are