1 Creating a player
procedure
(make-dlna-player renderer [ #:media-file-server file-server #:listen-ip listen-ip #:port port #:path path #:poll-seconds poll-seconds #:volume-poll-seconds volume-poll-seconds]) → dlna-player? renderer : media-renderer? file-server : (or/c #f media-file-server?) = #f listen-ip : (or/c #f string?) = #f port : exact-integer? = 8080 path : string? = "/racket-audio-dlna/" poll-seconds : (and/c rational? positive?) = 1.0 volume-poll-seconds : (and/c rational? positive?) = 5.0
Creates a player for renderer. When file-server is
#f, the player starts and owns a local HTTP media server. When a
media-file-server? is supplied, the player publishes through that
shared server in an automatically generated private path. Closing the player
removes its publications but does not stop the shared server.
The listen-ip, port, and path arguments configure only a media server created by the player. When listen-ip is #f, the address is selected from the network route to the renderer.
The player polls transport state and position every poll-seconds. Volume and mute state are refreshed every volume-poll-seconds.
procedure
(dlna-player? value) → boolean?
value : any/c