嵌入 youtube 评论和喜欢 [英] Embed youtube comments and like

查看:27
本文介绍了嵌入 youtube 评论和喜欢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以在视频中嵌入 YouTube 视频的评论和点赞按钮?如果有这样的事情,我该怎么做或在哪里可以获得更多信息?谢谢

I was wondering if it's possible to embed youtube videos' comments and like button with the video? If there is such thing, how can I do that or where can I get more info? Thanks

推荐答案

YouTube 没有任何可用于嵌入评论的嵌入代码.所以基本上有 2 个选项可以嵌入评论 -

YouTube does not have any embed code that you can use to embed comments. So basically there are 2 options to embed comments -

1. 使用 YouTube API嵌入和发表评论.这将需要良好的编码知识.

1. Use the YouTube API to embed and post comments. This will need a good coding knowledge.

要获得评论,请使用此端点

To get comments use this endpoint

GET https://www.googleapis.com/youtube/v3/commentThreads

要添加评论,请使用此端点

To add comments use this endpoint

POST https://www.googleapis.com/youtube/v3/playlistItems

2. 或者您可以使用允许此功能的现成插件.这是一个小的 Youmax 插件演示,它将列出评论并允许您添加评论.

2. Or you can use a ready-made plugin that allows this functionality. Here is a small demo of the Youmax plugin that will list comments as well as allow you to add comments.

这篇关于嵌入 youtube 评论和喜欢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆