Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何添加视频 #90

Closed
vincent4j opened this issue Jun 30, 2014 · 3 comments
Closed

如何添加视频 #90

vincent4j opened this issue Jun 30, 2014 · 3 comments

Comments

@vincent4j
Copy link
Contributor

1、在原始文章中找到视频的原始地址

  • 鼠标右键视频
  • 选择「复制视频网址」

例如「Authentic Motion」章节的第一个视频地址为:
http://material-design.storage.googleapis.com/videos/animation-authentic-motion-authenticMotion_massAndWeight_ex1_large_xhdpi.webm

2、修成改「七牛」对应的地址
因为 google 服务器过慢,所以将所有的视频都传到「七牛」,只需将前面的「域名」更换即可。

http://material-design.storage.googleapis.com
换成
http://materialdesign.qiniudn.com

最终地址为:
http://materialdesign.qiniudn.com/videos/animation-authentic-motion-authenticMotion_massAndWeight_ex1_large_xhdpi.webm

3、查看网页源码,找到 width 和 height

  • 在浏览器中查看「Authentic Motion」章节源码
  • 在源码中检索视频文件名「animation-authentic-motion-authenticMotion_massAndWeight_ex1_large_xhdpi.webm」
  • 检索结果中,「video」标签下的「width」和「height」就是所要找的值

4、往翻译稿中添加代码
假定上一步中查找的值为:width="740" height="270"

<video crossorigin="anonymous"  loop  controls width="740" height="270">
<source src="http://materialdesign.qiniudn.com/videos/animation-authentic-motion-authenticMotion_massAndWeight_ex1_large_xhdpi.webm" type="video/webm">
</video>

其中,仅以下三个值需要指定,其他保持不变:

  • width
  • height
  • src
@awong1900
Copy link
Contributor

视频是谁传到七牛上?

@vincent4j
Copy link
Contributor Author

@awong1900 今天就会上传

@floydzhang315
Copy link
Contributor

新增课程的video已上传至七牛上,请按照4j提供的操作流程来填充视频

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants