get_video_snapshot


Description:

[ Version ( since = "1.12" ) ]
public Sample? get_video_snapshot (PlayerSnapshotFormat 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_PLAYER_THUMBNAIL_RAW_NATIVE format, if no config is set, pixel-aspect-ratio would be 1/1

Parameters:

this

Player instance

format

output format of the video snapshot

config

Additional configuration

Returns:

Current video snapshot sample or null on failure




2022 vala-language.org