Yamaha MusicCast™ v0.2.2 MusicCast.UPnP.AVMusicTrack

Defines a struct representing meta informations for a playable UPnP A/V transport URL.

Summary

Functions

Returns a list of items for the given DIDL-Lite XML

Returns a DIDL-Lite XML represention of the given items

Returns the DLNA protocol info for the given audio mimetype

Types

didl_item()
didl_item() :: {url :: String.t, meta :: t}
t()
t() :: %MusicCast.UPnP.AVMusicTrack{album: String.t, album_cover_url: String.t, artist: String.t, duration: Integer.t, id: Integer.t, mimetype: String.t, title: String.t}

Functions

didl_decode(xml)
didl_decode(String.t) :: [didl_item]

Returns a list of items for the given DIDL-Lite XML.

didl_encode(items)
didl_encode([didl_item]) :: String.t

Returns a DIDL-Lite XML represention of the given items.

dlna_protocol_info(mimetype)
dlna_protocol_info(String.t) :: String.t

Returns the DLNA protocol info for the given audio mimetype.