Skip to content

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

Client: fix PeerTube link in embed videos

Chocobozzzea070c93cc9e
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index c154e9570f..0a1c3eadfc 100644
--- a/client/src/standalone/videos/embed.html
+++ b/client/src/standalone/videos/embed.html
@@ -108,8 +108,13 @@
link.innerHTML = 'PeerTube'
link.title = 'Go to the video page'
link.className = 'vjs-peertube-link'
+ link.target = '_blank'
return link
+ },
+
+ handleClick: function () {
+ player.pause()
}
})
videojs.registerComponent('PeerTubeLinkButton', peertubeLinkButton)