1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

[video file view, shared video file view] modification (#3088)

This commit is contained in:
llj
2019-03-09 16:31:34 +08:00
committed by Daniel Pan
parent 56870a2b27
commit 649b835733
3 changed files with 3 additions and 3 deletions

View File

@@ -1,8 +1,6 @@
.video-file-view {
overflow: auto;
}
.video-js { .video-js {
width: calc(100% - 40px); width: calc(100% - 40px);
max-width: 800px; max-width: 800px;
max-height: 100%;
margin: 0 auto; margin: 0 auto;
} }

View File

@@ -69,6 +69,7 @@ class SharedFileViewVideo extends React.Component {
const videoJsOptions = { const videoJsOptions = {
autoplay: false, autoplay: false,
controls: true, controls: true,
preload: 'auto',
sources: [{ sources: [{
src: rawPath src: rawPath
}] }]

View File

@@ -107,6 +107,7 @@ class FileContent extends React.Component {
const videoJsOptions = { const videoJsOptions = {
autoplay: false, autoplay: false,
controls: true, controls: true,
preload: 'auto',
sources: [{ sources: [{
src: rawPath src: rawPath
}] }]