Re: Rygel - Can't get examples working



On 16/01/17 20:45, Jens Georg wrote:


server-plugins/C/example-root-container.c to use files that exists
are
are readable on my machine, with no luck.
I've also tried to run standalone-server example in the same
directory
that's exported with MediaExport, and I get the same (bad) result:
files
show up, but won't play.

I'm using 0.30.3.

That's the issue. The examples are broken in 0.30.x, please use the
latest 0.32 release.

That did it, thanks. However server-standalone example is still broken.

Found out that the missing thing was using rygel_media_file_item_add_engine_resources.

Got it work with that:

--- rygel-0.32.1-orig/examples/standalone-server.c 2016-04-13 17:54:52.000000000 +0200 +++ rygel-0.32.1/examples/standalone-server.c 2017-01-17 17:28:16.509620652 +0100
@@ -127,6 +127,7 @@
             rygel_media_object_add_uri (RYGEL_MEDIA_OBJECT (item), uri);

             rygel_simple_container_add_child_item (root_container, item);
+            rygel_media_file_item_add_engine_resources (item, NULL, NULL);
         }

         i++;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]