From c81ae989fd405f226d86bf659408ea38bc64d1a1 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 16 Sep 2015 00:04:34 -0700 Subject: [PATCH] Add auth_timeout parameter --- player/gdrive-youtube.coffee | 3 ++- www/js/player.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/player/gdrive-youtube.coffee b/player/gdrive-youtube.coffee index b81d5d97..37aa08a2 100644 --- a/player/gdrive-youtube.coffee +++ b/player/gdrive-youtube.coffee @@ -10,7 +10,8 @@ window.GoogleDriveYouTubePlayer = class GoogleDriveYouTubePlayer extends Player embed = $('').attr( type: 'application/x-shockwave-flash' src: "https://www.youtube.com/get_player?docid=#{data.id}&ps=docs\ - &partnerid=30&enablejsapi=1&cc_load_policy=1" + &partnerid=30&enablejsapi=1&cc_load_policy=1\ + &auth_timeout=86400000000" flashvars: 'autoplay=1&playerapiid=uniquePlayerId' wmode: 'opaque' allowscriptaccess: 'always' diff --git a/www/js/player.js b/www/js/player.js index 796facb7..f23f97ce 100644 --- a/www/js/player.js +++ b/www/js/player.js @@ -1114,7 +1114,7 @@ var embed; embed = $('').attr({ type: 'application/x-shockwave-flash', - src: "https://www.youtube.com/get_player?docid=" + data.id + "&ps=docs&partnerid=30&enablejsapi=1&cc_load_policy=1", + src: "https://www.youtube.com/get_player?docid=" + data.id + "&ps=docs&partnerid=30&enablejsapi=1&cc_load_policy=1&auth_timeout=86400000000", flashvars: 'autoplay=1&playerapiid=uniquePlayerId', wmode: 'opaque', allowscriptaccess: 'always'