It is not possible to customize the properties MediaObjects
Submitted by Mark Ryan
Link to original bug (#709723)
Description
DMS plugins that derive from the MediaObject classes in librygel-server, such as VideoItem, may want to add additional properties. For example, a plugin may wish to specify the artist property in the VideoItem. Unfortunately, this is not possible for vala based plugins as to add a new property they need to override serializable and unforunately, serializable is internal. The easiest fix would be to make serializable public but I realise that this would be modifying the API.
There are two short term workarounds.
- Write your plugin in C.
- Modify the librygel-server make file and the makefile of your plugin
Add --internal-vapi and --internal-header to librygel_server_2_0_la_VALAFLAGS in the librygel-server Makefile.am
Add --pkg rygel-server-internal-2.0 to the VALAFLAGS in your plugin's Makefile.
Version: git master