5 <meta name=
"viewport" content=
"width=device-width, initial-scale=1">
6 <meta name=
"robots" content=
"noindex">
7 <meta property=
"og:platform" content=
"PeerTube" />
9 <script type=
"text/javascript">
10 // Thanks: https://mathiasbynens.be/notes/globalthis
12 if (typeof globalThis === 'object') return;
13 Object.prototype.__defineGetter__('__magic__', function() {
16 __magic__.globalThis = __magic__
17 delete Object.prototype.__magic__;
22 <!-- /!\ The following comment is used by the server to prerender some tags /!\ -->
25 <!-- description tag -->
26 <!-- custom css tag -->
28 <!-- server config -->
30 <!-- /!\ Do not remove it /!\ -->
32 <link rel=
"icon" type=
"image/png" href=
"/client/assets/images/favicon.png" />
35 <body id=
"custom-css" class=
"standalone-video-embed">
37 <div id=
"error-block">
38 <h1 id=
"error-title"></h1>
40 <div id=
"error-content"></div>
43 <div id=
"video-wrapper"></div>
45 <div id=
"placeholder-preview"></div>
47 <script type=
"text/javascript">
48 // Can be called in embed.ts
49 window.displayIncompatibleBrowser = function () {
50 const text = 'The player is not compatible with your web browser. Please try latest Firefox version.'
52 document.title = 'Sorry' + ' - ' + text
54 const errorBlock = document.getElementById('error-block')
55 errorBlock.style.display = 'flex'
57 const errorTitle = document.getElementById('error-title')
58 errorTitle.innerHTML = 'Sorry'
60 const errorText = document.getElementById('error-content')
61 errorText.innerHTML = text
64 window.onerror = function () {
65 window.displayIncompatibleBrowser()
68 if (/MSIE|Trident/.test(window.navigator.userAgent) ) {
69 window.displayIncompatibleBrowser()