public class Context extends MiniObject
See upstream documentation at https://gstreamer.freedesktop.org/documentation/gstreamer/gstcontext.html
Context is a container object used to store contexts like a device context, a display server connection and similar concepts that should be shared between multiple elements.
Applications can set a context on a complete pipeline by using
Element.setContext(Context), which will then be propagated to all
child elements. Elements can handle these in
Element.setContext(Context) and merge them with the context
information they already have.
When an element needs a context it will do the following actions in this order until one step succeeds:
Bins will catch GST_MESSAGE_NEED_CONTEXT messages and will set any previously known context on the element that asks for it if possible. Otherwise the application should provide one if it can.
Contexts can be persistent. A persistent context is kept in elements when they reach , non-persistent ones will be removed. Also, a non-persistent context won't override a previous persistent context set to an element.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Context.Handle |
NativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>| Modifier and Type | Field and Description |
|---|---|
static String |
GTYPE_NAME |
| Constructor and Description |
|---|
Context(String contextType) |
Context(String context_type,
boolean persistent)
Create a new context.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContextType()
Get the type of this context.
|
Structure |
getStructure()
Access the structure of the context.
|
Structure |
getWritableStructure()
Get a writable version of the structure.
|
copy, getRefCount, isWritable, makeWritableclose, disown, dispose, equals, getPointer, getRawPointer, hashCode, invalidate, toStringpublic static final String GTYPE_NAME
public Context(String contextType)
public Context(String context_type, boolean persistent)
public Structure getStructure()
public Structure getWritableStructure()
public String getContextType()
Copyright © 2021 gstreamer-java. All rights reserved.