Gst.TagList.prototype.get_sample_index
function get_sample_index(tag:String, index:Number):Boolean { // Gjs wrapper for gst_tag_list_get_sample_index() }
Gets the sample that is at the given index for the given tag in the given list and copies it into the variable pointed to by @smple. Free the sample with gst_sample_unref() when it is no longer needed. You can retrieve the buffer from the sample using Gst.Sample.prototype.get_buffer and the associated caps (if any) with Gst.Sample.prototype.get_caps.
Free-function: gst_sample_unref
- tag
tag to read out
- index
number of entry to read out
- Returns
TRUE, if a sample was copied, FALSE if the tag didn't exist in the given list or if it was #NULL.