我终于得出结论,google-chrome不支持.srt,因为WEBVTT是HTML5标准.
现在我想知道这个决定背后的原因是什么.
似乎google-chrome也可能支持.srt,因为:
在WEBVTT中有什么更好的东西使.srt过时了吗?
在 Ubuntu 13.10 上编译和运行 Chromium 源代码
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
add to bashrc :
export PATH="$PATH":/home/y0.kim/project/depot_tools
export CHROME_DEVEL_SANDBOX=/usr/local/sbin/chrome-devel-sandbox
fetch --nohooks chromium --nosvn=True
git checkout master
build/install-build-deps.sh
git pull
gclient sync
ninja -C out/Debug chrome chrome_sandbox
build/update-linux-sandbox.sh
out/Debug/chrome -> Fail
out/Debug/chrome --no-sandbox -> Fail
Run Code Online (Sandbox Code Playgroud)
获取源代码并编译没有问题。但是,当我执行 chrome 时,出现以下错误
正常执行
:~/project2/src$ out/Debug/chrome
The setuid sandbox provides API version 1, but you need 0
Please read https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment.
[37555:37588:0616/152604:FATAL:browser_main_loop.cc(207)] <unknown>: Command line `dbus-launch --autolaunch=f271cc756e9c41e457760b8c00000496 --binary-syntax --close-stderr' exited with non-zero exit status 1: …Run Code Online (Sandbox Code Playgroud) 我可以区分给定的外部网站是否有"服务工作者"?
我最好的猜测是:
(我不确定如何做到这一点)
鉴于数据将是这样的:
const sitesToCheck = {
'www.site1.com',
'www.site2.com',
'www.site3.com',
}
Run Code Online (Sandbox Code Playgroud) 在Xcode6的哪里可以找到“懒惰地加载符号”选项?
我在“偏好设置”中找不到
是否可以从github上挑选所有待处理的PR?
假设我有来自4个不同的分支存储库的4个PR等待审核。我需要将所有这些都应用于最新的源代码。
PR#65 Do something
PR#61 Notify this
PR#55 Fix that
PR#42 Show there
Run Code Online (Sandbox Code Playgroud)
我知道我可以将git remote add所有存储库一一挑选。但是,我相信会有一种更容易/更快捷的方式来挑选所有尚不知道的待处理的拉取请求;)
提前致谢
我认为下面的代码可以更简单.这段代码可以优化吗?
let name = app.short_name;
if (name === undefined) {
name = app.name;
if (name === undefined) {
name = 'Untitled';
}
}
Run Code Online (Sandbox Code Playgroud)