Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gstplayer broken on wayland #183

Open
albfan opened this issue Mar 26, 2017 · 3 comments
Open

gstplayer broken on wayland #183

albfan opened this issue Mar 26, 2017 · 3 comments

Comments

@albfan
Copy link
Owner

albfan commented Mar 26, 2017

https://github.com/albfan/miraclecast/blob/master/res/gstplayer#L171
https://github.com/albfan/miraclecast/blob/master/res/gstplayer#L184

$ gstplayer
Traceback (most recent call last):
  File "/usr/local/bin/gstplayer", line 229, in <module>
    p.run()
  File "/usr/local/bin/gstplayer", line 179, in run
    self.xid = self.drawingarea.get_property('window').get_xid()
AttributeError: 'GdkWaylandWindow' object has no attribute 'get_xid'
@albfan
Copy link
Owner Author

albfan commented Mar 26, 2017

By now it can be workaround with:

$ GDK_BACKEND=x11 gstplayer

but there must be a proper fix, so I will keep this open

@albfan
Copy link
Owner Author

albfan commented Mar 28, 2017

xid is the id for x11 so makes sense there's no such thing on Wayland.

Here are examples for same funcionality with new api:

https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tests/examples/gtk

gstsink should work with wayland (changing whatever neccesary)

@albfan
Copy link
Owner Author

albfan commented Apr 2, 2017

Meanwhile migration to Wayland is done adding this to init scripts (see #89)

if [ -n "$DISPLAY" -a -z "$SSH_CLIENT" ]; then
    xhost +si:localuser:root
fi

should work

This was referenced Mar 5, 2018
Repository owner deleted a comment from orowith2os Jan 23, 2025
Repository owner deleted a comment from orowith2os Jan 23, 2025
Repository owner deleted a comment from orowith2os Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant