Add auth_timeout parameter
This commit is contained in:
parent
bfe36e8150
commit
c81ae989fd
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue