Update stuff

This commit is contained in:
Oliver Traber 2022-03-15 23:32:11 +01:00
parent c032b2d294
commit e62efcad6e
Signed by: Bluemedia
GPG key ID: C7BA47275B086E2C
6 changed files with 20 additions and 3 deletions

View file

@ -6,6 +6,14 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>Bluemedia's Video Platform</title>
<!-- og-embed -->
<meta property="og:title" content="Bluemedia's Video Plattform">
<meta property="og:description" content="Watch shared videos without compromising your privacy.">
<meta property="og:image" content="<%= BASE_URL %>logo.png">
<meta property="og:site_name" content="Bluemedia's Video Plattform">
<meta property="og:url" content="https://video.bluemedia.dev">
<meta property="og:type" content="business.business">
</head>
<body>
<noscript>

BIN
public/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

View file

@ -13,6 +13,10 @@ export default {
type: String,
required: true,
},
video: {
type: Object,
required: true,
},
},
data() {
return {
@ -22,7 +26,7 @@ export default {
methods: {
createPlayer() {
this.player = new Clappr.Player({
source: axios.defaults.baseURL + "/" + this.id + "/index.m3u8",
source: axios.defaults.baseURL + "/" + this.id + "/" + this.video.src,
parentId: "#player",
autoPlay: true,
height: "100%",

View file

@ -34,7 +34,7 @@ export default {
methods: {
getCategories() {
axios
.get("/index.json")
.get("/index.json", { baseURL: "" })
.then((response) => {
this.categories = response.data;
this.loading = false;

View file

@ -1,7 +1,12 @@
<template>
<div class="watch">
<Loader v-if="loading" />
<Player class="player" :id="this.$route.query.v" v-if="!loading" />
<Player
class="player"
:id="this.$route.query.v"
:video="this.video"
v-if="!loading"
/>
<div v-if="!loading" class="video-info">
<div class="video-info-title">
<h1>{{ video.title }}</h1>