I would like to embed a short mp4 video from Google Drive into my Shiny App.
Here is my UI:
ui <- navbarPage(strong("Balltistics - 2018"),
theme = shinytheme("yeti"),
collapsible = T,
sidebarLayout(
sidebarPanel(
selectInput(inputId = "dataset",
label = "Select Dataset:",
choices = c("NBA Players 2018",
"NBA Teams 2018",
"NBA 4th Quarter Lineups",
"WNBA Players 2018",
"WNBA Teams 2018",
"WNBA 4th Quarter Lineups")),
hr(),
selectInput(inputId = "stat",
label = "Select Stat of Interest:",
choices = ""),
hr(),
h3("Stuck? Here's some instructional videos!", br()),
a(href = "https://drive.google.com/open?id=1EogQ_56J2YpgOhFH86uHbU2j7NIgCEH7",
"Balltistics Instructional Video (Teams)"),
br(),
a(href = "https://drive.google.com/open?id=1ZNaitSfW7mm4wEB4RGVLS4oI12rDdAmS",
"Balltistics Instructional Video (Lineups)"),
br(),
a(href = "https://drive.google.com/open?id=1e-mJv28kznxqVIadm-LYq4lLUnGHq9NH",
"Balltistics Instructional Video (Players)")),
mainPanel(
h4("Data Snippet"),
tableOutput("table"),
#verbatimTextOutput("fields"),
shiny::tags$video(src = "Brush Tool Gif.mp4",
type = "video/mp4"))),
tabPanel("Graphs", icon = icon("bar-chart-o"),
h2("Team Graphs"),
plotOutput("barplot"),
hr(),
h2("Lineup Graphs"),
plotOutput("scatter", brush = brushOpts(id = "plot_brush")),
h4("Brush the plot to view lineups of interest"),
sliderInput(inputId = "avg_pm",
label = "Set Range for Plus/Minus Score",
value = c(0,10), min = min(wnba_q4_lineups$PLUS_MINUS),
max = max(wnba_q4_lineups$PLUS_MINUS)),
hr(),
fluidRow(verbatimTextOutput("brush_info")),
h2("Player Graphs"),
plotOutput("scatter2", brush = brushOpts(id = "plot_brush2")),
h4("Brush the plot to view players of interest"),
fluidRow(verbatimTextOutput("brush_info2"))),
tabPanel("Full Data Table", icon = icon("table"),
DT::dataTableOutput("fullTableDT")))
I'm wondering if I've placed the video incorrectly? Does it not show up because it's in the Main Panel? Or is it because its not saved properly?
Please help!