Added functions to be able to play on more renderers.
This commit is contained in:
@@ -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?]
|
||||
|
||||
Reference in New Issue
Block a user