9.2.900
3 DIDL-Lite Metadata
| (require racket-upnp/didl-lite) | package: racket-upnp |
DIDL-Lite describes the resource passed to a renderer. Some renderers only advertise seeking after the current URI has metadata containing its media type, duration, and byte-range capability.
procedure
(didl-lite-audio-item uri #:protocol-info protocol-info [ #:title title #:artist artist #:album album #:genre genre #:year year #:track track #:duration duration #:size size #:id id #:parent-id parent-id]) → string? uri : string? protocol-info : string? title : string? = "Media" artist : (or/c #f string?) = #f album : (or/c #f string?) = #f genre : (or/c #f string?) = #f year : (or/c #f exact-nonnegative-integer?) = #f track : (or/c #f exact-nonnegative-integer?) = #f duration : (or/c #f nonnegative-real?) = #f size : (or/c #f exact-nonnegative-integer?) = #f id : string? = "0" parent-id : string? = "0"
Returns an XML DIDL-Lite audio-item description. Text and attribute values
are XML-escaped automatically.
The protocol-info value must describe the HTTP resource accurately. For example:
(didl-lite-audio-item "http://10.7.3.118:8080/media/test.flac" #:protocol-info "http-get:*:audio/flac:DLNA.ORG_OP=01;DLNA.ORG_CI=0" #:title "Test track" #:artist "Test artist" #:album "Test album" #:duration 639 #:size 50357462)
Use media-file-server-didl-lite when the URI was published with this package; it fills in the protocol information and file size from the actual publication.