Skip to contents

Inject javascript for an HTML video player

Usage

ov_video_js(youtube = FALSE, twitch = FALSE, version = 1)

Arguments

youtube

logical: set to TRUE to include the Youtube API javascript. This isn't necessary if you are only using local video files

twitch

logical: set to TRUE to include the Twitch API javascript. Only with version = 2. Not necessary if you are only using local video files

version

numeric: code version. Default = 1, experimental = 2

Value

A head tag containing script tags