Title: | An R Shiny App for Viewing Volleyball Video Playlists |
---|---|
Description: | A Shiny app for viewing volleyball video playlists. |
Authors: | Ben Raymond [aut, cre], Adrien Ickowicz [aut], openvolley.org [org] |
Maintainer: | Ben Raymond <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.2.7 |
Built: | 2024-11-22 03:37:00 UTC |
Source: | https://github.com/openvolley/ovplayer |
Example playlists
ovp_example_playlist(choice = 1)
ovp_example_playlist(choice = 1)
choice |
numeric: which data file to return?
|
A data.frame containing the playlist.
## Not run: ## read example playlist ply <- ovp_example_playlist(1) ## start shiny app ovp_shiny(playlist = ply) ## End(Not run)
## Not run: ## read example playlist ply <- ovp_example_playlist(1) ## start shiny app ovp_shiny(playlist = ply) ## End(Not run)
Launch the Shiny app
ovp_shiny( playlist, video_server = NULL, launch_browser = TRUE, mobile = FALSE, host = "127.0.0.1", ... )
ovp_shiny( playlist, video_server = NULL, launch_browser = TRUE, mobile = FALSE, host = "127.0.0.1", ... )
playlist |
data.frame: a playlist as returned by |
video_server |
string: the method used to serve local video files, either "lighttpd" or "servr". If it is |
launch_browser |
logical: if |
mobile |
logical: if |
host |
string: shiny host. Defaults to "127.0.0.1" |
... |
: additional parameters passed to the UI and server functions |
## Not run: ## read example playlist ply <- ovp_example_playlist(1) ## start shiny app ovp_shiny(playlist = ply) ## End(Not run)
## Not run: ## read example playlist ply <- ovp_example_playlist(1) ## start shiny app ovp_shiny(playlist = ply) ## End(Not run)
Note that performance with "servr" may not be great, particularly with each new video, because servr has to read the entire video file before it can serve clips from it.
ovp_video_server(method, port, host)
ovp_video_server(method, port, host)
method |
string: either "lighttpd" or "servr". If "lighttpd" but the lighttpd executable cannot be found, "servr" will be used as a fallback |
port |
integer: the port to open the server on. If missing or |
host |
string: server host IP address (defaults to "localhost") |
A list with components method
, url
, port
, dir
(the source dir from which files will be served), and cleanup_fun
(a function to run when finished with the server, which will stop the server process and clean up its dir
)