derekn
January 20, 2020, 5:13pm
1
Hi guys,
Newbie here.
Was wondering if there was a way to a an html snippet to each page. I come from a wordpress back ground so am not too familiar with how it works here.
Any advice appreciated.
Regards
Derek
Hi,
You can try using some JavaScript but it would be a little bit hacky. PeerTube is not a CMS like Wordpress
miroR
February 7, 2020, 3:14pm
3
I have been trying to figure out this whole morning how to insert/embed HTML code in pages.
It looks to me PeerTube developers have yet to consider this need.
=-=-=-=-=
And I went on… But I was wrong. So I’m deleting the useless part of this post. Sorry!
miroR
February 7, 2020, 3:25pm
4
I’m sorry I rushed with my post just above.
I found something:
There doesn’t seem to be any way to embed a video player on a thirdparty website. This makes it problematic to take advantage of the platform from within other content such as blogposts.
One feature I particularly care about is the ability to control the player from the embedding page. For easy interoperability with existing legacy code, I suggest following the youtube player api . The function names are sensible enough and offer all the functionality you could need.
Hello, I have a forum on which youtube/dailymotion links display an embed code that allow users to watch the video without leaving the page.
I have issues embedding peertube cause it’s not a common format.
Let’s say I have that js code:
embed.getSrcFramatube = function(url) {
if (!url.includes("/videos/"))
return;
var videoId = url.split("/")[4];
if (!videoId)
return;
return "https://framatube.org/videos/embed/" + videoId;
};
It doesn’t work with https://framatube.or…
how do i customize the peertube player because i want to embed videos in my website and would like to to make changes to the player
And here is where, at a quick glance, some things are happening:
Here are some possible options that can be useful for an advanced use of the embed video player. Those are proposals...
Component: Embed
Component: Player :play_or_pause_button:
Priority: Low
Type: Enhancement :sparkles:
I’ll study all those links I gave above.
miroR
February 7, 2020, 5:44pm
5
Embed/insert HTML code in your pages can be done with PeerTube.
See also:
The ability to control the embedded player from the hosting page.
The youtube player api is a good example to follow, keeping...
Component: Embed
Component: Player :play_or_pause_button:
which points to relatively recent changes.
For hosters there is:
https://docs.joinpeertube.org/#/api-embed-player
It is workable and this means decentralization is more and more achievable.