Open kolaente opened 3 years ago
I've figured out I need a running avahi daemon with nssmdns enabled and user services publishing enabled to get my ipad to find the pc.
Now I'm hitting #195
@kolaente Can you share what you did on NixOS that got it wokring? (if it is working on NixOS - my assumption is that you have it working on NixOS but not on ubuntu).
I have the following config.
services.avahi = {
enable = true;
nssmdns = true;
publish.enable = true;
publish.userServices = true;
};
I am using the derivation that you provide here. and on executing rpiplay
I get the following output/warnings/errors
~ took 9s
❯ rpiplay
(rpiplay:93195): GLib-GObject-WARNING **: 17:53:28.399: invalid cast from 'GstQueue' to 'GstBin'
(rpiplay:93195): GStreamer-CRITICAL **: 17:53:28.399: gst_bin_get_by_name: assertion 'GST_IS_BIN (bin)' failed
(rpiplay:93195): GLib-GObject-WARNING **: 17:53:28.399: invalid cast from 'GstQueue' to 'GstBin'
(rpiplay:93195): GStreamer-CRITICAL **: 17:53:28.399: gst_bin_get_by_name: assertion 'GST_IS_BIN (bin)' failed
(rpiplay:93195): GLib-GObject-WARNING **: 17:53:28.399: invalid cast from 'GstQueue' to 'GstBin'
(rpiplay:93195): GStreamer-CRITICAL **: 17:53:28.399: gst_bin_get_by_name: assertion 'GST_IS_BIN (bin)' failed
(rpiplay:93195): GLib-GObject-WARNING **: 17:53:28.399: invalid cast from 'GstQueue' to 'GstBin'
(rpiplay:93195): GStreamer-CRITICAL **: 17:53:28.399: gst_bin_get_by_name: assertion 'GST_IS_BIN (bin)' failed
(rpiplay:93195): GLib-GObject-CRITICAL **: 17:53:28.399: g_object_set: assertion 'G_IS_OBJECT (object)' failed
Initialized server socket(s)
*** WARNING *** The program 'rpiplay' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
Other info:
The avahi config is the same I have.
Can you share what you did on NixOS that got it wokring?
I got it working insofar as I was able to select the rpiplay server running on my nixos system as a target from the Ipad. I did not get a window with the streaming output, similar to #195.
my assumption is that you have it working on NixOS but not on ubuntu
It works fine in my ubuntu vm when setting it up with the instructions in the readme of this repo. Being ubuntu though, I don't really know what services are installed by default on it which may be required by rpiplay.
I am not running this on a RasberyPi (My assumption is that it should just work on a normal pc too) Is this assumption correct?
Jup, as I said, running fine on ubuntu.
I get the following output/warnings/errors
Same, afaiu they don't seem to affect running it. But then again, it isn't really working so maybe that does something.
I'm trying to build RPiPlay for nixos. Building works, but my ios device is unable to find the RPiPlay service running on my pc.
I would guess this has something to do with either dns or some other discovery mechanism. Any idea how to debug this?
This is the
default.nix
file to reproduce: