Home
Sign Up
Sign In
推荐关注
›
Meteor
›
JSLint
-
a JavaScript code quality tool
›
jsFiddle
›
D3.js
›
WebStorm
推荐书目
›
JavaScript 权威指南第 5 版
›
Closure: The Definitive Guide
Advertisement
V2EX
›
JavaScript
Twitter 和 Facebook 视频的实现原理是什么?
Leeonlee
·
Dec 12, 2016
· 3081 views
This topic created in 3464 days ago, the information mentioned may be changed or developed.
看页面代码, facebook 的视频是 canvas , Twitter 的没看出来。 想了解具体原理是什么,或者从哪方面下手。
Twitter
Facebook
原理
canvas
6 replies
•
2016-12-13 11:56:53 +08:00
1
impony
Dec 12, 2016
iframe 引入
https://twitter.com/i/videos/tweet/:ID?embed_source=clientlib&player_id=:ID&rpc_init=1
里面有一些配置项,其中视频地址
https://video.twimg.com/amplify_video/:ID/pl/:ID.m3u8
2
Leeonlee
OP
Dec 12, 2016
@
impony
谢谢,我去看下
3
emric
Dec 12, 2016
https://github.com/dailymotion/hls.js
4
Leeonlee
OP
Dec 12, 2016
@
emric
这个可以有
5
mingyun
Dec 12, 2016
@
emric
+1
6
Leeonlee
OP
Dec 13, 2016
@
impony
为了缩短加载时间,使用 iframe 外链,我这样理解对不对
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
5838 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 34ms ·
UTC 03:36
·
PVG 11:36
·
LAX 20:36
·
JFK 23:36
♥ Do have faith in what you're doing.
❯