Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ class VideoPlayer extends Component {
this.opts = {
// default option for all players, can be overwritten
playerOptions: {
autoplay: true,
autoplay: false,
playsinline: true,
controls: isPresenter,
},
file: {
attributes: {
controls: isPresenter ? 'controls' : '',
autoplay: 'autoplay',
//autoplay: 'autoplay',
playsinline: 'playsinline',
},
},
Expand All @@ -117,8 +117,12 @@ class VideoPlayer extends Component {
},
},
youtube: {
//For pic-in-pic, you need to use the browser's function by another right clicking after showing the Youtube's menu.
playerVars: {
autoplay: 1,
//with this comment out autoplay stops but the video size would not be adjusted
// thus pic-in-pic option does not appear until you manually start playing
//If you close the video before the size is adjusted, the presentation will disappear!
//autoplay: 1,
modestbranding: 1,
autohide: 1,
rel: 0,
Expand Down