Add auth_timeout parameter

This commit is contained in:
calzoneman 2015-09-16 00:04:34 -07:00
parent bfe36e8150
commit c81ae989fd
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,8 @@ window.GoogleDriveYouTubePlayer = class GoogleDriveYouTubePlayer extends Player
embed = $('<embed />').attr( embed = $('<embed />').attr(
type: 'application/x-shockwave-flash' type: 'application/x-shockwave-flash'
src: "https://www.youtube.com/get_player?docid=#{data.id}&ps=docs\ 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' flashvars: 'autoplay=1&playerapiid=uniquePlayerId'
wmode: 'opaque' wmode: 'opaque'
allowscriptaccess: 'always' allowscriptaccess: 'always'

View File

@ -1114,7 +1114,7 @@
var embed; var embed;
embed = $('<embed />').attr({ embed = $('<embed />').attr({
type: 'application/x-shockwave-flash', 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', flashvars: 'autoplay=1&playerapiid=uniquePlayerId',
wmode: 'opaque', wmode: 'opaque',
allowscriptaccess: 'always' allowscriptaccess: 'always'