Similar to how ti was done for gstreamer-rs. See [1] for more. [1] https://github.com/sdroege/gstreamer-rs/pull/132