在Tumblr中嵌入HTML5视频(仪表板和博客) [英] Embedding HTML5 video in Tumblr (dashboard and blog)

查看:119
本文介绍了在Tumblr中嵌入HTML5视频(仪表板和博客)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于将自定义HTML5视频播放器嵌入Tumblr的可能性。
现在的工作原理基本上就是你将一个URL或嵌入代码添加到Youtube或任何其他服务,它会加载视频并在仪表板提要和博客中显示。

Bit curios about the possibility to embed a custom HTML5 video player into Tumblr. How it works now is basically that you put in an URL or embed code to Youtube or any other service and it'll load up the video and show it in the dashboard feed and on your blog.

我刚刚使用Vimeo进行了检查,在这种情况下,似乎它会在视频中获取一个vimeo iframe(我猜这是他们的嵌入代码)并在播放按钮时将其注入DOM按下。

I just checked with Vimeo, and in that case it seems like it fetches a vimeo iframe with the video (I guess it's their embed code) and inject it into the DOM when the play button is pressed.

是否可以使用我自己的自定义iframe模仿此行为?让Tumblr接受我自己的嵌入代码(基于iframe)导致HTMl5视频并在实际播放视频之前提供预览图像。

Would it be possible to mimic this behaviour with a custom iframe of my own? Make Tumblr accept my own embed code (iframe based) that leads to a HTMl5 video and also serve up a preview image before the video is actually played.

所以当我'例如,输入 www.mydomain.com/video1 它会将其识别为视频并使其表现得像其他任何视频服务一样。

So when I'd input for example, www.mydomain.com/video1 it would recognize it as a video and have it behave like any other video service out there.

或者是否可以通过他们的API进行?

Or would it otherwise be possible to do via their API?

只是为了澄清:我不想使用Tumblr HTML5视频玩家,但是我自己选择的玩家。

Just to clarify: I would not want to use the Tumblr HTML5 video player, but a player of my own chosing.

推荐答案

Tumblr仪表板只会播放视频帖子的视频预览。嵌入标题或正文的任何​​内容都无法获得预览处理。

The Tumblr dashboard will only play video previews for Video Posts. Anything embed in a caption or body will not get the preview treatment.

AFAIK,让自定义视频进行预览的唯一方法是让Tumblr使用您自己的平台/ API。如果他们支持平台,Tumblr会在制作Video Post时拉入预览拇指。

AFAIK, the only way to get a custom video to have a preview would be for Tumblr to work with your own platform / API. Tumblr pulls in the preview thumbs when you make the Video Post, if they support the platform.

这里有一个经过测试的视频平台/提供商列表:带有自动缩略图的视频帖子(如在Facebook中)<​​/ a>

There is a list of tested video platforms / providers here: Video Posts with Auto Thumbnail(Like in Facebook) in Tumblr.com

这篇关于在Tumblr中嵌入HTML5视频(仪表板和博客)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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