Skip to content

Commit

Permalink
initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
cmer committed Feb 10, 2021
0 parents commit b3598ee
Show file tree
Hide file tree
Showing 96 changed files with 78,158 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM golang:alpine

ARG COMMIT=1e9c2b7f48d0ff0c7a5c43e1eca1f8611877fad8

# Set necessary environmet variables needed for our image
ENV CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64

# Move to working directory /build
WORKDIR /build

# Get Git
RUN apk add --no-cache git

# Copy and download dependency using go mod
RUN git clone https://github.com/deepch/RTSPtoWeb.git && cd RTSPtoWeb && git checkout $COMMIT && go build

# Move to /dist directory as the place for resulting binary folder
WORKDIR /dist

# Copy binary from build to main folder
RUN cp /build/RTSPtoWeb/RTSPtoWeb .
RUN cp -r /build/RTSPtoWeb/web .

# Export necessary port & volume
EXPOSE 8083
VOLUME ["/config"]

# Command to run when starting the container
CMD ["sh", "-c", "/dist/RTSPtoWeb -config /config/config.json"]
Binary file added app/RTSPtoWeb
Binary file not shown.
12 changes: 12 additions & 0 deletions app/web/static/css/adminlte.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/web/static/css/adminlte.min.css.map

Large diffs are not rendered by default.

163 changes: 163 additions & 0 deletions app/web/static/css/fullmulti.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
.grid-wrapper{
height: calc(100vh - 30px);
margin: 0px;
background: transparent;
display: flex;
flex-wrap: wrap;
}
.layout-top-nav .wrapper .main-header {
margin-left: 0;
height: 30px;
}
video.background{
pointer-events: none;
position: absolute;
top:0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.control-sidebar.custom{
background: black;
height: 100%;
margin-top: -57px;
padding: 30px 8px 8px;
background: linear-gradient(45deg, black, transparent);
overflow: hidden;
}
.control-sidebar.custom .row{
height:100%;
overflow: auto;
}
.control-sidebar.custom>h5{
color: white;
text-align: center;
}

.grid-wrapper .player video.video-class {
background: #000;
object-fit: fill;
}
.grid-wrapper .player video.video-class.empty {
background: transparent;
}

.img-background{
/* background: url(/../static/img/back.jpg); */
background-color: #343a40;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
backdrop-filter: sepia(0.5) grayscale(0.4);
}
.img-background .content-wrapper{
background: transparent;
}
.img-background .main-header{
background:
}
.grid-wrapper .player {

padding: 0px;
border: 2px solid #000;
}

.grid-wrapper .player .remove-btn{
color:white;
display: none;
position: absolute;
right: 0px;
top: 0px;
cursor: pointer;
padding: 5px 10px;
border-radius: 50px;
filter: drop-shadow(1px 1px 1px black);
}
.grid-wrapper .player.empty .remove-btn{
display: none;
}
.grid-wrapper .player:not(.empty):hover .remove-btn{
display: block;
}

.grid-wrapper .player .add-stream-btn{
position: absolute;
left: 0;
top: calc(50% - 2vw);
text-align: center;
width: 100%;
font-variant-caps: all-petite-caps;
font-size: 1.5vw;
line-height: 1;
color: white;
cursor: pointer;
display: none;
filter: drop-shadow(2px 4px 6px black);
}
.grid-wrapper .player.empty .add-stream-btn{
display: block;

}

.carousel-caption {
pointer-events: none;
filter: drop-shadow(1px 1px 1px black);
}
.stream-img{
height: 150px;
}
.player .loader, .main-player .loader{
position: absolute;
width: 100px;
height: 70px;
top: calc(50% - 35px);
left: calc(50% - 50px);
}
.control-sidebar-close-btn{
position: absolute;
top: 37px;
right: 12px;
color: #fff;
}
.control-sidebar-close-btn:hover{
color: #999;
}
.dropdown-menu.custom-dropdown.show{
color: #ffF;
border: 1px solid #343a40;
background: linear-gradient(45deg, #000000d1 30%,#343a40);
padding: 0;
text-align: center;
}

.dropdown-menu.custom-dropdown .custom-dropdown-item{
float: left;
width: 33%;
padding: 10px;
font-size: 12px;
cursor: pointer;
}
.dropdown-menu.custom-dropdown .custom-dropdown-item.active,.dropdown-menu.custom-dropdown .custom-dropdown-item:hover{
border-radius: 5px;
box-shadow: inset 0px 0px 15px -5px;
}
.dropdown-menu.custom-dropdown .dropdown-item{
color: #fff;

}
.dropdown-menu.custom-dropdown .dropdown-item:hover{
box-shadow: inset 0px 0px 15px -5px;
background: transparent;
}

.custom-dropdown-item.with-img{
width: 50%!important;
height: auto;
padding: 2px!important;

}
.custom-dropdown-item.with-img img{
width: 100%;
height: auto;
}
Loading

0 comments on commit b3598ee

Please sign in to comment.