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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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
|
||||||
}]
|
}]
|
||||||
|
@@ -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
|
||||||
}]
|
}]
|
||||||
|
Reference in New Issue
Block a user