Added functions to be able to play on more renderers.

This commit is contained in:
2026-08-08 14:22:21 +02:00
parent f026e51bd1
commit cc6757d0f6
4 changed files with 201 additions and 31 deletions
+31
View File
@@ -60,6 +60,37 @@ Publishes and preloads the file with @tt{SetNextAVTransportURI}. Replacing the
next file removes the previous next-file publication.
}
@defproc[(dlna-player-play-uri!
[player dlna-player?]
[uri string?]
[#:metadata metadata string? ""]
[#:protocol-info protocol-info (or/c #f string?) #f]
[#:mime-type mime-type (or/c #f string?) #f]
[#:track track (or/c #f dlna-track-info?) #f])
void?]{
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 @racket[protocol-info] or @racket[mime-type] is supplied, the resource
capabilities are resolved by @racketmodname[racket-upnp] immediately before
playback and matching DIDL-Lite is generated automatically. In that case
@racket[metadata] is ignored.
}
@defproc[(dlna-player-set-next-uri!
[player dlna-player?]
[uri string?]
[#:metadata metadata string? ""]
[#:protocol-info protocol-info (or/c #f string?) #f]
[#:mime-type mime-type (or/c #f string?) #f]
[#:track track (or/c #f dlna-track-info?) #f])
void?]{
Preloads an existing HTTP media URI with @tt{SetNextAVTransportURI}. Replacing
it never attempts to remove the external resource.
}
@defproc[(dlna-player-pause! [player dlna-player?]) void?]
@defproc[(dlna-player-resume! [player dlna-player?]) void?]
@defproc[(dlna-player-stop! [player dlna-player?]) void?]