get_video_snapshot


Description:

public Sample? get_video_snapshot (SnapshotFormat format, Structure? config)

Get a snapshot of the currently selected video stream, if any.

The format can be selected with format and optional configuration is possible with config. Currently supported settings are: - width, height of type G_TYPE_INT - pixel-aspect-ratio of type GST_TYPE_FRACTION Except for GST_PLAY_THUMBNAIL_RAW_NATIVE format, if no config is set, pixel-aspect-ratio would be 1/1

Parameters:

this

Play instance

format

output format of the video snapshot

config

Additional configuration

Returns:

Current video snapshot sample or null on failure