作者tregfd654321 (B.Milk)
看板Web_Design
标题[问题] 新手问题js
时间Sat Feb 4 00:23:05 2017
好吧,小弟真的爬文爬很久了,所以才上来问,对js真的不会,所以上来问
小弟目前在用
google drive影片
用videojs播放器播出来的
影音网页
小弟的code是这样
<video id='example_video_1' class="video-js
vjs-default-skin"width="1385"></video>
<script>
videojs('example_video_1', {
controls: true,
plugins: {
videoJsResolutionSwitcher: {
default: 'high', // Default resolution [{Number}, 'low', 'high'],
dynamicLabel: false
}
}
}, function(){
var player = this;
window.player = player
player.updateSrc
(
/*需要插入的外部网址的地方*/
)
player.on('resolutionchange', function(){
console.info('Source changed to %s', player.src())
})
})
</script>
https://goo.gl/IYeus6图片好读,请问要怎麽把drive转出来的连结code
https://goo.gl/1Cf21h加入到上面的code里面呢
p.s为什麽不直接把网页里面的code复制到里面呢,因为他code每段时间会变。
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 36.234.204.67
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Web_Design/M.1486138989.A.77C.html
※ 编辑: tregfd654321 (36.234.204.67), 02/04/2017 00:26:04
※ 编辑: tregfd654321 (36.234.204.67), 02/04/2017 00:26:37
※ 编辑: tregfd654321 (36.234.204.67), 02/04/2017 00:28:06
1F:→ tregfd654321: QQ 求助乡民 02/04 22:58
3F:→ tregfd654321: 不行,他里面的网址是随时都会变的,复制下来,2小 02/05 12:54
4F:→ tregfd654321: 时後又不能用了,唯一不会变的只有看这个code的网址 02/05 12:54
5F:→ tregfd654321: ,在js里面连结外部code会很难吗 02/05 12:54
7F:→ nottt: 那可能要用这种方式,先从code网址取json档,再取file的值 02/05 17:52
8F:→ nottt: 如果还是不会的话说一下,用回文的方式比较好打 02/05 17:53
回文是这样吗?已站内信给大大
※ 编辑: tregfd654321 (36.234.197.238), 02/05/2017 20:35:46