:right-sidebar: True CustomMeta =================================================================== .. currentmodule:: gi.repository.Gst .. versionadded:: 1.20 .. class:: CustomMeta(*args, **kwargs) :no-contents-entry: Extra custom metadata. The ``structure`` field is the same as returned by :func:`~gi.repository.Gst.CustomMeta.get_structure`. Since 1.24 it can be serialized using :func:`~gi.repository.Gst.Meta.serialize` and :func:`~gi.repository.Gst.Meta.deserialize`, but only if the :obj:`~gi.repository.Gst.Structure` does not contain any fields that cannot be serialized, see :const:`~gi.repository.Gst.SerializeFlags.STRICT`. Methods ------- .. rst-class:: interim-class .. class:: CustomMeta :no-index: .. method:: get_structure() -> ~gi.repository.Gst.Structure Retrieve the :obj:`~gi.repository.Gst.Structure` backing a custom meta, the structure's mutability is conditioned to the writability of the :obj:`~gi.repository.Gst.Buffer` ``meta`` is attached to. .. versionadded:: 1.20 .. method:: has_name(name: str) -> bool Checks whether the name of the custom meta is ``name`` .. versionadded:: 1.20 :param name: Fields ------ .. rst-class:: interim-class .. class:: CustomMeta :no-index: .. attribute:: meta Parent :obj:`~gi.repository.Gst.Meta` .. attribute:: structure :obj:`~gi.repository.Gst.Structure` containing custom metadata. .. versionadded:: 1.24