Package 'ovplayer'

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

Help Index


Example playlists

Description

Example playlists

Usage

ovp_example_playlist(choice = 1)

Arguments

choice

numeric: which data file to return?

  • 1 - Pipe attacks by Poland in the Poland - Iran men's World League match, June 2017

Value

A data.frame containing the playlist.

See Also

ovp_shiny

Examples

## Not run: 
 ## read example playlist
 ply <- ovp_example_playlist(1)

 ## start shiny app
 ovp_shiny(playlist = ply)

## End(Not run)

Launch the Shiny app

Description

Launch the Shiny app

Usage

ovp_shiny(
  playlist,
  video_server = NULL,
  launch_browser = TRUE,
  mobile = FALSE,
  host = "127.0.0.1",
  ...
)

Arguments

playlist

data.frame: a playlist as returned by ov_video_playlist

video_server

string: the method used to serve local video files, either "lighttpd" or "servr". If it is NULL, no local server will be started and only remote video files can be used

launch_browser

logical: if TRUE, launch the app in the system's default web browser (passed to runApp's launch.browser parameter)

mobile

logical: if TRUE, launch the app's mobile UI version

host

string: shiny host. Defaults to "127.0.0.1"

...

: additional parameters passed to the UI and server functions

Examples

## Not run: 
 ## read example playlist
 ply <- ovp_example_playlist(1)

 ## start shiny app
 ovp_shiny(playlist = ply)

## End(Not run)

Start a separate server process for serving video

Description

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.

Usage

ovp_video_server(method, port, host)

Arguments

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 NULL, a random port between 8001 and 12000

host

string: server host IP address (defaults to "localhost")

Value

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)

See Also

ovp_shiny


ovplayer

Description

A Shiny app for viewing volleyball video playlists.