Gst.Sample.prototype.get_buffer

function get_buffer():Gst.Buffer {
    // Gjs wrapper for gst_sample_get_buffer()
}

Get the buffer associated with sample

Returns

the buffer of sample or NULL when there is no buffer. The buffer remains valid as long as sample is valid.