看板 Web_Design 關於我們 聯絡資訊
好吧,小弟真的爬文爬很久了,所以才上來問,對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://www.ptt.cc/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
tregfd654321: QQ 求助鄉民 02/04 22:58
nottt: http://i.imgur.com/K05e4Kh.png 用file裡面的網址可以嗎? 02/05 12:27
tregfd654321: 不行,他裡面的網址是隨時都會變的,複製下來,2小 02/05 12:54
tregfd654321: 時後又不能用了,唯一不會變的只有看這個code的網址 02/05 12:54
tregfd654321: ,在js裡面連結外部code會很難嗎 02/05 12:54
nottt: 那可能要用這種方式,先從code網址取json檔,再取file的值 02/05 17:52
nottt: 如果還是不會的話說一下,用回文的方式比較好打 02/05 17:53
回文是這樣嗎?已站內信給大大 ※ 編輯: tregfd654321 (36.234.197.238), 02/05/2017 20:35:46