![]() |
libgpac
Documentation of the core library of GPAC
|
import "scenejs.idl";
Public Member Functions | |
| DOMString | get_option (DOMString section, DOMString key) |
| *DOMString | get_option (DOMString section, unsigned key_idx) |
| void | set_option (DOMString section, DOMString key, optional DOMString value=null) |
| void | set_size (unsigned long width, unsigned long height) |
| void | exit () |
| void | set_3d (Boolean use_3d) |
| void | move_window (unsigned long x, unsigned long y, optional boolean relative=false) |
| void | set_event_filter (GPACEventFilter filter_event_func) |
| void | set_focus (DOMString focus) |
| void | set_focus (Node elt) |
| void | show_keyboard (boolean do_show) |
| void | trigger_gc () |
| MediaObject | get_object_manager (DOMString url) |
| void | switch_quality (boolean up) |
| boolean | navigation_supported (unsigned long nav_type) |
| void | set_back_color (double r, double g, double b, double a) |
Data Fields | |
| attribute boolean | fullscreen |
| readonly DOMString | current_path |
| attribute unsigned long | volume |
| attribute unsigned long | navigation |
| attribute unsigned long | navigation_type |
| readonly attribute boolean | hardware_yuv |
| readonly attribute boolean | hardware_rgb |
| readonly attribute boolean | hardware_rgba |
| readonly attribute boolean | hardware_stretch |
| readonly attribute unsigned long | screen_width |
| readonly attribute unsigned long | screen_height |
| readonly attribute double | fps |
| readonly attribute double | sim_fps |
| readonly attribute boolean | has_opengl |
| attribute DOMString | caption |
| attribute boolean | focus_highlight |
| readonly attribute unsigned long | dpi_x |
| readonly attribute unsigned long | dpi_y |
| attribute boolean | sensors_active |
| readonly attribute double | zoom |
| readonly attribute DOMString | text_selection |
JSScene is the interface to compositor
| DOMString JSScene::get_option | ( | DOMString | section, |
| DOMString | key ) |
see gf_opts_get_key
| section | the section name |
| key | the key name |
| *DOMString JSScene::get_option | ( | DOMString | section, |
| unsigned | key_idx ) |
see gf_opts_get_key_name
| section | the section name |
| key_idx | the key index in the section |
| void JSScene::set_option | ( | DOMString | section, |
| DOMString | key, | ||
| optional DOMString | value = null ) |
see gf_opts_set_key
| section | the section name |
| key | the key name |
| value | the key value, null to remove the key |
| void JSScene::set_size | ( | unsigned long | width, |
| unsigned long | height ) |
set output window size
| width | desired width |
| height | desired height |
| void JSScene::exit | ( | ) |
post quit message
| void JSScene::set_3d | ( | Boolean | use_3d | ) |
turns 3D rendering on/off
| use_3d | if true, uses 3D for all content, otherwise use 3D based on content type |
| void JSScene::move_window | ( | unsigned long | x, |
| unsigned long | y, | ||
| optional boolean | relative = false ) |
moves output window
| x | the horizontal position or delta |
| y | the vertical position or delta |
| relative | if true, use relative (delta) positioning; otherwise use absolute |
| void JSScene::set_event_filter | ( | GPACEventFilter | filter_event_func | ) |
assigns event filter
| filter_event_func | the filter event function to use, or null to deactivate event filtering |
| void JSScene::set_focus | ( | DOMString | focus | ) |
moves focus
| focus | "next" for next element in focus ring, "prev" for previous |
| void JSScene::set_focus | ( | Node | elt | ) |
sets focus on element
| elt | the node on which focus should be set |
| void JSScene::show_keyboard | ( | boolean | do_show | ) |
show or hide virtual keyboard
| do_show | if true, show keyboard, otherwise hide it |
| void JSScene::trigger_gc | ( | ) |
triggers JS garbage collection pass
| MediaObject JSScene::get_object_manager | ( | DOMString | url | ) |
gets object manager for the given service URL loaded in the root scene of the compositor
| url | url of service for which the object manager is queried |
| void JSScene::switch_quality | ( | boolean | up | ) |
switches quality
| up | switches quality up (true) or down (false) |
| boolean JSScene::navigation_supported | ( | unsigned long | nav_type | ) |
checks if navigation type is supported for the current content
| nav_type | the navigation type to check |
| void JSScene::set_back_color | ( | double | r, |
| double | g, | ||
| double | b, | ||
| double | a ) |
sets default back color of player
| r | red component between 0.0 and 1.0 |
| g | green component between 0.0 and 1.0 |
| b | blue component between 0.0 and 1.0 |
| a | alpha component between 0.0 and 1.0 |
| attribute boolean JSScene::fullscreen |
fullscreen status
| readonly DOMString JSScene::current_path |
current working directory
| attribute unsigned long JSScene::volume |
audio output volume
| attribute unsigned long JSScene::navigation |
navigation mode
| attribute unsigned long JSScene::navigation_type |
checks if navigation is off, 2D or 3D mode
| readonly attribute boolean JSScene::hardware_yuv |
true if display has hardware yuv 2D blit
| readonly attribute boolean JSScene::hardware_rgb |
true if display has hardware rgb 2D blit
| readonly attribute boolean JSScene::hardware_rgba |
true if display has hardware rgba 2D blit
| readonly attribute boolean JSScene::hardware_stretch |
true if display has hardware stretch blit
| readonly attribute unsigned long JSScene::screen_width |
display width
| readonly attribute unsigned long JSScene::screen_height |
display height
| readonly attribute double JSScene::fps |
current output fps
| readonly attribute double JSScene::sim_fps |
desired output fps for animations
| readonly attribute boolean JSScene::has_opengl |
true if display has opengl support
| attribute DOMString JSScene::caption |
window title
| attribute boolean JSScene::focus_highlight |
enables or disable focus highlighting
| readonly attribute unsigned long JSScene::dpi_x |
screen horizontal dpi
| readonly attribute unsigned long JSScene::dpi_y |
screen vertical dpi
| attribute boolean JSScene::sensors_active |
sensor active state (gyroscope)
| readonly attribute double JSScene::zoom |
compositor zoom factor
| readonly attribute DOMString JSScene::text_selection |
current text selection