Commit 9c80ef29 by xiaolanchong

图文直播 播放器样式问题

parent 4eabec06
...@@ -9,6 +9,6 @@ WORKDIR "/var/www/web_live" ...@@ -9,6 +9,6 @@ WORKDIR "/var/www/web_live"
RUN chmod +x start.sh && \ RUN chmod +x start.sh && \
yarn install && \ yarn install && \
yarn run build yarn cross-env run_server=production nuxt build
ENTRYPOINT ["./start.sh"] ENTRYPOINT ["./start.sh"]
...@@ -26,12 +26,12 @@ export default { ...@@ -26,12 +26,12 @@ export default {
computed: { computed: {
videoUrl() { videoUrl() {
if (!this.video) { if (!this.video) {
return ""; return '';
} }
if (window.location.protocol === "http:") { if (window.location.protocol === 'http:') {
return this.video.replace("https://", "http://"); return this.video.replace('https://', 'http://');
} else { } else {
return this.video.replace("http://", "https://"); return this.video.replace('http://', 'https://');
} }
} }
}, },
...@@ -58,13 +58,4 @@ video { ...@@ -58,13 +58,4 @@ video {
position: relative; position: relative;
width: 100%; width: 100%;
} }
video::-webkit-media-controls-panel {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
}
video::-webkit-media-controls-enclosure {
display: block !important;
}
</style> </style>
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
"dev": "nuxt", "dev": "nuxt",
"dev-pre": "cross-env X_CA_STAGE=PRE nuxt", "dev-pre": "cross-env X_CA_STAGE=PRE nuxt",
"dev-test": "cross-env X_CA_STAGE=TEST nuxt", "dev-test": "cross-env X_CA_STAGE=TEST nuxt",
"build": "cross-env run_server=production nuxt build", "build": "cross-env nuxt build",
"build-pre": "cross-env X_CA_STAGE=PRE run_server=preview nuxt build", "build-pre": "cross-env X_CA_STAGE=PRE nuxt build",
"build-test": "cross-env X_CA_STAGE=TEST run_server=development nuxt build", "build-test": "cross-env X_CA_STAGE=TEST nuxt build",
"start": "nuxt start", "start": "nuxt start",
"start-pre": "cross-env X_CA_STAGE=PRE nuxt start", "start-pre": "cross-env X_CA_STAGE=PRE nuxt start",
"start-test": "cross-env X_CA_STAGE=TEST nuxt start", "start-test": "cross-env X_CA_STAGE=TEST nuxt start",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment