Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Try to improve SEO

Chocobozzz0fbf9ed91066
diff --git a/client/src/index.html b/client/src/index.html
index b16c49f02c..6241df0104 100644
--- a/client/src/index.html
+++ b/client/src/index.html
@@ -21,6 +21,12 @@
<!-- server config -->
<!-- /!\ Do not remove it /!\ -->
+
+ <script type="text/javascript">
+ // Must run before video.js is evaluated: PeerTube sizes the player with its own CSS
+ // Default video.js might impact SEO
+ window.VIDEOJS_NO_DYNAMIC_STYLE = true
+ </script>
</head>
<!-- 3. Display the application -->
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index fb121f86f4..3d06c1adba 100644
--- a/client/src/standalone/videos/embed.html
+++ b/client/src/standalone/videos/embed.html
@@ -15,6 +15,12 @@
<!-- server config -->
<!-- /!\ Do not remove it /!\ -->
+
+ <script type="text/javascript">
+ // Must run before video.js is evaluated: PeerTube sizes the player with its own CSS
+ // Default video.js might impact SEO
+ window.VIDEOJS_NO_DYNAMIC_STYLE = true
+ </script>
</head>
<body id="custom-css" class="standalone-video-embed">