mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Improved video rendering
This commit is contained in:
parent
1fdb576318
commit
6ab0c8fff1
@ -17,6 +17,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post .post-video {
|
.post .post-video {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post .post-video video {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
}
|
}
|
||||||
|
@ -107,11 +107,17 @@ ComunicWeb.components.posts.ui = {
|
|||||||
//In case of video
|
//In case of video
|
||||||
else if(infos.kind == "movie"){
|
else if(infos.kind == "movie"){
|
||||||
|
|
||||||
|
var videoContener = createElem2({
|
||||||
|
appendTo: postRoot,
|
||||||
|
type: "div",
|
||||||
|
class: "post-video"
|
||||||
|
});
|
||||||
|
|
||||||
//Create video element
|
//Create video element
|
||||||
var video = createElem2({
|
var video = createElem2({
|
||||||
appendTo: postRoot,
|
appendTo: videoContener,
|
||||||
type: "video",
|
type: "video",
|
||||||
class: "video-js vjs-default-skin post-video"
|
class: "video-js vjs-default-skin"
|
||||||
});
|
});
|
||||||
video.setAttribute("controls", "");
|
video.setAttribute("controls", "");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user