chrome网页视频抓取(我在google中出现的bugNotNotloadlocalresource )

优采云 发布时间: 2022-01-14 09:04

  chrome网页视频抓取(我在google中出现的bugNotNotloadlocalresource

)

  具体教程是我在google上找到的:

  教程:

  这里我只做一个具体的实现,并说明具体操作中的bug:

  不允许加载本地资源

  

使用视频作为网页背景

video#bgvid {

position: fixed; right: 0; bottom: 0;

min-width: 100%; min-height: 100%;

width: auto; height: 90%; z-index: -100;

/*background: url(G:\javaweb\前端\bideo.js-master\20140906061602621.jpg) no-repeat;*/

background-size: 80px 60px;

}

#polina {

font-family: Agenda-Light, Agenda Light, Agenda, Arial Narrow, sans-serif;

font-weight: 100;

background: rgba(0,0,0,0.3);

color: white;

padding: 2rem;

width: 33%;

margin: 2rem;

float: right;

font-size: 1.2rem;

}

POLINA

<p>filmed by Alexander Wagner 2011

</p>

  这个可以作为静态页面在本地访问,直接打开对应的html,但是我放到项目中的时候,出现了无法访问本地资源的bug:

  不允许加载本地资源

  经过搜索,发现是因为安全原因设置了google浏览器,所以为了能够成功访问,我在项目的xml中配置了对应的路径:

  

  然后路径改为:

  

  在html头部添加basePath的配置:

  

****

  这样以后google就不会直接访问本地资源了,这样就可以在项目页面播放视频了~~~:

  

0 个评论

要回复文章请先登录注册


官方客服QQ群

微信人工客服

QQ人工客服


线