Re: Parsing DIDL-Lite xml strings



Hi,

Hello,
  I have strings with DIDL-Lite xml. I need to parse them (validate,
get some elements (title, duration, uri)).

If I understand well, gupnp_didl_lite_parser_parse_didl() does two tasks:
1) parse the xml string
2) query the media server about availability of the described media

I only need the first half of the job. Is there a way for that?
(I know that the media servers won't reply to me at the time I process
the strings).

It only does the first :) If you look at
https://git.gnome.org/browse/gupnp-av/tree/libgupnp-av/gupnp-didl-lite-parser.c

there is no networking involved.

The "available" signal just means it has found a complete object, item or container in the DIDL-Lite document and passes it to you. You can think of it more as a filterable call-back, i.e. "object-available" is triggered on
every item node in the DIDL-Lite, item-available only on items
("object.item*" UPnP class) and container-available only on containers
("object.container*" UPnP class).

Please note it's a bit overly strict at the moment:
https://bugzilla.gnome.org/show_bug.cgi?id=740266

because it does things that should ideally be done in the server or client.



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