Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: 8e66037c by wurstsalat at 2021-06-06T00:29:56+02:00 Features: Check for gstreamer gtk plugin for AV support
Fixes #10551
- - - - -
3 changed files:
- README.md - gajim/common/app.py - gajim/gtk/features.py
Changes:
===================================== README.md ===================================== @@ -24,7 +24,7 @@ ### Optional Runtime Requirements - gir1.2-gspell-1 and hunspell-LANG where lang is your locale eg. en, fr etc - gir1.2-secret-1 for GNOME Keyring or KDE support as password storage - D-Bus running to have gajim-remote working -- gir1.2-farstream-0.2, gir1.2-gstreamer-1.0 and gir1.2-gst-plugins-base-1.0 for audio and video calls +- gir1.2-farstream-0.2, gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0, gstreamer1.0-plugins-ugly, gstreamer1.0-libav, and gstreamer1.0-gtk3 for audio and video calls - gir1.2-gupnpigd-1.0 for better NAT traversing - gir1.2-networkmanager-1.0 for network lose detection - gir1.2-geoclue-2.0 for sharing your location
===================================== gajim/common/app.py ===================================== @@ -227,7 +227,10 @@ def detect_dependencies(): Gst.init(None) conference = Gst.ElementFactory.make('fsrtpconference', None) conference.new_session(Farstream.MediaType.AUDIO) - _dependencies['AV'] = True + from gajim.gui.gstreamer import create_gtk_widget + sink, widget, name = create_gtk_widget() + if sink is not None: + _dependencies['AV'] = True except Exception as error: log('gajim').warning('AV dependency test failed: %s', error)
===================================== gajim/gtk/features.py ===================================== @@ -91,7 +91,8 @@ def _get_features(self): app.is_installed('AV'), _('Enables Gajim to provide Audio and Video chats'), _('Requires: gir1.2-farstream-0.2, gir1.2-gstreamer-1.0, ' - 'gstreamer1.0-libav, gstreamer1.0-plugins-ugly'), + 'gstreamer1.0-plugins-base, gstreamer1.0-plugins-ugly, ' + 'gstreamer1.0-libav, and gstreamer1.0-gtk3'), _('Feature not available under Windows'), None), Feature(_('Automatic Status'),
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/8e66037cce0deb0fb9b5697b66d89c9f4...