More informative GstPlay error API
Currently, the API in place for handling errors via GstPlay is very limited. Gathering information about what exactly has gone wrong when the player produces a warning or an error is not doable with the tools provided.
My suggestions for expanding the interface would be:
- Allow determining whether the error occurred due to missing plugins or just a general error.
- Allow determining which component the plugin is responsible for (eg. audio/video/subtitles).
- This would be useful for example, for blocking playback in case only the subtitle stream can be decoded, but nothing else; but not if audio/video can still be played.
- Allow to gather details about the missing plugin, similar to
GstPbutils
'missing_plugin_message_get_description
andmissing_plugin_message_get_installer_detail
.
cc @slomo