2 Files and playback
procedure
(dlna-player-play! player file) → void?
player : dlna-player? file : path-string?
Reads the file with TagLib, publishes it through the internal HTTP server,
generates matching DIDL-Lite, installs the URI, and starts playback. Missing
titles fall back to the file name. Other missing tags are omitted.
procedure
(dlna-player-set-next-file! player file) → void?
player : dlna-player? file : path-string?
Publishes and preloads the file with SetNextAVTransportURI. Replacing the
next file removes the previous next-file publication.
procedure
(dlna-player-play-uri! player uri [ #:metadata metadata #:protocol-info protocol-info #:mime-type mime-type #:track track]) → void? player : dlna-player? uri : string? metadata : string? = "" protocol-info : (or/c #f string?) = #f mime-type : (or/c #f string?) = #f track : (or/c #f dlna-track-info?) = #f
Installs an existing HTTP media URI directly on the renderer and starts
playback. The URI is not published or owned by this player. Optional
DIDL-Lite metadata and track information are retained in the player state.
When protocol-info or mime-type is supplied, the resource
capabilities are resolved by racket-upnp immediately before
playback and matching DIDL-Lite is generated automatically. In that case
metadata is ignored.
procedure
(dlna-player-set-next-uri! player uri [ #:metadata metadata #:protocol-info protocol-info #:mime-type mime-type #:track track]) → void? player : dlna-player? uri : string? metadata : string? = "" protocol-info : (or/c #f string?) = #f mime-type : (or/c #f string?) = #f track : (or/c #f dlna-track-info?) = #f
Preloads an existing HTTP media URI with SetNextAVTransportURI. Replacing
it never attempts to remove the external resource.
procedure
(dlna-player-pause! player) → void?
player : dlna-player?
procedure
(dlna-player-resume! player) → void?
player : dlna-player?
procedure
(dlna-player-stop! player) → void?
player : dlna-player?
procedure
(dlna-player-seek! player seconds) → void?
player : dlna-player? seconds : (and/c rational? (not/c negative?))
Seeks using the AVTransport REL_TIME unit.
procedure
(dlna-player-seek-percentage! player percentage) → void? player : dlna-player? percentage : real?
Converts the clamped percentage to seconds using the cached track duration and
then seeks with dlna-player-seek!.