如何使我的HTML网页具有HTML5视频来共享指向Facebook的链接以播放直列?
我有一个HTML网页,上面有HTML5视频。我包含了以下所有必要的元标记:
<meta property="og:video" content="http://www.trending-videos.epizy.com/myvideo.mp4" />
<meta property="og:video:secure_url" content="https://www.trending-videos.epizy.com/myvideo.mp4" />
<meta property="og:video:type" content="video/mp4" />
<meta property="og:video:width" content="500" />
<meta property="og:video:height" content="280" />
页面的完整HTML代码如下:
<html>
<head>
<title>Video Title</title>
<meta property="og:image" content="https://picsum.photos/200" />
<meta property="og:video" content="http://www.trending-videos.epizy.com/myvideo.mp4" />
<meta property="og:video:secure_url" content="https://www.trending-videos.epizy.com/myvideo.mp4" />
<meta property="og:video:type" content="video/mp4" />
<meta property="og:video:width" content="500" />
<meta property="og:video:height" content="280" />
</head>
<body>
<video width="320" height="240" controls>
<source src="https://www.trending-videos.epizy.com/myvideo.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
</body>
</html>
我在Stackoverflow上搜索并应用了许多解决方案,但它们都没有使用。其中一些正在遵循:
a href =“ https://stackoverflow.com/questions/28815838/28815838/embedding-video-player-html5-iframe-inframe-in-facebook-facebook-share-share-share-share-like-youtube”>嵌入视频播放器html5 facebook中的iframe在Facebook中分享 embed html5 facebook中的html5视频播放器
等等,还有更多,但它们都对我有用。 在
当我 使我的网页在Facebook上可以共享。当我共享指向Facebook的链接时,我的网页上的此视频应与视频的缩略图一起在Facebook上播放。我不想显示图像缩略图而不是视频缩略图。
注意:我从Zerossl获得了免费的SSL。现在在Facebook调试器中获取此消息
无法验证SSL证书。它是自签名的(这会引起浏览器警告),或者是无效的。
I have an HTML webpage that has HTML5 video. I have included all the necessary meta tags that are following:
<meta property="og:video" content="http://www.trending-videos.epizy.com/myvideo.mp4" />
<meta property="og:video:secure_url" content="https://www.trending-videos.epizy.com/myvideo.mp4" />
<meta property="og:video:type" content="video/mp4" />
<meta property="og:video:width" content="500" />
<meta property="og:video:height" content="280" />
My full HTML code of the page is following:
<html>
<head>
<title>Video Title</title>
<meta property="og:image" content="https://picsum.photos/200" />
<meta property="og:video" content="http://www.trending-videos.epizy.com/myvideo.mp4" />
<meta property="og:video:secure_url" content="https://www.trending-videos.epizy.com/myvideo.mp4" />
<meta property="og:video:type" content="video/mp4" />
<meta property="og:video:width" content="500" />
<meta property="og:video:height" content="280" />
</head>
<body>
<video width="320" height="240" controls>
<source src="https://www.trending-videos.epizy.com/myvideo.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
</body>
</html>
I have searched on stackoverflow and applied many solutions but none of them worked. Some of them are following:
Share html5 video on website to facebook
Embedding video player html5 iframe in facebook share like YouTubeEmbed html5 video player in facebook
Make og:video play inline whatsapp and facebook
And many more but none of them worked for me. I can see the og:image when I debug my link at Facebook Debugger
I just want to make my webpage to be shareable on facebook. And when I share the link to facebook, this video on my webpage should play in Facebook along with the thumbnail of the video. I don't want to show image thumbnail instead of the video thumbnail.
NOTE: I got Free SSL from zeroSSL. Now getting this message in Facebook debugger
Can't validate SSL Certificate. Either it is self-signed (which will cause browser warnings) or it is invalid.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论